JacquesLucke / animation_nodes

Node based visual scripting system designed for motion graphics in Blender.
Other
2.27k stars 342 forks source link

Baking Crash #1741

Open L33t-HAXXOR opened 3 years ago

L33t-HAXXOR commented 3 years ago

System Specs: macOS 10,14,6 2 x 2.4 GHz 6-Core Intel Xeon 128 GB 1333 MHz DDR3 Radeon VII 16GB

Blender 2.93.0 AN 2.2.2 (Jun 6, 2021) Blender 2.83.13 AN 2.1.8 (Jun 6, 2021)

Blender is crashing when I click "Bake" in the physics tab Console gives this output:

username@Domain ~> /Applications/Blender\ 283.app/Contents/MacOS/Blender ; exit;
Read prefs: /Users/username/Library/Application Support/Blender/2.83/config/userpref.blend
found bundled python: /Applications/Blender 283.app/Contents/Resources/2.83/python
Registered Carver
Registered Animation Nodes

 =============================================== 

registered Add-on: Node Sharer

 =============================================== 

Info: Updated sidebar tabs
Read blend: /Users/username/Documents/Blender/Projects/All The Way Up/I mades a rocket_023.blend
ERROR (bke.anim_sys): /Users/gast/blender-buildbot/macos_lts_283/blender.git/source/blender/blenkernel/intern/anim_sys.c:2815 BKE_animsys_eval_driver: invalid driver - cursor.rotation_quaternion[3]
GPUShader: compile error:
ERROR: 0:94: Use of undeclared identifier 'gl_FragColor'

Traceback (most recent call last):
  File "/Users/username/Library/Application Support/Blender/2.83/scripts/addons/animation_nodes/nodes/viewer/viewer_3d.py", line 127, in draw
    drawData.drawFunction(drawData.data)
  File "/Users/username/Library/Application Support/Blender/2.83/scripts/addons/animation_nodes/nodes/viewer/viewer_3d.py", line 97, in drawMatrices
    shader = getShader(os.path.join(os.path.dirname(__file__), "matrix_shader.glsl"))
  File "/Users/username/Library/Application Support/Blender/2.83/scripts/addons/animation_nodes/graphics/import_shader.py", line 10, in getShader
    return gpu.types.GPUShader("\n".join(lines[:i]), "\n".join(["\n"] * index + lines[i:]))
Exception: Shader Compile Error, see console for more details
GPUShader: compile error:
ERROR: 0:94: Use of undeclared identifier 'gl_FragColor'

Traceback (most recent call last):
  File "/Users/username/Library/Application Support/Blender/2.83/scripts/addons/animation_nodes/nodes/viewer/viewer_3d.py", line 127, in draw
    drawData.drawFunction(drawData.data)
  File "/Users/username/Library/Application Support/Blender/2.83/scripts/addons/animation_nodes/nodes/viewer/viewer_3d.py", line 97, in drawMatrices
    shader = getShader(os.path.join(os.path.dirname(__file__), "matrix_shader.glsl"))
  File "/Users/username/Library/Application Support/Blender/2.83/scripts/addons/animation_nodes/graphics/import_shader.py", line 10, in getShader
    return gpu.types.GPUShader("\n".join(lines[:i]), "\n".join(["\n"] * index + lines[i:]))
Exception: Shader Compile Error, see console for more details
Writing: /var/folders/sd/n1hkhmyx5yv9395_6cdhlxhh0000gn/T/I mades a rocket_023.crash.txt
fish: Job 1, '/Applications/Blender\ 283.ap...' terminated by signal SIGSEGV (Address boundary error)

[Proceso completado]
L33t-HAXXOR commented 3 years ago

This is the crash log in 2.93

hokage@Ichiraku ~> /Applications/Blender\ 293.app/Contents/MacOS/Blender ; exit;
Read prefs: /Users/hokage/Library/Application Support/Blender/2.93/config/userpref.blend

 =============================================== 

registered Add-on: Node Sharer

 =============================================== 

register_class(...):
Warning: 'NodePieList' does not contain '_UL_' with prefix and suffix
register_class(...):
Warning: 'nodepie_panel' does not contain '_PT_' with prefix and suffix
Registered Animation Nodes
Info: Updated sidebar tabs
Read blend: /Users/hokage/Documents/Blender/Projects/All The Way Up/I mades a rocket_023.blend
WARN (bke.anim_sys): source/blender/blenkernel/intern/anim_sys.c:3132 BKE_animsys_eval_driver: invalid driver - cursor.rotation_quaternion[3]
Writing: /var/folders/sd/n1hkhmyx5yv9395_6cdhlxhh0000gn/T/I mades a rocket_023.crash.txt
fish: Job 1, '/Applications/Blender\ 293.ap...' terminated by signal SIGSEGV (Address boundary error)

[Proceso completado]

I do not experience crashes when I deactivate AN

OmarEmaraDev commented 3 years ago

Can you attach the rocket_023.crash.txt file here?

L33t-HAXXOR commented 3 years ago

This one? I mades a rocket_023.crash.txt

OmarEmaraDev commented 3 years ago

@L33t-HAXXOR Yes. Blender is crashing on depsgraph evaluation. This seems like the same problem users have. Are you sure it still crashes with locked UI? Do you have multiple scenes?

Gerstmann-Bradley commented 3 years ago

Or I think you may bake everything into keyframe, disable AN Execution and then bake physics.

L33t-HAXXOR commented 3 years ago

@L33t-HAXXOR Yes. Blender is crashing on depsgraph evaluation. This seems like the same problem users have. Are you sure it still crashes with locked UI? Do you have multiple scenes?

I only have the one scene and I have tested it with locked UI enabled A weird thing (that I can't reliably reproduce) is that in 2.93, if I spam the process enough (reopening Blender, clicking Bake), it will indeed bake on the last try

However the drivers I have attached to my object constraints only present in the sliders they are attached to but do not move the physical objects in viewport

For example, I have an empty contained to path on a curve object. I drive the offset using #frame. The numbers scroll along as normal in the properties panel but the empty itself does not move at all. This issue does not happen in 2.83

What I ended up doing was brute forcing the Bake in 2.93, saving the file and then opening it in 2.83 and rendering with the drivers

And forgive me if this should be a separate issue

OmarEmaraDev commented 3 years ago

Can you share a minimal file to reproduce the issue?

L33t-HAXXOR commented 3 years ago

I mades a rocket_023.blend.zip

OmarEmaraDev commented 3 years ago

@L33t-HAXXOR I can replicate the crash. It seems Blender force lock the UI all the time, so that's probably not the problem. We hit an assert immediately in the AN thread through, so that might give us a hint. I will have to look into this in more details later. But it probably will not be an easy fix.

L33t-HAXXOR commented 3 years ago

Thank you for looking into it!