-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening preferences crashes Blender 4.2 in version 0.0.22 #191
Comments
(Also tried with the portable version and same result) |
In my case 4.2.0 works fine. I just downloaded newest 4.2.1 and it is also fine. I will need more info to debug the issue. |
I can confirm this bug on Blender 4.2.1 in macOS (14.6.1). Here is the crash report:
|
After inspecting the crash txt file, this was the python backtrace on Windows 11 as well...
|
For some reason, now the same happens in version 0.0.21. I am almost 100% certain that I was able to open preferences in Blender just fine before installing 0.0.22 the first time... I used Blender for a month without noticing such crashes. |
The crash only happens when clicking on the extensions or add-on tab in blenders settings. I did more testing and the crash happens even with version 0.0.21 in a fresh portable install of Blender 4.2.1. I am still pretty sure that this worked fine, but in all my tests I wasn't able to open the extensions tab without crashing. I also tested using the
Let me know if you need me to test anything else. |
I am not sure if this is related but in the vscode tasks output, the following error prints (twice) whenever I execute
|
Btw: After the crash, everything seems to work fine, when I start Blender without vscode. |
I have seen it multiple times during development, should not be an issue.
this is a new one. I just reproduced the crash on 4.2.1. As the same as you the backtrace fails on Even better: after disabling I tried also disabling the code for creating dedicated repo, enabling
Also tried older version of debugpy-1.7.0 I dont think this is something we can resolve here. Lets check with blender developers. |
Thanks again for looking into this. I filed a bug report in the Blender repo: https://projects.blender.org/blender/blender/issues/127309 |
Found an issue: it is dependency of dependency that is broken: dependency of flask called werkzeug:
stored in AppData\Roaming\Blender Foundation\Blender\4.2\scripts\modules In order to fix do something like (not tested extensively):
A proper fix is not obvious as we can not remove/downgrade loaded python modules: https://projects.blender.org/blender/blender/issues/125049 |
Yes, after replacing werkzeug 3.x with 2.2.3 I am able to open settings too on macOS. 👏 |
Werkzeug 3.0.4 causes blender to crash when opening preferences. Werkzeug is flask dependency. Pin also falsk, just to be sure. This change will not fix existing setups.
- use one pip call to install dependencies. It allows to correctly handle constraints. - when package is outside of constraints, perform clean installation. Clean installation in most cases is not necessary but with --target it has strange corner cases. - commit semver dependency with code
Same here with Blender 4.3 - Edit > Preferences crashes Blender with Blender Development enabled System Information Blender Version
|
The issue is not fixed by developers yet even in newest version, so this is expected. I asked Jack to release hotfix (look above) but there is dependency improvement upcoming, also look above |
Thx @Mateusz-Grzelinski, I had the same issue here during testing my extension in blender |
But wasn't the official fix already done in August as a workaround where open modules are flagged for deletion, and then they are deleted when Blender starts up the next time? Are they planning on a different fix? It's seems like their hands are probably tied because of Win32. Campbell Barton's fix from August. |
The issues you linked are related to uninstalling extension on windows. |
Should be fixed according to https://projects.blender.org/blender/blender/commit/9a252c2e73b9303d4c2c493c7a80a75a4b1629bc |
Just testing the updated extension (version 0.0.22) and in Blender 4.2.0 and 4.2.1 trying to open the preferences crashes Blender with an error.
Windows 11
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFFB194562A
Module : python311.dll
Thread : 00005ab8
Writing: C:\Users\Dan\AppData\Local\Temp\blender.crash.txt
The text was updated successfully, but these errors were encountered: