Blender 2.82 + crashing on OSX only when activating BlendLuxCore

Hello Developers !

I’m the maintainer of LuxCoreRender for MacOS. Since Blender 2.82 Blender will crash when activating the BlendLuxCore addon. No Problems on 2.81a and in Windows and Linux. I debugged blender latest.

here is the console output with backtrace

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 Blenderboost::detail::set_tss_data(key=0x00006040001c4a00, caller=(Blenderboost::thread_specific_ptr::cleanup_caller(void ()(void*), void*)), func=(0x000060400000d230), tss_data=0x0000000000000000, cleanup_existing=)(void ()(void), void*), void ()(void), void*, bool) at thread.cpp:755 [opt]
frame #2: 0x0000000107cc0f49 BlenderOpenImageIO_v1_8::thread_pool::Impl::set_thread(int)::'lambda'()::operator()() const + 1017 frame #3: 0x0000000107cc0acd Blendervoid* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__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)

and a Screenshot of Xcode 10.1

It will be hard to reproduce the crash on Mojave and up since we (LuxCore) do not have AppleDevLic so the .dmg 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.

The lastest LuxCore build can be found here:
https://github.com/LuxCoreRender/BlendLuxCore/releases/tag/latest

It is really strange this only seems to happen on MacOS.


Help or ideas are very much appreciated from the LuxCore Team.

Thanks u3dreal(Luxcore)

When running just from terminal it get this.

$ ./Blender
Read prefs: /Users/drquader/Library/Application Support/Blender/2.83/config/userpref.blend
found bundled python: /Users/drquader/Documents/GitHub/BLENDER/build_darwin/bin/Debug/Blender.app/Contents/Resources/2.83/python
Bus error: 10

I thought on a version mismatch on boost or OIIO but there are no problems on Windows/Linux

I just made a guide for compiling on MacOs if anybody wants. This also solves the notarization issue :slight_smile:

https://wiki.luxcorerender.org/Compiling_LuxCore#MacOs_10.13_.2B

Here are the libraries used by LuxCore now. I have updated most of them but no change.

https://developer.blender.org/T75223