Posts

Post not yet marked as solved
7 Replies
This "funky 3rd party software" runs perfectly fine on every other platform, I even got it to build inside a docker image. MacOS is literally the only problem I have now.
Post not yet marked as solved
7 Replies
Hey Eskimo, thanks for replying. That was a useful thread none the less. I didn't know apps where launched in a different context, or via a different system. The only things I can think of right now is either the Rust-Python bindings having a bug (unlikely) or the logger that prints to stdout causing this problem. I'll see if I can run Blender inside lldb
Post not yet marked as solved
7 Replies
Hi John,Thanks for replying. Blender supports addons (or plugins) written in Python. It comes with it's own Python interpreter bundled that runs inside Blender. It loads them and imports all their modules when it starts. If I run it from the command line It can import my .so file, but when I run it from the icon (desktop/dock) I get a crash with this backtrace:Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff6a0a97fa __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff6a16bbc1 pthread_kill + 432 2 libsystem_c.dylib 0x00007fff6a030ab6 __abort + 139 3 libsystem_c.dylib 0x00007fff6a030a2b abort + 135 4 pangu.so 0x0000000134e33939 std::sys::unix::abort_internal::h6717f22b70679bc4 + 9 5 pangu.so 0x0000000134e31c70 std::sys_common::util::abort::h1dd17fd3c0d65cf7 + 80 6 pangu.so 0x0000000134e32c53 rust_panic + 99 7 pangu.so 0x0000000134e32bed std::panicking::rust_panic_with_hook::h4a09e69cd55e5140 + 589 8 pangu.so 0x0000000134e32689 rust_begin_unwind + 169 9 pangu.so 0x0000000134e5162c core::panicking::panic_fmt::h504df364bc4c5c34 + 44 10 pangu.so 0x0000000134e51709 core::result::unwrap_failed::h6f0ff48485ebd7be + 121 11 pangu.so 0x0000000134e08a6a pangu::pangu::hf0851a193c56c6ff + 218 12 pangu.so 0x0000000134e02d83 pyo3::derive_utils::make_module::h9760a9aa3677d944 + 147 13 org.blenderfoundation.blender 0x000000010ec53d83 _PyImport_LoadDynamicModuleWithSpec + 579 14 org.blenderfoundation.blender 0x000000010ec537d3 _imp_create_dynamic + 355 15 org.blenderfoundation.blender 0x000000010eb5cfcd _PyMethodDef_RawFastCallDict + 605 16 org.blenderfoundation.blender 0x000000010eb5ca78 PyCFunction_Call + 200Pangu is my module, PyO3 is the rust binding for Python. Blender's python version is 3.7.4 and it's the same in both cases.