MacOS Unity crash with Eye module during workshop #57
Replies: 2 comments
|
thx, @leonsbe ! That's very helpful. |
|
Hi @leonsbe Thanks for the detailed report and crash log. Fix: dispose the outlet in OnDestroy() so it's freed once, on the main thread. I've attached both updated scripts: We are hoping you could drop these in and enter/exit Play mode a few times on the Mac to confirm it no longer crashes? |
Uh oh!
There was an error while loading. Please reload this page.
(happened during workshop)
Crash every time I end the Play mode.
Context: collider and layer of boxes set up, tried to show gaze visualization (not showing up, then when stopping Play mode: crash)
BugReportOnCrash.txt
When pasting to AI, it says: when you leave Play mode (thread 0 is sitting in PlayerLoopController::ExitPlayMode), Mono's garbage collector eventually runs the finalizer on the C# wrapper object for an LSL outlet, which calls lsl_destroy_outlet. libmalloc then aborts because the pointer being freed "was not allocated" — a classic double-free / mismatched free. The outlet is being destroyed twice, or freed across a module boundary that allocated it differently.
All reactions