Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#22159 closed defect (duplicate)

Josm failed to load - stalled at contacting server then crashed

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

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

Revision:18463
Build-Date:2022-05-30 10:26:29

Identification: JOSM/1.5 (18463 en_GB) Mac OS X 12.4
OS Build number: macOS 12.4 (21F79)
Memory Usage: 1248 MB / 4096 MB (180 MB allocated, but free)
Java version: 17.0.3+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1512×982 (scaling 2.00×2.00)
Maximum Screen Size: 1512×982
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18463, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/private/var/folders/nm/nbwppzqx5cxcyryqry3ddrq00000gn/T/AppTranslocation/F46FEC94-30F1-4114-B172-CFFA556B70B8/d/JOSM-4.app/Contents/MacOS/JOSM]
Dataset consistency test: No problems found

Plugins:
+ HouseNumberTaggingTool (35951)
+ apache-commons (35924)
+ apache-http (35924)
+ buildings_tools (35951)
+ imagery_offset_db (35893)
+ jna (35924)
+ mapwithai (1.9.13)
+ touchscreenhelper (35893)
+ utilsplugin2 (35970)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
- https://github.com/MissingMaps/josm_styles/archive/master.zip
- https://github.com/osmlab/applepaintstyles/archive/main.zip

Last errors/warnings:
- 03444.255 E: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed
- 03483.446 W: java.net.SocketException: Connection reset. Cause: java.net.SocketException: Connection reset
- 03483.447 W: Already here java.net.SocketException: Socket closed
- 03483.448 E: java.net.SocketException: Connection reset. Cause: java.net.SocketException: Connection reset
- 03483.471 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Connection reset. Cause: java.net.SocketException: Connection reset
- 03483.483 E: Network exception - <html>Failed to open a connection to the remote server<br>'https://api.openstreetmap.org/api/0.6/map?bbox=91.538086,24.666986,91.560059,24.686952'.<br>Please check your internet connection.</html>
- 03483.504 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Connection reset. Cause: java.net.SocketException: Connection reset
- 03483.504 E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Connection reset. Cause: java.net.SocketException: Connection reset
- 03483.507 E: org.openstreetmap.josm.io.OsmTransferException: Failed to open a connection to the remote server<br>'https://api.openstreetmap.org/api/0.6/map?bbox=91.538086,24.666986,91.560059,24.686952'.<br>Please check your internet connection.
- 03483.521 E: Handled by bug report queue: org.openstreetmap.josm.io.OsmTransferException: Failed to open a connection to the remote server<br>'https://api.openstreetmap.org/api/0.6/map?bbox=91.538086,24.666986,91.560059,24.686952'.<br>Please check your internet connection.



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (23) of main
org.openstreetmap.josm.io.OsmTransferException: Failed to open a connection to the remote server<br>'https://api.openstreetmap.org/api/0.6/map?bbox=91.538086,24.666986,91.560059,24.686952'.<br>Please check your internet connection.
	at org.openstreetmap.josm.io.remotecontrol.handler.LoadAndZoomHandler.lambda$handleRequest$0(LoadAndZoomHandler.java:169)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.desktop/java.awt.Dialog.show(Unknown Source)
	at java.desktop/java.awt.Component.show(Unknown Source)
	at java.desktop/java.awt.Component.setVisible(Unknown Source)
	at java.desktop/java.awt.Window.setVisible(Unknown Source)
	at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.HelpAwareOptionPane.doShowOptionDialog(HelpAwareOptionPane.java:353)
	at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:289)
	at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:368)
	at org.openstreetmap.josm.gui.ExceptionDialogUtil.showErrorDialog(ExceptionDialogUtil.java:43)
	at org.openstreetmap.josm.gui.ExceptionDialogUtil.explainNestedSocketException(ExceptionDialogUtil.java:124)
	at org.openstreetmap.josm.gui.ExceptionDialogUtil.explainOsmTransferException(ExceptionDialogUtil.java:389)
	at org.openstreetmap.josm.gui.ExceptionDialogUtil.explainException(ExceptionDialogUtil.java:491)
	at org.openstreetmap.josm.actions.downloadtasks.PostDownloadHandler.lambda$run$1(PostDownloadHandler.java:109)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 by taylor.smock, 3 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #21431.

comment:2 by mdk, 3 years ago

#21431 is about
Failed to upload data to or download data from<br>'https://api.openstreetmap.org/[...]' due to a problem with transferring data. Details (untranslated): connect timed out

This issue is about
Failed to open a connection to the remote server<br>'https://api.openstreetmap.org/[...]'. Please check your internet connection.
So it looks like the OSM servers were down again (like in #22160)

Version 0, edited 3 years ago by mdk (next)

comment:3 by taylor.smock, 3 years ago

The root cause for this and #21431 is effectively the same.

We are throwing an OsmTransferException in source:trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/LoadAndZoomHandler.java#L169. This is supposedly caught and sent to ExceptionDialogUtil.explainException, except that is called prior to the the exception being thrown.

Anyway, see #22138 for

Several users are not aware that the other side may be unreachable (In #22160 the user claims, that the internet connection works fine). Maybe we should also give the hint, that api.openstreetmap.org is not reachable. Maybe add a link to check the status. Or smarter, we could check in such a case another URL (from OSM). If we can reach this host, the local internet connection seams to be ok, and we could directly point to a possible problem with the server.

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.