-
Notifications
You must be signed in to change notification settings - Fork 17
Enabling "Simple Rename" while a keyboard shortcut is assigned to export fbx in Blender 5.1 crashes Blender on close #235
Description
First off, thank you for all the hard work you've put into developing this highly useful addon!
This is a really weird one and took a while to narrow down, so bare with me.
Since upgrading to version 2.1.5 of the "Simple Renaming" addon, Blender 5.1 crashes when exiting the program. This might not be a big issue, since the error happens when closing the program, but it might hide a more serious underlying issue.
There seems to be a weird combination between Blender 5.1, "Simple Renaming" and the official "FBX format" addons, while having a keyboard shortcut assigned to the fbx export function (and that shortcut is saved to a custom keyboard shortcuts file).
The issue seems to be related to the addon trying to register or unregister the keybindings.
Here are the steps for reproducing the issue. It works on an already exhisting blender setup, but I also ran it on a fresh setup, in order to eliminate any possible addon conflicts. Bare in mind that, by default, a new Blender setup has "Auto-Save Preferences" activated, so any change you make to the user settings is automatically saved.
- Open Blender and go into user preferences (Edit>Preferences).
- Go to the "Get Extensions" category and click on "Allow Online Access" if it's not already enabled.
- Search for "Simple Renaming" extension and install it.
- Close the preferences window.
- Go to "File>Export" and right-click on "FBX" then click on "Assign Shortcut".
- Press the desired key combination for this shortcut (any combination will do, for this example I chose "Ctrl+Shift+A").
- Once more open user preferences (Edit>Preferences). Navigate to the "Keymap" category.
- Press the "+" (plus) button next to the current keyboard preset name (by default, it's "Blender").
- Enter a name for the new keyboard preset. Any name will do, I entered "test001", then press "OK".
- Close the user preferences window.
- Now close blender by pressing the close button on the main window. An error will immediately pop up, stating that "Blender has stopped working".
This is the crashlog (the part that seems to be relevant):
Python backtrace
File "C:\Users\mem\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\blender_org\simple_renaming_panel\preferences\renaming_keymap.py", line 93 in remove_keymap
File "C:\Users\mem\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\blender_org\simple_renaming_panel\preferences_init_.py", line 26 in unregister
File "C:\Users\mem\AppData\Roaming\Blender Foundation\Blender\5.1\extensions\blender_org\simple_renaming_panel_init_.py", line 55 in unregister
File "D:\Blender 5.1\5.1\scripts\modules\addon_utils.py", line 566 in disable
File "D:\Blender 5.1\5.1\scripts\modules\addon_utils.py", line 653 in disable_all
File "D:\Blender 5.1\5.1\scripts\modules\bpy\utils_init_.py", line 366 in _on_exit
File "", line 1 in
A few notes:
- If not using a custom keymap, the error doesn't occur. So if, for example, you assign a shortcut to the fbx export option, but you don't save it in a keyboard preset file (so it's only saved in user preferences).
- This only happens in Blender 5.1.0, not in Blender 5.0.1.
- If the "FBX format" addon is disabled in preferences, the error doesn't occur.
- I'm running blender 5.1.0 on Windows 11 25H2 (Windows-11-10.0.26200-SP0 64 Bits, blender-v5.1-release, commit date: 2026-03-16 18:50, hash:
adfe2921d5f3)
This is all I could find regarding the issue. I know it's a very weirdly specific combination of factors, but it's consistently reproducible if following the steps I described.