Bug RT-24142 crashes the VM when you touch a JSObject

DM Klerk dmdeklerk at gmail.com
Tue Oct 23 17:10:52 PDT 2012

Recently I filed bug http://javafx-jira.kenai.com/browse/RT-24142, at first
I couldn't pinpoint the reason but after I've created a test case the
Oracle devs picked it up and soon set the bug to critical, now luckily the
bug is set to resolved for Lombard. The bug causes the VM to crash every
minute or so when working with DOM objects/JS objects that come from a
WebEngine/WebView. It turned out there was a problem with the new webkit
garbage collector which caused javafx code to try and reuse cached
javascript objects that where GC'd.

Since my application is constantly working with DOM objects (WebView was
the reason to choose javafx) having it crash every minute is very

Can anyone tell me where or when i can get a jdk with the fix for bug

Does anyone know of a workaround how you can still get a DOM Node from
WebEngine and hold on to it for longer than a minute or so? Right now when
I do a ((JSObject)node).call("getBoundingClientRect") (or any
JSObject.call/JSObject,toString) it randomly crashes after I've performed
 a certain amount of work.
I dont seem to understand why this is happening, will it help if i keep
strong references to every JSObject/Node i ever touch, just looking for a
way i can continue (while waiting for the next jdk) without constantly
loosing unsaved work...

Am I asking this question in the right place?


More information about the openjfx-dev mailing list