From: Braden M. <br...@en...> - 2007-07-09 06:38:16
|
Over the weekend I discovered that, once again, the Mozilla folks have changed the flags required for building against their stuff without updating the flags in their pkg-config metadata files. To be fair, that's just one aspect of the problem. It turns out OpenVRML also needs some code-level tweaks to work with the version of JavaScript that is included with Firefox 2.0. Briefly: JavaScript run in OpenVRML built against Firefox 2.0's libmozjs is extremely likely (well, probably certain) to result in a crash. For those interested in the details: libmozjs is built with JS_THREADSAFE. I don't know how long that's been true; I would guess it's new to the version of SpiderMonkey included with Firefox 2; but that might not be the case. What is definitely the case is that this version of SpiderMonkey--when compiled with JS_THREADSAFE--requires that client code be compiled with JS_THREADSAFE as well. Furthermore, client code that is compiled as such must also apply the functions JS_SetContextThread and JS_ClearContextThread appropriately. This was great fun to chase down starting from clue 0. :-/ But I seem to have this working locally; and I'll check in the fix soon. And unfortunately, this warrants a 0.16.6 release. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |