Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.4.11 Java Hang/Crash



Alexei Svitkine wrote:

A customer reported a hang in my app on 10.4.11 just as the app was
creating its first Swing window.

The Console log is as follows:

CGSResolveShmemReference : offset exceeds bounds
JavaAWT: NSException not handled by native method. Passing to Java.
java.lang.RuntimeException: Non-Java exception raised, not handled!
(Original problem: Error (1000) creating CGSWindow)
at apple.awt.OSXOffScreenSurfaceData._copyNSImagePixels(Native Method)
at
apple
.awt
.OSXOffScreenSurfaceData
.copyNSImagePixels(OSXOffScreenSurfaceData.java:1030)
at apple.awt.CImage.createImage(CImage.java:51)
at apple.awt.CImage.createImage(CImage.java:92)
at apple.laf.AquaSystemIcon.<init>(AquaSystemIcon.java:40)
at
apple.laf.AquaLookAndFeel.initComponentDefaults(AquaLookAndFeel.java:
620)
at apple.laf.AquaLookAndFeel.getDefaults(AquaLookAndFeel.java:360)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:445)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:485)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1178)
at javax.swing.UIManager.initialize(UIManager.java:1265)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1253)
at javax.swing.UIManager.getUI(UIManager.java:859)
at javax.swing.JPanel.updateUI(JPanel.java:104)
at javax.swing.JPanel.<init>(JPanel.java:64)
at javax.swing.JPanel.<init>(JPanel.java:87)
at javax.swing.JPanel.<init>(JPanel.java:95)
at javax.swing.JRootPane.createGlassPane(JRootPane.java:482)
at javax.swing.JRootPane.<init>(JRootPane.java:313)
at javax.swing.JFrame.createRootPane(JFrame.java:247)
at javax.swing.JFrame.frameInit(JFrame.java:228)
at javax.swing.JFrame.<init>(JFrame.java:195)

What thread did this happen on? The trace is truncated, so we cannot tell. If you are not on the Swing thread, that could cause this. Apple's JRE requires stricter adherence to Sun's only-touch-Swing- components-from-the-EDT rule. If you are already on the Swing thread then this isn't the issue. Can your customer reproduce the issue? If so, try running in the Metal PLAF, rather than Aqua, to see if that gives you a work-around.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.