Modify

Opened 4 years ago

Closed 4 years ago

#20275 closed defect (duplicate)

Clicking on a window or changing windows while downloading child elements of a relation freezes JOSM

Reported by: emergency99 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Open a few relation windows (e.g all child relations and the master relations of the bus lines 221 and 222 in lower Austria)
  2. navigate to the master relation window that was opened second.
  3. Click on the child relation tab and onto the "download all child relations" button bottom left

What is the expected result?

Even when clicking another windoww or the map view while waiting, the loading progress window appears and stays at the front, indicates all the downloads and disappears after afew seconds when all child relations were fully downloaded, with no other window coming to the front afterwards either.

What happens instead?

The first opened relation window comes to the front, and the whole application freezes, without the java process or system noticing, closing buttons no longer work, no input is received by the app.

Please provide any additional information below. Attach a screenshot if possible.

A possible related bug (part of this problem) is, that the first opened relation window will always be the top window, as soon as the map is interacted with or a popup opens. The expected behaviour there would be, that whichever window was last selected stays the top window, and no user-unprompted window-changes happen.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-11-21 14:56:29 +0100 (Sat, 21 Nov 2020)
Build-Date:2020-11-22 02:30:52
Revision:17329
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17329 de) Mac OS X 10.16
OS Build number: macOS 11.1 (20C69)
Memory Usage: 465 MB / 1820 MB (179 MB allocated, but free)
Java version: 1.8.0_271-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69732032 1440x900 (scaling 1.0x1.0)
Maximum Screen Size: 1440x900
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
VM arguments: [-Djava.security.policy=file:<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin, -Djava.security.manager, -Djnlpx.origFilenameArg=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/56/1ee8cfb8-4161f97d, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Dmacosx.jnlpx.dock.name=JOSM, -Dmacosx.jnlpx.dock.icon=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/25/4c122699-50d06574.icns, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp , -Djnlpx.jvm="<java.home>/bin/java"]
Dataset consistency test: No problems found

Plugins:
+ CustomizePublicTransportStop (35640)
+ PicLayer (2a9aa7a)
+ apache-commons (35524)
+ ejml (35458)
+ flatlaf (35589)
+ geotools (35458)
+ jaxb (35543)
+ jts (35458)
+ opendata (35640)
+ public_transport (35640)
+ reltoolbox (35640)
+ reverter (35640)
+ utilsplugin2 (35640)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Bus_lanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/PublicTransportOneClick&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PTStops&zip=1

Last errors/warnings:
- 00020,392 E: org.openstreetmap.josm.io.IllegalDataException: Zeile 1 Spalte 1: Vorzeitiges Dateiende.. Ursache: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
- 00021,858 E: Fehler - <html>Die Datei 'Datenebene 1_20201221_170742212.osm' konnte nicht gelesen werden.<br>Fehlermeldung: <br>Zeile 1 Spalte 1: Vorzeitiges Dateiende.</html>
- 00024,087 E: org.openstreetmap.josm.io.IllegalDataException: Zeile 1 Spalte 1: Vorzeitiges Dateiende.. Ursache: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
- 00028,100 W: Unable to convert property casing-color to type class java.awt.Color: found #66066 of type class java.lang.String!
- 00031,134 E: Fehler - <html>Die Datei '221222.osm_20201221_171729337.osm' konnte nicht gelesen werden.<br>Fehlermeldung: <br>Zeile 1 Spalte 1: Vorzeitiges Dateiende.</html>
- 00050,260 W: Unable to convert property casing-color to type class java.awt.Color: found #66066 of type class java.lang.String!
- 00051,308 W: Unable to convert property casing-color to type class java.awt.Color: found #66066 of type class java.lang.String!
- 00052,447 W: Unable to convert property casing-color to type class java.awt.Color: found #66066 of type class java.lang.String!
- 00132,437 W: Unable to convert property casing-color to type class java.awt.Color: found #66066 of type class java.lang.String!
- 00237,604 W: Unable to request focus for org.openstreetmap.josm.gui.tagging.ac.AutoCompletingTextField[,0,0,287x17,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EmptyBorder@eed771a,flags=288,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=0,g=0,b=0],selectionColor=com.apple.laf.AquaImageFactory$SystemColorProxy[r=165,g=205,b=255],columns=0,columnWidth=0,command=,horizontalAlignment=LEADING]

Attachments (1)

Bildschirmfoto 2020-12-21 um 17.23.30.png (293.7 KB ) - added by emergency99 4 years ago.
Locked up JOSM

Download all attachments as: .zip

Change History (4)

by emergency99, 4 years ago

Locked up JOSM

comment:1 by emergency99, 4 years ago

My OSM Account through which you can contact me: https://www.openstreetmap.org/user/emergency99

comment:2 by GerdP, 4 years ago

I think I can reproduce the problem. I see lots of EDT violations in the console Window:

2020-12-21 18:56:49.870 SEVERE: EDT violation detected
2020-12-21 18:56:49.871 SEVERE: org.openstreetmap.josm.gui.dialogs.relation.MemberTable[,0,0,360x383,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=251658728,maximumSize=,minimumSize=,preferredSize=,autoCreateColumnsFromModel=false,autoResizeMode=AUTO_RESIZE_ALL_COLUMNS,cellSelectionEnabled=false,editingColumn=-1,editingRow=-1,gridColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],preferredViewportSize=java.awt.Dimension[width=450,height=400],rowHeight=22,rowMargin=1,rowSelectionAllowed=true,selectionBackground=javax.swing.plaf.ColorUIResource[r=0,g=120,b=215],selectionForeground=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],showHorizontalLines=true,showVerticalLines=true]
2020-12-21 18:56:49.873 SEVERE:         at java.lang.Thread.getStackTrace(Thread.java:1559)
2020-12-21 18:56:49.873 SEVERE:         at org.openstreetmap.josm.gui.util.CheckThreadViolationRepaintManager.checkThreadViolations(CheckThreadViolationRepaintManager.java:54)
2020-12-21 18:56:49.873 SEVERE:         at org.openstreetmap.josm.gui.util.CheckThreadViolationRepaintManager.addDirtyRegion(CheckThreadViolationRepaintManager.java:45)
2020-12-21 18:56:49.873 SEVERE:         at javax.swing.JComponent.repaint(JComponent.java:4793)
2020-12-21 18:56:49.874 SEVERE:         at javax.swing.JComponent.repaint(JComponent.java:4808)
2020-12-21 18:56:49.874 SEVERE:         at javax.swing.JTable.valueChanged(JTable.java:4707)
2020-12-21 18:56:49.874 SEVERE:         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
2020-12-21 18:56:49.875 SEVERE:         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
2020-12-21 18:56:49.875 SEVERE:         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
2020-12-21 18:56:49.875 SEVERE:         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
2020-12-21 18:56:49.876 SEVERE:         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
2020-12-21 18:56:49.876 SEVERE:         at javax.swing.DefaultListSelectionModel.addSelectionInterval(DefaultListSelectionModel.java:518)
2020-12-21 18:56:49.877 SEVERE:         at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.addToSelectedMembers(MemberTableModel.java:617)
2020-12-21 18:56:49.877 SEVERE:         at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.setSelectedMembersIdx(MemberTableModel.java:587)
2020-12-21 18:56:49.877 SEVERE:         at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.setSelectedMembers(MemberTableModel.java:566)
2020-12-21 18:56:49.878 SEVERE:         at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.dataChanged(MemberTableModel.java:137)
2020-12-21 18:56:49.878 SEVERE:         at org.openstreetmap.josm.data.osm.event.DataChangedEvent.fire(DataChangedEvent.java:38)
2020-12-21 18:56:49.879 SEVERE:         at org.openstreetmap.josm.data.osm.DataSet.fireEventToListeners(DataSet.java:1003)
2020-12-21 18:56:49.879 SEVERE:         at org.openstreetmap.josm.data.osm.DataSet.endUpdate(DataSet.java:937)
2020-12-21 18:56:49.879 SEVERE:         at org.openstreetmap.josm.data.osm.DataSet.update(DataSet.java:962)
2020-12-21 18:56:49.881 SEVERE:         at org.openstreetmap.josm.data.osm.DataSetMerger.merge(DataSetMerger.java:424)
2020-12-21 18:56:49.887 SEVERE:         at org.openstreetmap.josm.data.osm.DataSetMerger.merge(DataSetMerger.java:405)
2020-12-21 18:56:49.887 SEVERE:         at org.openstreetmap.josm.data.osm.DataSetMerger.merge(DataSetMerger.java:394)
2020-12-21 18:56:49.887 SEVERE:         at org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser$DownloadTask.mergeDataSet(ChildRelationBrowser.java:353)
2020-12-21 18:56:49.888 SEVERE:         at org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser$DownloadAllChildrenTask.realRun(ChildRelationBrowser.java:432)
2020-12-21 18:56:49.888 SEVERE:         at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
2020-12-21 18:56:49.889 SEVERE:         at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
2020-12-21 18:56:49.889 SEVERE:         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
2020-12-21 18:56:49.889 SEVERE:         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2020-12-21 18:56:49.890 SEVERE:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
2020-12-21 18:56:49.890 SEVERE:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
2020-12-21 18:56:49.890 SEVERE:         at java.lang.Thread.run(Thread.java:748)

Maybe #20228 is related.

comment:3 by GerdP, 4 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #20228.
I think the problem is the same, please try my steps in ticket:20228#comment:24

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.