This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,276 Users
  • 2,269,776 Discussions
  • 7,916,824 Comments

Discussions

Opening a jfr recording from a GraalVM native image is causing JMC to crash

Looking to add flight recordings to my graalvm applications, I've just built and run and successfully been recording, however; when I try to open this I have the application exit. The following is the full log of the application with the WARNING occurring when opening the file.

Java HotSpot(TM) 64-Bit Server VM warning: Option FlightRecorder was deprecated in version 13.0 and will likely be removed in a future release.
[0.331s][info][jfr,startup] Started recording 1.
[0.331s][info][jfr,startup] 
[0.331s][info][jfr,startup] Use jcmd 28393 JFR.dump name=JMC_Default filename=FILEPATH to copy recording data to file.
2022-12-21 20:37:38.214 jmc[28393:645956] +[CATransaction synchronize] called within transaction
2022-12-21 20:37:38.488 jmc[28393:645956] +[CATransaction synchronize] called within transaction
2022-12-21 20:37:40.436 jmc[28393:645956] +[CATransaction synchronize] called within transaction
2022-12-21 20:37:43.444 jmc[28393:645956] +[CATransaction synchronize] called within transaction
Dec 21, 2022 8:37:53 PM org.openjdk.jmc.flightrecorder.internal.parser.v1.ValueReaders$ReflectiveReader addField
WARNING: Could not find field with name 'virtual' in reader for 'thread'

I've included the macOS crash report as an attachment.

Java: 19.0.1; Java HotSpot(TM) 64-Bit Server VM 19.0.1+10-21

Runtime: Java(TM) SE Runtime Environment 19.0.1+10-21

System: Mac OS X version 13.1 running on x86_64; UTF-8; en_AU (nb)

macOS: Ventura 13.1


Answers