rlguy / Blender-FLIP-Fluids

The FLIP Fluids addon is a tool that helps you set up, run, and render high quality liquid fluid effects all within Blender, the free and open source 3D creation suite.
https://www.blendermarket.com/products/flipfluids
GNU General Public License v3.0
1.71k stars 191 forks source link

AttributeError: 'NoneType' object has no attribute 'keymap_items' B3.31 (LTS) #602

Closed LawrenceTattrie closed 1 year ago

LawrenceTattrie commented 1 year ago

At the end of a command line render the following error was shown:

Attempting to open image: <C:\Users\X\Documents\hobbies\Blender\3_3_LTS\flip fluids\my_first_simulation_render\0100.png> Exception in module unregister(): 'C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\mesh_snap_utilities_line\init.py' Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\modules\addon_utils.py", line 421, in disable mod.unregister() File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\mesh_snap_utilities_line__init.py", line 173, in unregister unregister_keymaps() File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\mesh_snap_utilities_line\init__.py", line 136, in unregister_keymaps keymap_items = keymap.keymap_items AttributeError: 'NoneType' object has no attribute 'keymap_items' Blender quit

Attached is a full copy of the command line output of the single render Also is attached is a another log showing a different error but I am not completely sure if this is a starup log or not. ff_render_error.log ff_startup.log

Note: when a user chooses 'File->Save As' to create a new blender file the flip fluid options which match filename such as Cache Directory, and Render Output do not change the filename. To me they should but I am not completely sure this should be done in all circumstances.

rlguy commented 1 year ago

Hi LawrenceTattrie,

Thanks for the report! From the error message, this looks like the issue could be triggered by the "Mesh Snap Utilities" addon.

File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\addons\ mesh_snap_utilities_lineinit.py ", line 136

Does disabling this addon and restarting Blender prevent the issue?

Note: when a user chooses 'File->Save As' to create a new blender file the flip fluid options which match filename such as Cache Directory, and Render Output do not change the filename. To me they should but I am not completely sure this should be done in all circumstances.

If the cache has already been created, such as by beginning a simulation, the cache directory name will not automatically change. This is to prevent cache directory from being accidentally lost or disconnected from the simulation settings when saving the Blend file as a different name, such as for versioning. Let me know if I misunderstood this issue.

Let me know if you have any questions or find any other information on the issue.

rlguy commented 1 year ago

Closing this issue due to inactivity. For now, we'll assume this is caused by the "Mesh Snap Utilities" error but if this is not the case, let us know and we can re-open the issue and look into this further.