Mworks crashing on startup with 2024 Mac mini

Hi Chris,
We just started using the new Mac Minis (2024, M4 chip) and things seem to be going relatively well but there have been some crashing issues where the program can’t find the Labjack. Closing MWorks and reopening doesn’t solve it. Generally, the only way to get it to work again is to restart the computer (although sometimes multiple restarts are necessary). This crash doesn’t happen every time MWorks is started, but often enough to be very annoying. This does seem to be specific to the new computer as this experiment always loads fine with the previous model.
I’ve attached a screenshot of the console and the crash log.
Let me know if you have thoughts.
Lindsey.


labjack error.rtf (103 KB)

Hi Chris,

Hopefully a helpful update. We are getting this error in the console in the MWorks session before this issue occurs. Basically, the crash I described happens when the session following this one is started.

Lindsey

Hi Lindsey,

The crash when the LabJack device isn’t found is due to a very old issue in the plugin code. (This affected Mark’s code, too.) I just opened a pull request with the fix. Once you merge the pull request and rebuild the plugin, the crashes should stop.

I’m not sure what to make of the “thread constructor failed” error. I think it indicates that the process has reached the maximum number of threads that it’s allowed to create, but I don’t know why that would be happening. Does your experiment execute a lot of scheduled actions? Each of those spawns a new thread, so having a lot of them running simultaneously could lead to this error.

Chris