Question about fatal JavaFX crashes

Scott Palmer swpalmer at gmail.com
Fri Mar 18 22:07:41 UTC 2022


I wonder, could you do the opposite and force compilation to trigger the bug more consistently?

Scott

> On Mar 18, 2022, at 2:03 PM, Philip Race <philip.race at oracle.com> wrote:
> 
> I have at least seen  JIT compiler crashes like this in other unrelated cases ..
> 
> in theory you can use an option like
> 
> -XX:CompileCommand=exclude,javafx/scene/control/TableView$5::onChanged
> 
> although I am very unsure about the syntax for the last part of it especially with what looks like
> some anonymous method or lambda expression. I can almost guarantee that my example is wrong.
> 
> Excluding the whole of TableView might be easier to specify but will slow you down a lot.
> 
> -phil.
> 
> 
>> On 3/18/22 10:37 AM, Kevin Rushforth wrote:
>> Thanks, Phil. That was my take as well. I don't see how this can be a JavaFX bug given where it is crashing. FWIW, I haven't ever seen anything like this.
>> 
>> -- Kevin
>> 
>> 
>>> On 3/18/2022 10:25 AM, Philip Race wrote:
>>> I think it is probable that this is a hotspot VM problem in the C2 JIT compiler code.
>>> 
>>> I've moved your bug report to hotspot : https://bugs.openjdk.java.net/browse/JDK-8283386
>>> The interesting question isn't about which version of FX used to work.
>>> It is what was the last working version of the JDK.
>>> It looks a bit like a JDK 17 bug from the evidence so far so if
>>> you were running FX 17 on JDK 17 GA you maybe have picked up a later update release  of JDK 17 along with FX 18 ??
>>> 
>>> Regardless this doesn't look like an FX bug.
>>> But unless you can actually provide a test case, or, by luck the hotspot folks recognise the issue,
>>> I don't know what can/will happen.
>>> 
>>> -phil.
>>> 
>>> On 3/18/22 7:08 AM, Daniel Peintner wrote:
>>>> Hi John, all,
>>>> 
>>>> Thanks for your detailed reply.
>>>> I submitted a bug report with detailed information.
>>>> 
>>>> - Run a different Java version
>>>> I tried different versions and vendors with the same result.
>>>> * OpenJDK 17.0.1
>>>> * Zulu 17.0.2
>>>> * I wanted to check also JDK18-ea but gradle does not yet support it
>>>> 
>>>> 
>>>>> - Try switching to a different GC
>>>>> - Use different VM options (are you using anything special?)
>>>>> - Anything else that is not often used, non-standard or experimental,
>>>>> try going to a more common setup
>>>>> 
>>>> I use no specific setting, all is default.
>>>> I have been reading that the -client flag might help in some cases but
>>>> unfortunately this flag is no longer taken into account for 64bit JVMS.
>>>> 
>>>> Thanks,
>>>> 
>>>> -- Daniel
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> --John
>>>>> 
>>>>> On 18/03/2022 09:43, Daniel Peintner wrote:
>>>>>> Hello,
>>>>>> 
>>>>>> I take the liberty to ask on the email reflector if there are other
>>>>> people
>>>>>> with similar problems.
>>>>>> 
>>>>>> Since updating my application to JavaFX18 I get random fatal crashes.
>>>>>> Unfortunately it is not predictable but after some time the app crashes
>>>>>> with "EXCEPTION_ACCESS_VIOLATION".
>>>>>> 
>>>>>> The hs_error_pidX reports the following.
>>>>>> 
>>>>>> 
>>>>>> ---------------  T H R E A D  ---------------
>>>>>> 
>>>>>> Current thread (0x0000016be9c9b410):  JavaThread "C2 CompilerThread0"
>>>>>> daemon [_thread_in_native, id=3068,
>>>>>> stack(0x000000393e800000,0x000000393e900000)]
>>>>>> 
>>>>>> Current CompileTask:
>>>>>> C2:10515286 18185       4
>>>>>   javafx.scene.control.TableView$5::onChanged
>>>>>> (1049 bytes)
>>>>>> 
>>>>>> 
>>>>>> Am I the only one seeing this?
>>>>>> I am not sure if this relates to changing JavaFX 17 to 18 or whether it
>>>>>> makes it just more likely.
>>>>>> 
>>>>>> It seems to be related to "javafx.scene.control.TableView$5::onChanged"
>>>>>> since all crashes show this line.
>>>>>> 
>>>>>> Having said that, I cannot provide a test-case since it happens all of a
>>>>>> sudden and sometimes after hours using the application.
>>>>>> 
>>>>>> I am open to any feedback or input on how to proceed best.
>>>>>> 
>>>>>> Thanks!
>>>>>> 
>>>>>> -- Daniel
>>> 
>> 
> 


More information about the openjfx-dev mailing list