When importing bpy in a Python Debian family linux environment, unless the cmake variable -DWITH_MEM_JEMALLOC=OFF is set during build the import segfaults with the following message:
The distro module should be able to detect the Linux distribution we are currently on. It returns raspbian on a Raspberry Pi (have not tested on a full fat Debian Desktop). After detecting the OS is Debian or Raspbian, it should be easy enough to add -DWITH_MEM_JEMALLOC=OFF to the list of OS build args.
When importing
bpy
in a Python Debian family linux environment, unless thecmake
variable-DWITH_MEM_JEMALLOC=OFF
is set during build the import segfaults with the following message:The
distro
module should be able to detect the Linux distribution we are currently on. It returnsraspbian
on a Raspberry Pi (have not tested on a full fat Debian Desktop). After detecting the OS is Debian or Raspbian, it should be easy enough to add-DWITH_MEM_JEMALLOC=OFF
to the list of OS build args.See Kuro-Maii's fix