I'm embedding SpiderMonkey in an iOS app and am getting assertion failures when doing JS_GC
and JS_MaybeGC
. It happens more often when testing on my iPhone, but it happens in the simulator too. In particular, the assertion failure was:
Assertion failure: kind == GetGCThingTraceKind(*thingp), at /Users/rquesada/progs/Spidermonkey/js/src/gc/Marking.cpp:366
I'm not too familiar with embedding SpiderMonkey. Where should I look to start figuring out and fixing this bug? I only have one global object, one runtime, and one context in my app, and it's all running from the main thread.