Blender 2.82+ crash on MacOS when enabling BlendLuxCore LuxCoreRender addon. #75223

Closed
opened 2020-03-30 20:01:49 +02:00 by LuxCoreRender · 7 comments

System Information
Operating system: Darwin-17.7.0-x86_64-i386-64bit 64 Bits
Graphics card: NVIDIA GeForce GT 750M OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-10.33.0 387.10.10.10.40.134

Blender Version
Broken: version: 2.83 (sub 11), branch: master (modified), commit date: 2020-03-25 17:46, hash: blender/blender@6681a33a6f
Worked: 2.81a

Short description of error
Since Blender 2.82 Blender will crash when activating the BlendLuxCore addon on MacOS ( High Sierra, Mojave, Catalina )

Exact steps for others to reproduce the error
Download latest BlendLuxCore for MacOS with OpenCL here
BlendLuxCore_latest
Install addon and activate. When activating Blender crashes with an BusError 10
Here is the debug console with bt

2020-03-26 12:19:23.553824+0100 Blender[96904:2878874] [DYMTLInitPlatform] platform initialization successful
2020-03-26 12:19:23.878710+0100 Blender[96904:2878720] Metal GPU Frame Capture Enabled
2020-03-26 12:19:23.879217+0100 Blender[96904:2878720] Metal API Validation Enabled
Read prefs: /Users/drquader/Library/Application Support/Blender/2.83/config/userpref.blend
2020-03-26 12:19:25.824921+0100 Blender[96904:2878915] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported
2020-03-26 12:19:25.824965+0100 Blender[96904:2878915] MessageTracer: Falling back to default whitelist
found bundled python: /Users/drquader/Documents/GitHub/BLENDER/build_darwin/bin/Debug/Blender.app/Contents/Resources/2.83/python
addon_utils.disable: BlendLuxCore not disabled
addon_utils.disable: BlendLuxCore not disabled
Modules Installed (BlendLuxCore) from '/Users/drquader/Documents/GitHub/BlendLuxCore.zip' into '/Users/drquader/Library/Application Support/Blender/2.83/scripts/addons'
BlendLuxCore 2.4alpha0 registered (with pyluxcore 2.4alpha0)
(lldb) bt
Blender was compiled with optimization - stepping may behave oddly; variables may not be available.
 thread #31, stop reason = EXC_BAD_ACCESS (code=2, address=0x60400000d230)
    frame #0: 0x000060400000d230
  *frame #1: 0x000000010c046c45 Blender`boost::detail::set_tss_data(key=0x00006040001c4a00, caller=(Blender`boost::thread_specific_ptr<int>::cleanup_caller(void (*)(void*), void*)), func=(0x000060400000d230), tss_data=0x0000000000000000, cleanup_existing=<unavailable>)(void (*)(void*), void*), void (*)(void*), void*, bool) at thread.cpp:755 [opt]
    frame #2: 0x0000000107cc0f49 Blender`OpenImageIO_v1_8::thread_pool::Impl::set_thread(int)::'lambda'()::operator()() const + 1017
    frame #3: 0x0000000107cc0acd Blender`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, OpenImageIO_v1_8::thread_pool::Impl::set_thread(int)::'lambda'()> >(void*) + 45
    frame #4: 0x000000011b591665 libsystem_pthread.dylib`_pthread_body + 340
    frame #5: 0x000000011b591511 libsystem_pthread.dylib`_pthread_start + 377
    frame #6: 0x000000011b590bfd libsystem_pthread.dylib`thread_start + 13
(lldb)

we use the following libs for LuxCore

Bildschirmfoto 2020-03-26 um 00.21.27.png
edit OIIO is now 1.8.13 and OpenEXR/IlmBase 2.4.1

It will be hard to reproduce the crash on Mojave and up since we (LuxCore) do not have an AppleDeveloperLicense .. yet .. so the .zip is not signed or notarized. So on Mojave and up SIP must be disabled otherwise it won’t work at all. So High Sierra is needed to reproduce the bug without SIP problems.

Thanks for all your work !!!

Your LuxCoreRenderTeam / u3dreal

**System Information** Operating system: Darwin-17.7.0-x86_64-i386-64bit 64 Bits Graphics card: NVIDIA GeForce GT 750M OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-10.33.0 387.10.10.10.40.134 **Blender Version** Broken: version: 2.83 (sub 11), branch: master (modified), commit date: 2020-03-25 17:46, hash: `blender/blender@6681a33a6f` Worked: 2.81a **Short description of error** Since Blender 2.82 Blender will crash when activating the BlendLuxCore addon on MacOS ( High Sierra, Mojave, Catalina ) **Exact steps for others to reproduce the error** Download latest BlendLuxCore for MacOS with OpenCL here [BlendLuxCore_latest ](https://github.com/LuxCoreRender/BlendLuxCore/releases/download/latest/BlendLuxCore-latest-mac64-opencl.zip) Install addon and activate. When activating Blender crashes with an BusError 10 Here is the debug console with bt ``` 2020-03-26 12:19:23.553824+0100 Blender[96904:2878874] [DYMTLInitPlatform] platform initialization successful 2020-03-26 12:19:23.878710+0100 Blender[96904:2878720] Metal GPU Frame Capture Enabled 2020-03-26 12:19:23.879217+0100 Blender[96904:2878720] Metal API Validation Enabled Read prefs: /Users/drquader/Library/Application Support/Blender/2.83/config/userpref.blend 2020-03-26 12:19:25.824921+0100 Blender[96904:2878915] MessageTracer: load_domain_whitelist_search_tree:73: Search tree file's format version number (0) is not supported 2020-03-26 12:19:25.824965+0100 Blender[96904:2878915] MessageTracer: Falling back to default whitelist found bundled python: /Users/drquader/Documents/GitHub/BLENDER/build_darwin/bin/Debug/Blender.app/Contents/Resources/2.83/python addon_utils.disable: BlendLuxCore not disabled addon_utils.disable: BlendLuxCore not disabled Modules Installed (BlendLuxCore) from '/Users/drquader/Documents/GitHub/BlendLuxCore.zip' into '/Users/drquader/Library/Application Support/Blender/2.83/scripts/addons' BlendLuxCore 2.4alpha0 registered (with pyluxcore 2.4alpha0) (lldb) bt Blender was compiled with optimization - stepping may behave oddly; variables may not be available. thread #31, stop reason = EXC_BAD_ACCESS (code=2, address=0x60400000d230) frame #0: 0x000060400000d230 *frame #1: 0x000000010c046c45 Blender`boost::detail::set_tss_data(key=0x00006040001c4a00, caller=(Blender`boost::thread_specific_ptr<int>::cleanup_caller(void (*)(void*), void*)), func=(0x000060400000d230), tss_data=0x0000000000000000, cleanup_existing=<unavailable>)(void (*)(void*), void*), void (*)(void*), void*, bool) at thread.cpp:755 [opt] frame #2: 0x0000000107cc0f49 Blender`OpenImageIO_v1_8::thread_pool::Impl::set_thread(int)::'lambda'()::operator()() const + 1017 frame #3: 0x0000000107cc0acd Blender`void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, OpenImageIO_v1_8::thread_pool::Impl::set_thread(int)::'lambda'()> >(void*) + 45 frame #4: 0x000000011b591665 libsystem_pthread.dylib`_pthread_body + 340 frame #5: 0x000000011b591511 libsystem_pthread.dylib`_pthread_start + 377 frame #6: 0x000000011b590bfd libsystem_pthread.dylib`thread_start + 13 (lldb) ``` we use the following libs for LuxCore ![Bildschirmfoto 2020-03-26 um 00.21.27.png](https://archive.blender.org/developer/F8437254/Bildschirmfoto_2020-03-26_um_00.21.27.png) edit OIIO is now 1.8.13 and OpenEXR/IlmBase 2.4.1 It will be hard to reproduce the crash on Mojave and up since we (LuxCore) do not have an AppleDeveloperLicense .. yet .. so the .zip is not signed or notarized. So on Mojave and up SIP must be disabled otherwise it won’t work at all. So High Sierra is needed to reproduce the bug without SIP problems. Thanks for all your work !!! Your LuxCoreRenderTeam / u3dreal
Author

Added subscriber: @u3dreal-4

Added subscriber: @u3dreal-4

This issue was referenced by blender/blender@b555b8dedc

This issue was referenced by blender/blender@b555b8dedce058985bfe8c544c8c46ba4821bc1a

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Installing and activating the add-on I get:

Library not loaded: @loader_path/libOpenImagedenoise.1.1.0.dylib

And indeed I can't find that library in the .zip. We may be able to hide to more symbols to fix this, but it's hard to do blindly so it would help to have that file.

I'm not sure why LuxCore must be signed to work, we actually configure the Blender signing/notarization to allow loading unsigned shared libraries (com.apple.security.cs.disable-library-validation).

Installing and activating the add-on I get: ``` Library not loaded: @loader_path/libOpenImagedenoise.1.1.0.dylib ``` And indeed I can't find that library in the .zip. We may be able to hide to more symbols to fix this, but it's hard to do blindly so it would help to have that file. I'm not sure why LuxCore must be signed to work, we actually configure the Blender signing/notarization to allow loading unsigned shared libraries (`com.apple.security.cs.disable-library-validation`).
Author

Oh the lib update messed up azure .. Thanks for the hint and sorry for the inconvenience.

I uploaded a current version i just compiled on High Sierra.
and tested on 2.81a(works) and current git (crash as described above).

BlendLuxCore

About the signing part ...
I compiled yesterday on Mojave and didn't get around SIP.
local and free dev signing didn't work for pyluxcore.so. -> crash
I got a report with SIP protection protecting me... when i disable SIP it works without problems. Help here would be wonderfull.

Thanks for your help !

Oh the lib update messed up azure .. Thanks for the hint and sorry for the inconvenience. I uploaded a current version i just compiled on High Sierra. and tested on 2.81a(works) and current git (crash as described above). [BlendLuxCore ](http://q3de.com/wp-content/uploads/2020/03/BlendLuxCore.zip) About the signing part ... I compiled yesterday on Mojave and didn't get around SIP. local and free dev signing didn't work for pyluxcore.so. -> crash I got a report with SIP protection protecting me... when i disable SIP it works without problems. Help here would be wonderfull. Thanks for your help !

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-03-31 00:08:53 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#75223
No description provided.