Resetting equation freeze
System dynamics program with additional features for economics
Brought to you by:
hpcoder,
profstevekeen
Here's the recording
NotResponding20251231A.mp4
https://drive.google.com/file/d/10T6ISFd4hy8JdTkSH8nZPf6koJA30_iG/view?usp=drive_web
I'm assuming the issue is with 3.21.0-beta.4? Threading is enabled in this, and I wouldn't be surprised if deadlock examples turn up.
Now back in Sydney, so I'll dig in. I didn't take a development machine with me - I wouldn't have had time anyway, and our luggage was overloaded as it was.
Interestingly, when loading this on Linux, I get "resource deadlock avoided". I haven't tried it on Windows, but it sounds like on Windows it goes full deadlock, whereas on Linux it detects the deadlock, and throws an error message.
Last edit: High Performance Coder 2026-01-15
Turned out the code was recursively trying to lock a mutex, which is a deadlock situation.
I have refactored the Ravel mutex to live in RavelCAPI::Ravel, which is a cleaner interface to use mutex protection for thread-safety.