- User Since
- Jul 20 2019, 6:19 PM (90 w, 2 d)
Feb 1 2021
@Tomasz Biernacki (tombier) Can't confirm, exporting the default cube to gltf still crashes for me when using the latest 2.93 alpha
Jan 30 2021
It looks like the distortion only occurs when using Noise Type "Ridged MFractal" or "Slick Mountains"
When looking at rBA / ant_landscape I doubt that this is a problem with the addon itself. The latest change to the addon's code was from Oct 16 2020...
Jan 20 2021
@Scurest (scurest) Using the Landscape Erosion and exporting to glTF works now.
Jan 19 2021
@Robert Guetzkow (rjg) SELinux not as far as I know. This is a common Ubuntu installation. Ubuntu uses AppArmor though. The AppArmor profile for blender is in complain mode however, since Blender snaps are installed with --classic, so I would guess it's not enforcing any restrictions... Also running aa-notify does not register any AppArmor denials when Blender crashes.
@Robert Guetzkow (rjg) thanks for the info. Let me know if you need more information from me, otherwise I'll just hope it's as easy as removing these few lines... Have a blessed week!
When I run the portable Blender version with line 273 in 2.92/python/lib/python3.7/ctypes/__init__.py commented out, I can enable all the addons mentioned above that where previously crashing Blender. I only tested real quick with A.N.TLandscape, it generates a landscape and most of it's operators seem to behave normal. Nice.
Can't do it in snap however, as it's files are read only even for su.
Anyways someone with programming knowledge should try to find out why this line was needed before, I suspect just deleting that line could produce other problems...
When commenting that line out it runs the script without errors or crashes.
@Scurest (scurest) function _reset_cache() crashes at line 273 CFUNCTYPE(c_int)(lambda: None)
Also note the comment that was left directly above that line:
@Scurest (scurest) Thanks a lot. ctypes' __init__.py script crashes at line 551 _reset_cache()
@Robert Guetzkow (rjg) could this be related to the fact that Snap package's os.environ.items() does not contain any specification of cache directories?
@Scurest (scurest) I tried, but same result as before: script crashes at from ctypes._endian import BigEndianStructure, LittleEndianStructure I can however not debug that file any further by using prints / file writes, as it again imports ctypes itself, so _endian.py crashes at from ctypes import * which kinda brings back to where I started...
Here's another strange thing I've noticed: as stated above, Blender crashes when running import ctypes in it's Python console. If however I open Blender's Python interpreter from 2.92/python/bin/python3.7m in my operations system's terminal, I can import ctypes and numpy without having it crash or throwing an exception.
@Robert Guetzkow (rjg) I added the Info in the report. Could also provide full lscpu output if that's of interest. But how could the flatpak version still work if that was a hardware related issue?
I don't think it's a python version thing, because as reported in T84752 it does not happen in the flatpak version, which, as far as I can see, uses the exact same python interpreter as snap and official build: Blender's Python console shows PYTHON INTERACTIVE CONSOLE 3.7.7 (default, Jul 9 2020, 12:52:49) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)] in all three versions.
Here are other addons which make blender crash, too:
- 3D View: Precision Drawing Tools
- Add Mesh: Extra Objects, A.N.T.Landscape, Archipack
- Mesh: Tissue
- Object: Carver, Grease Pencil Tools
- Render: POV:
- System: Manage UI Translations
All these addons import numpy at some point, except for Manage UI Translations, which crashes because it imports ctypes. In fact, numpy itself relies on importing ctypes lib, so this might be the actual problem
@Scurest (scurest) I can confirm that the crash seems to be related. I opened the blender python consoles and did a import numpy, immediately crashes. I didn't see the other report T84537 when I opened this one, but it looks very much the same, thanks for pointing that out!