Mailing Lists: Apple Mailing Lists

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

StackOverflowError



Hey all,

I have a complex swing app. I am having a problem where occationally the program gets a StackOverflowError. The stack traces are really long, but I've put a snippet below.

Now, I know full well that I can increase the java stack size (I have managed to make them more common by reducing the size), but considering that most of the stack trace lies in AWTEventMulticaster and never even hits my code, I am concerned that this is a bug in AWT or apple's code. From looking at the AWTEventMulticaster javadocs, it appears that AWTEventMulticaster uses a binary-tree type structure to multicast events. Is that right? If so, am I doing something wrong in my code to cause so much multicasting? Do I need to start unregistering event listeners from deleted objects or something?

Maybe someone else has experience with something simmilar? Is there a simple tip, like running the garbage collector more often (I've tried that)?

Bottom line is I want to make sure I fix my problem rather than, eg, pushing it back until my program has been up and running longer.

Thanks in advance,

	bjorn


apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.StackOverflowError
at java.awt.AWTEventMulticaster.mouseExited(AWTEventMulticaster.java:251)
at java.awt.AWTEventMulticaster.mouseExited(AWTEventMulticaster.java:251)
at java.awt.AWTEventMulticaster.mouseExited(AWTEventMulticaster.java:251)
at java.awt.AWTEventMulticaster.mouseExited(AWTEventMulticaster.java:251)


.....

at java.awt.AWTEventMulticaster.mouseExited(AWTEventMulticaster.java:251)
at java.awt.AWTEventMulticaster.mouseExited(AWTEventMulticaster.java:251)
at java.awt.Component.processMouseEvent(Component.java:5172)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:3359)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3224)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at xowave.util.GlobalHotkeyManager.dispatchEvent(GlobalHotkeyManager.java:119)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
_______________________________________________
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.