animation_nodes icon indicating copy to clipboard operation
animation_nodes copied to clipboard

Baking Crash

Open fuguesoft opened this issue 4 years ago • 10 comments

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]

fuguesoft avatar Jun 07 '21 00:06 fuguesoft

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

fuguesoft avatar Jun 07 '21 00:06 fuguesoft

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

OmarEmaraDev avatar Jun 07 '21 14:06 OmarEmaraDev

This one? I mades a rocket_023.crash.txt

fuguesoft avatar Jun 08 '21 01:06 fuguesoft

@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?

OmarEmaraDev avatar Jun 08 '21 06:06 OmarEmaraDev

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

Gerstmann-Bradley avatar Jun 08 '21 06:06 Gerstmann-Bradley

@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

fuguesoft avatar Jun 09 '21 01:06 fuguesoft

Can you share a minimal file to reproduce the issue?

OmarEmaraDev avatar Jun 09 '21 10:06 OmarEmaraDev

@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.

OmarEmaraDev avatar Jun 15 '21 09:06 OmarEmaraDev

Thank you for looking into it!

fuguesoft avatar Jun 26 '21 20:06 fuguesoft