RFR: 8376253: [macOS] FileSystemView may not report system icons when -Xcheck:jni is enabled

Phil Race prr at openjdk.org
Thu Feb 12 23:44:40 UTC 2026


On Wed, 4 Feb 2026 09:05:14 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> ReleasePrimitiveArrayCritical is called with JNI_ABORT, which discards pixel data when the JVM copies the array. Changed to 0 to always copy back

This passes for me on my Apple Silicon Mac running macOS 15.7
However it fails on an Intel Mac (in our CI) also running macOS 15.7
I find that puzzling. I don't have access to that Mac to reproduce it and perhaps it is something to do with the way the CI system is configured that is causing it .. but here's the log.

----------System.out:(4/211)----------
LookAndFeel: javax.swing.plaf.metal.MetalLookAndFeel
LookAndFeel: javax.swing.plaf.nimbus.NimbusLookAndFeel
LookAndFeel: com.sun.java.swing.plaf.motif.MotifLookAndFeel
LookAndFeel: com.apple.laf.AquaLookAndFeel
----------System.err:(24/1668)----------
java.lang.reflect.InvocationTargetException
	at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1303)
	at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1278)
	at SystemIconPixelDataTest.main(SystemIconPixelDataTest.java:50)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:1527)
Caused by: java.lang.RuntimeException: All pixels are zero
	at SystemIconPixelDataTest.test(SystemIconPixelDataTest.java:90)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:714)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29563#issuecomment-3893992519


More information about the client-libs-dev mailing list