Crash while working on drivers #60240
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60240
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Ubuntu 18.04
Graphics card: 2x GTX 1060
Blender Version
Broken: 2.80
Short description of error
Unfortunately, this is a non-repeatable crash. I ran into it a couple of times as I was adding/editing drivers to a face rig I'm working on. The rig itself and the drivers are not complicated. It appears to happen after adding several drivers. The best I can do is attach the file I'm working on and the core dump log.
facial_rig.blend
Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
cat /tmp/facial_rig.crash.txt
Blender 2.80 (sub 40), Commit date: 2019-01-05 17:08, Hash
674d364af0
Can't edit driven number value, see graph editor for the driver setup. # Info
bpy.data.shape_keys["Expressions"].key_blocks["Expressions_eyeSquintR_min"].value = 0 # Property
bpy.context.object.active_shape_key_index = 33 # Property
bpy.data.shape_keys["Expressions"].key_blocks["Expressions_eyesHoriz_max"].value = 0 # Property
bpy.context.object.active_shape_key_index = 32 # Property
bpy.data.shape_keys["Expressions"].(null) = "-var" # Property
bpy.data.shape_keys["Expressions"].(null) = 'LOCAL_SPACE' # Property
bpy.data.shape_keys["Expressions"].(null) = bpy.data.objects["MBLab_skeleton_face_rig"] # Property
bpy.data.shape_keys["Expressions"].(null) = "Expressions_eyesLookAt" # Property
bpy.ops.graph.fmodifier_add(type='GENERATOR') # Operator
bpy.ops.transform.translate(value=(-0.00967666, -2.81112e-10, 0.00209225), constraint_matrix=(1, 0, -0, 0, 0, 1, 0, -1, 0), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.ops.pose.loc_clear() # Operator
bpy.context.object.active_shape_key_index = 33 # Property
bpy.data.shape_keys["Expressions"].(null) = "var" # Property
bpy.data.shape_keys["Expressions"].(null) = 'LOC_Y' # Property
bpy.data.shape_keys["Expressions"].(null) = "-var" # Property
bpy.ops.transform.translate(value=(-0.0573381, 0, 0), constraint_axis=(True, False, False), constraint_matrix=(1, 0, -0, 0, 0, 1, 0, -1, 0), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.data.window_managers["WinMan"].(null)- [x] = -0.057338 # Property
bpy.ops.transform.translate(value=(-0.057338, 0, 0), constraint_axis=(True, False, False), constraint_matrix=(1, 0, -0, 0, 0, 1, 0, -1, 0), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.context.space_data.context = 'BONE_CONSTRAINT' # Property
bpy.ops.pose.constraint_add(type='LIMIT_LOCATION') # Operator
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].max_x = -0.057338 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].min_x = 0.057338 # Property
bpy.ops.transform.translate(value=(0, 0.047923, 0), constraint_axis=(False, True, False), constraint_matrix=(1, 0, -0, 0, 0, 1, 0, -1, 0), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.data.window_managers["WinMan"].(null)- [x] = 0.047923 # Property
bpy.ops.transform.translate(value=(0, 0.047923, 0), constraint_axis=(False, True, False), constraint_matrix=(1, 0, -0, 0, 0, 1, 0, -1, 0), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].min_y = 0.047923 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].max_y = -0.047923 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].use_min_y = True # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].use_max_y = True # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].use_max_x = True # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].use_min_x = True # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].owner_space = 'LOCAL' # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].mute = True # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].location- [x] = 0.425595 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].min_y = 0.425595 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].max_y = 0.425595 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].min_y = -0.425595 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].location- [x] = -0.509208 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].min_x = -0.509208 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].max_x = 0.509208 # Property
bpy.context.object.pose.bones["Expressions_eyesLookAt"].constraints["Limit Location"].mute = False # Property
bpy.ops.pose.loc_clear() # Operator
Saved "facial_rig.blend" # Info
bpy.context.space_data.context = 'DATA' # Property
bpy.context.object.active_shape_key_index = 42 # Property
bpy.data.shape_keys["Expressions"].(null) = 'ROT_X' # Property
bpy.data.shape_keys["Expressions"].(null) = "var" # Property
bpy.data.shape_keys["Expressions"].(null) = 'LOCAL_SPACE' # Property
bpy.data.shape_keys["Expressions"].(null) = bpy.data.objects["MBLab_skeleton_face_rig"] # Property
bpy.data.shape_keys["Expressions"].(null) = "Expressions_mouthChew_max_min" # Property
bpy.ops.transform.rotate(value=-0.0826937, axis=(-0, 1, 1.34359e-07), constraint_matrix=(-0.00149694, -0.999996, 0.00258612, 0.999996, -0.00150362, -0.00258206, 0.00258593, 0.00258224, 0.999993), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.ops.graph.fmodifier_add(type='GENERATOR') # Operator
bpy.ops.pose.loc_clear() # Operator
bpy.context.object.active_shape_key_index = 43 # Property
bpy.data.shape_keys["Expressions"].(null) = "-var" # Property
bpy.ops.transform.rotate(value=-0.454171, axis=(-0, 1, 1.34359e-07), constraint_matrix=(-0.00149694, -0.999995, 0.00258612, 0.996798, -0.00128538, 0.079955, -0.0799513, 0.00269753, 0.996795), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].rotation_quaternion- [x] = 0.265412 # Property
bpy.context.space_data.context = 'BONE_CONSTRAINT' # Property
bpy.ops.pose.constraint_add(type='LIMIT_ROTATION') # Operator
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].max_x = 0.00463231 # Property
bpy.ops.transform.rotate(value=1.09597, axis=(-0, 1, 1.34359e-07), constraint_matrix=(-0.00149707, -0.999996, 0.00258612, 0.869663, -2.53171e-05, 0.493646, -0.493644, 0.00298807, 0.869659), constraint_orientation='NORMAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1) # Operator
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].rotation_quaternion- [x] = -0.294416 # Property
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].min_x = -0.00513853 # Property
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].owner_space = 'LOCAL' # Property
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].min_x = -0.523599 # Property
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].max_x = 0.523599 # Property
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].use_transform_limit = True # Property
bpy.context.object.pose.bones["Expressions_mouthChew_max_min"].constraints["Limit Rotation"].use_limit_x = True # Property
bpy.ops.pose.loc_clear() # Operator
bpy.ops.pose.rot_clear() # Operator
bpy.context.space_data.context = 'DATA' # Property
bpy.data.shape_keys["Expressions"].(null) = "Expressions_mouthClosed_max_min" # Property
backtrace
./blender(BLI_system_backtrace+0x33) [0x5640d59d1c53]
./blender(+0xbf1960) [0x5640d4f24960]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7f569b407f20]
./blender(BKE_animsys_eval_driver+0x41) [0x5640d56535d1]
./blender(+0x16beb10) [0x5640d59f1b10]
./blender(BLI_task_pool_work_and_wait+0x18d) [0x5640d59d2b3d]
./blender(_ZN3DEG23deg_evaluate_on_refreshEPNS_9DepsgraphE+0x18b) [0x5640d59f1d8b]
./blender(BKE_scene_graph_update_tagged+0x97) [0x5640d5789837]
./blender(wm_event_do_depsgraph+0xd0) [0x5640d4f28b30]
./blender(wm_event_do_refresh_wm_and_depsgraph+0x85) [0x5640d4f28bd5]
./blender(wm_event_do_notifiers+0x45b) [0x5640d4f2f1fb]
./blender(WM_main+0x28) [0x5640d4f25438]
./blender(main+0x351) [0x5640d4f07c61]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f569b3eab97]
./blender(_start+0x2a) [0x5640d4f2105a]
Added subscriber: @AmirShehata
Here are more concrete steps I was able to use to reproduce the crash:
Saw the following output on the console:
Error in Driver: The following Python expression failed:
Traceback (most recent call last):
NameError: name 'var' is not defined
find_node_operation: Failed for (BONE_DONE, '')
add_relation(Copy Rotation) - Could not find op_from (OperationKey(type: BONE, component name: 'spine01.001', operation code: BONE_DONE))
add_relation(Copy Rotation) - Failed, but op_to (OperationKey(type: BONE, component name: 'abd_muscle_01_R', operation code: BONE_CONSTRAINTS)) was ok
Error in Driver: The following Python expression failed:
did an initial triage through gdb with debug build:
(gdb) bt
0 0x0000555557e27278 in BKE_animsys_eval_driver (depsgraph=0x7fffb37ef108, id=0x7fffbdac9e48, driver_index=49, driver_orig=0x7fffa53f9548)
1 0x000055555840ad83 in std::__invoke_impl<void, void (&)(Depsgraph, ID*, int, ChannelDriver*), Depsgraph*, ID*&, int&, ChannelDriver*&>(std::__invoke_other, void (&)(Depsgraph, ID*, int, ChannelDriver*), Depsgraph*&&, ID*&, int&, ChannelDriver*&) (__f=
2 0x00005555584098d0 in std::__invoke<void (&)(Depsgraph, ID*, int, ChannelDriver*), Depsgraph*, ID*&, int&, ChannelDriver*&>(void (&)(Depsgraph, ID*, int, ChannelDriver*), Depsgraph*&&, ID*&, int&, ChannelDriver*&) (__fn=
7 0x000055555841c30c in DEG::deg_task_run_func(TaskPool*, void*, int) (pool=0x7fffa4ff7008, taskdata=0x7fffbda5a0c8, thread_id=3)
10 0x00007ffff364788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) p id
$1 = (ID *) 0x7fffbdac9e48
(gdb) p id
$2 = (ID *) 0x7fffbdac9e48
(gdb) p id->name
$3 = "KEExpressions", '\000' <repeats 52 times>
(gdb) p fcu
$4 = (FCurve *) 0x0
(gdb) p adt->driver_array
$5 = (FCurve **) 0x7fffc3ff31c8
(gdb) p adt->driver_array[49]
$6 = (FCurve *) 0x0
Crash occurs when trying to access a NULL pointer:
3470 »···DEG_debug_print_eval_subdata_index(
3471 »··· depsgraph, func, id->name, id, "fcu", fcu->rna_path, fcu, fcu->array_index);
Looks like the last element in adt->driver_array- [ ] which has some valid data is adt->driver_array[48].
Could the driver index passed in be incremented one too far? Or race condition?
I have the core file if you want to inspect it.
I'm unable to reproduce with the latest build.
Added subscriber: @brecht
Changed status from 'Open' to: 'Resolved'
We'll assume it's fixed then? If you can find a way to reproduce it still we can reopen.