La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la newsletter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [QF-Test] Problem with Swing lockup
Hi
all, I thought I had
modified my test application to use SwingUtilities.invokeAndWait() when creating
its JFrame but I am still seeing a lockup when it is launched from
QFTest. TestHCIMain(String[] args) { try { javax.swing.SwingUtilities.invokeAndWait( new Runnable() { public void run() { jFrame = getJFrame(); } } ); } ... public static void main(String[]
args) { System.out.println("TestHCIMain started"); for(int i = 0; i < args.length; ++i) { System.out.println(args[i]); } new TestHCIMain(args); } ... This gives me
a thread dump with the usual Swing thread safety culprit:
java.awt.Component$AWTTreeLock It looks like
my invokeAndWait call has been triggered on a QFTest
thread: at
com.thalesgroup.sat.toolbar.test.TestHCIMain.getJFrame(TestHCIMain.java:122) at com.thalesgroup.sat.toolbar.test.TestHCIMain.access$100(TestHCIMain.java:45) at com.thalesgroup.sat.toolbar.test.TestHCIMain$1.run(TestHCIMain.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at de.qfs.lib.gui.EventQueue.doDispatch(EventQueue.java:679) at de.qfs.apps.qftest.client.awt.dd.doDispatch(SourceFile:439) at de.qfs.lib.gui.EventQueue.dispatchEvent(EventQueue.java:592) at de.qfs.apps.qftest.client.awt.dd.a(SourceFile:350) at de.qfs.apps.qftest.client.awt.de.run(SourceFile:334) at java.security.AccessController.doPrivileged(Native Method) at de.qfs.apps.qftest.client.awt.dd.dispatchEvent(SourceFile:332) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Anyone seem
anything obvious I've missed? Regards, Pat. Patrick Stephens Tel: +44
(0)161 741 3860
Please consider the environment
before printing a hard copy of this e-mail. Attachment:
jstack_testhci.log Attachment:
TestHCIMain.java
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.