[Bug 1174816] New: Blender SIGSEGV
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 Bug ID: 1174816 Summary: Blender SIGSEGV Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications Assignee: screening-team-bugs@suse.de Reporter: f4tmike@web.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 840283 --> http://bugzilla.opensuse.org/attachment.cgi?id=840283&action=edit crash log txt Blender 2.8.2 only starts when I select "general" in the initial window. With all others (2D animation, sculpting, etc.) the program crashes: Read prefs: /home/mypc/.config/blender/2.82/config/userpref.blend Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Warning: property 'release_confirm' not found in keymap item 'OperatorProperties' Writing: /tmp/blender.crash.txt fish: 'blender' terminated by signal SIGSEGV (address range error) Operating System: openSUSE Leap 15.2 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.71.0 Qt Version: 5.12.7 Kernel Version: 5.3.18-lp152.33-default OS Type: 64-bit Processors: 8 × Intel® Xeon® CPU E3-1241 v3 @ 3.50GHz Memory: 15,5 GiB NVIDIA GM107GL [Qaudro K2200] running nvidia-g05 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c2 --- Comment #2 from Michael K <f4tmike@web.de> --- Created attachment 840809 --> http://bugzilla.opensuse.org/attachment.cgi?id=840809&action=edit crash log txt It's the same behavior. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c3 --- Comment #3 from Hans-Peter Jansen <hpj@urpla.net> --- Created attachment 840816 --> http://bugzilla.opensuse.org/attachment.cgi?id=840816&action=edit gdb backtrace -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c4 --- Comment #4 from Hans-Peter Jansen <hpj@urpla.net> --- Okay, thanks. I can reproduce this here. As a workaround, just bypass the splash and select the mode from the menu bar. I will need to investigate further, why Blender is crashing, if the mode is selected from the splash screen.. Thanks. @Stefan: I've attached a more detailed crash log. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c6 Mohamed AMAZIRH <m.amazirh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.amazirh@gmail.com --- Comment #6 from Mohamed AMAZIRH <m.amazirh@gmail.com> --- Hi Hans-Peter, I wanted to report the bug (to share my findings) but found that it was already done here. Thanks for the workaround. I investigated the issue and found that it's caused by the patch make_python_3.6_compatible.patch which is part of the files used to package blender for OpenSuse Leap 15.2. make_python_3.6_compatible.patch replaced _PyObject_LookupAttr by a combination of PyObject_HasAttr/PyObject_GetAttr to make blender's source code compatible with python 3.6. Blender crashes because, when creating a new "Video Editing" project for example, it tries to unregister the python "cycles" module but fails in bpy_rna.c#pyrna_unregister_class. (the cycles module is in /usr/share/blender/2.82/scripts/addons/cycles/) At first I thought that that, in the code introduced by the patch (in bpy_rna.c), PyObject_HasAttr returned 1 but PyObject_GetAttr returned null which was then passed to PyObject_CallObject and caused the crash. But after careful inspection, I noticed that PyObject_GetAttr exists outside of the "case 1:{...}" block, so it's never called and PyObject_CallObject always ends up with a null value as its first parameter. I attached to this ticket a modified version of make_python_3.6_compatible.patch that fixes the problem. Also, here is the chain of events leading up to the crash: 1) Blender calls bl_app_template_utils.reset() from wm_files.c (line 511) 2) then at some point unregister from __init__.py in the "cycles" module is called 3) which calls properties.unregister() on line 157 4) which then calls bpy.utils.unregister_class from properties.py on line 1622 5) which maps to pyrna_unregister_class from bpy_rna.c (apparently only the classes from the cycles module implement the register/unregister interface) I hope this is helpful for resolving the bug and thanks for your work on this package -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c7 --- Comment #7 from Mohamed AMAZIRH <m.amazirh@gmail.com> --- Created attachment 844769 --> http://bugzilla.opensuse.org/attachment.cgi?id=844769&action=edit fix for make_python_3.6_compatible.patch -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c8 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(f4tmike@web.de) | --- Comment #8 from Hans-Peter Jansen <hpj@urpla.net> --- Hey Mohamed, nice catch, and sorry, almost all installations in my environment are Tumbleweed based. Applied a refreshed version of your patch to my blender builds. If nobody confirms https://build.opensuse.org/request/show/859724 until tomorrow, I will.. It would be nice, if you could test the builds in home:frispete:blender [blender-{291,git}] regarding this issue, Mohamed. Finally, we might be able to flag this (finally) FIXED. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c9 --- Comment #9 from Mohamed AMAZIRH <m.amazirh@gmail.com> --- Created attachment 844770 --> http://bugzilla.opensuse.org/attachment.cgi?id=844770&action=edit screen recording showing blender crashing using Leap's package -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c10 --- Comment #10 from Mohamed AMAZIRH <m.amazirh@gmail.com> --- Created attachment 844771 --> http://bugzilla.opensuse.org/attachment.cgi?id=844771&action=edit screen recording showing blender working properly using the package from home:/frispete:/blender/openSUSE_Leap_15.2/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c11 --- Comment #11 from Mohamed AMAZIRH <m.amazirh@gmail.com> --- Thanks for the quick reply and action. I tested the package from your repo and it works! I attached two screen recordings. One (before.webm) showing the crash using the package from Leap's repo, and another one (after.webm) showing blender working properly using the package from you repo. Thanks again. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c12 Hans-Peter Jansen <hpj@urpla.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|WONTFIX |FIXED --- Comment #12 from Hans-Peter Jansen <hpj@urpla.net> --- Okay, great. It's a pleasure to work with you, guys. Thanks to your persistence, eagle-eyed investigation and correct conclusions, Mohamed, we're finally able to close this ugly matter. Reminds me, that's we're all humans, and the world is a better one, if we take care on each other. Have a pleasant 2021, Pete -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c13 --- Comment #13 from Stefan Br�ns <stefan.bruens@rwth-aachen.de> --- Yes, very good investigation by Mohamed. Best for 2021 to all! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1174816 http://bugzilla.opensuse.org/show_bug.cgi?id=1174816#c14 --- Comment #14 from Mohamed AMAZIRH <m.amazirh@gmail.com> --- Glad to have been of help and thank you both. Happy new year! :) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com