Modify

Opened 16 years ago

Closed 16 years ago

#1566 closed defect (fixed)

Java Error when splash screen is clicked.

Reported by: anonymous Owned by: framm
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

If the new splash screen (in the most recent SVN release) is clicked when it is shown during application start-up the following error is raised:

Development version. Unknown revision.
java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread

at java.awt.EventQueue.invokeAndWait(Unknown Source)
at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
at org.openstreetmap.josm.gui.SplashScreen$2.mousePressed(SplashScreen.java:109)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
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)

Attachments (1)

screen.patch (605 bytes ) - added by christoph_seitz@… 16 years ago.
Patch for the Problem

Download all attachments as: .zip

Change History (2)

comment:1 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

The problem is to call invokeAndWait in an Function which already runs in the Event Dispatch thread. That will cause a block of the Event Dispatch Thread.
The solution just run the runnable. It is already in the Event Dispatch Thread.
I added a Patch. I hope it fix it. I tested it. Just one line.

by christoph_seitz@…, 16 years ago

Attachment: screen.patch added

Patch for the Problem

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.