Current Build of MWorks

Hi Chris,

We just did a new install of El Cap on a MacPro (2010). After install Xcode and disabling SIP crap, we downloaded the latest version of MWorks from

https://s3.amazonaws.com/mworks-downloads/release/MWorks-0.6.dmg

Everything looked good.

then we tried to clone the current githib repo, but had some trouble compiling the core (permission errors). After fixing that, we finally got he core to build successfully. The problem is that as soon as we launch the server (stock from the DMG), it crashes with the following error:

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
terminating with uncaught exception of type mw::SimpleException: trying to access singleton instance before it is registered
abort() called

From the crashed thread:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff902c2286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff8f9a29b3 abort + 129
2 libc++abi.dylib 0x00007fff8a84fa21 abort_message + 257
3 libc++abi.dylib 0x00007fff8a8779b9 default_terminate_handler() + 243
4 libobjc.A.dylib 0x00007fff8af027eb _objc_terminate() + 124
5 libc++abi.dylib 0x00007fff8a8750a1 std::__terminate(void (*)()) + 8
6 libc++abi.dylib 0x00007fff8a874b30 __cxa_throw + 121
7 org.mworks-project.MWorksCore 0x000000010c0e86e5 mw::Scheduler::instance(bool) + 141 (Scheduler.h:137)
8 org.mworks-project.MWorksCore 0x000000010c15637c mw::EventListener::startListener() + 46 (EventListener.cpp:49)
9 org.mworks-project.MWorksCore 0x000000010c14024d mw::Server::startServer() + 431 (shared_ptr.hpp:687)
10 org.mworks-project.MWServer 0x000000010c07b7e2 -[MWSServer awakeFromNib] + 216
11 com.apple.CoreFoundation 0x00007fff8d317bdf -[NSSet makeObjectsPerformSelector:] + 223
12 com.apple.AppKit 0x00007fff87a1b03d -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 1216
13 com.apple.AppKit 0x00007fff879fa0e5 loadNib + 384
14 com.apple.AppKit 0x00007fff879f960b +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 313
15 com.apple.AppKit 0x00007fff879f93c7 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201
16 com.apple.AppKit 0x00007fff879f9193 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344
17 org.mworks-project.MWServer 0x000000010c07ad61 main + 139
18 libdyld.dylib 0x00007fff845185c9 start + 1

Any clues? We downloaded an older commit (from the start of the 0.7 dev) and all is fine.

There are no custom core plugin builds (unlike Evan’s issue from two days ago).

  • Romesh

Hi Romesh,

There are no custom core plugin builds (unlike Evan’s issue from two days ago).

It’s the same basic issue: The installed version of MWorksCore (the one you compiled yourself) is different than the one the apps and plugins were built against (the 0.6 release), and there are binary incompatibilities between the two versions that are leading to crashes.

I really need to write a knowledge base article on how to compile all of MWorks from scratch, as that’s the only way to ensure binary compatibility after making changes to MWorksCore. However, in the meantime, you stand a decent chance of things working if you start with the commit from the 0.6 tag (c1863e7), rather than the current HEAD commit.

Chris