Modify

Opened 9 months ago

Last modified 9 months ago

#23531 new defect

Connection problem causes freeze/hang

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

Description

What steps will reproduce the problem?

  1. Enable Mapillary plugin
  2. Create new layer, or download data

What is the expected result?

Can open a new layer. Or shows network error from Mapillary, and skips its loading.

What happens instead?

Freeze/hang or extremely long wait, necessitating force quit. Disabling plugin solves it.

2024-03-03 14:27:29.357 FINE: Entering map mode: ShapeMode
2024-03-03 14:27:29.461 FINE: [TTM] 0 seconds committed, 1709447240 - 1709447240 uncommitted, new change at 1709447249
2024-03-03 14:27:29.589 FINE: Contacting Server...
2024-03-03 14:27:29.589 FINE: REQUEST HEADERS: {Accept=text/x-mapcss, text/mapcss, text/css; q=0.9, text/plain; q=0.8, application/zip, application/octet-stream; q=0.5, Accept-Encoding=gzip, deflate}
2024-03-03 14:27:31.481 INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/MapillaryDetections&zip=1 -> HTTP/1.1 200 (1.9 s; 4.47 MB)
2024-03-03 14:27:31.481 FINE: RESPONSE HEADERS: {Keep-Alive=[timeout=5, max=100], null=[HTTP/1.1 200 OK], Strict-Transport-Security=[max-age=16070400; includeSubDomains], Server=[Apache/2.4.52 (Ubuntu)], Content-Disposition=[attachment; filename="Styles_MapillaryDetections.zip"], Connection=[Keep-Alive], Content-Length=[4688224], X-Clacks-Overhead=[GNU Terry Pratchett], Date=[Sun, 03 Mar 2024 06:27:30 GMT], Content-Type=[application/zip]}
2024-03-03 14:27:31.481 FINE: Downloading data...
^C2024-03-03 14:28:10.869 FINE: Shutdown hook activated. Shutdown was not called. Shutting down JCS.
2024-03-03 14:28:10.870 FINE: Element event queue destroyed: org.apache.commons.jcs3.engine.control.event.ElementEventQueue@a77608d

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2024-02-05 12:56:34 +0100 (Mon, 05 Feb 2024)
Revision:18969
Build-Date:2024-02-06 02:30:58
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18969 en) Linux Mint 20.2
Memory Usage: 2208 MB / 16056 MB (961 MB allocated, but free)
Java version: 17.0.9+9-Ubuntu-120.04, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_HK.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_HK
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: X-Cinnamon
Java package: openjdk-17-jre:amd64-17.0.9+9-1~20.04
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20200323-1build1~ubuntu20.04.1
VM arguments: [--module-path=/usr/share/openjfx/lib, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, -Djosm.restart=true, -Djava.net.useSystemProxies=true, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED]

Plugins:
+ AddrInterpolation (36200)
+ CADTools (1008)
+ ColorPlugin (v1.1.2.1)
+ CommandLine (36178)
+ Create_grid_of_ways (36178)
+ CustomizePublicTransportStop (36126)
+ EasyPresets (1623509627)
+ ElevationProfile (36126)
+ FastDraw (36200)
+ ImportImagePlugin (36184)
+ ImproveWay (32)
+ InfoMode (36126)
+ OpeningHoursEditor (36196)
+ PolygonCutOut (v0.7.3)
+ RelationDissolve (0.2.0)
+ Review.Changes (1.1.1)
+ RovasConnector (0.1.0)
+ SeaMapEditor (36126)
+ ShapeTools (1250)
+ alignways (36200)
+ apache-commons (36176)
+ apache-http (36176)
+ buildings_tools (36200)
+ centernode (v1.0.4)
+ changeset-viewer (0.0.7)
+ conflation (0.6.11)
+ contourmerge (v0.2.0)
+ editgpx (36126)
+ ejml (36176)
+ geotools (36176)
+ graphview (36196)
+ gridify (1606242219)
+ imagery_offset_db (36126)
+ indoorhelper (1.2.3)
+ jackson (36176)
+ jaxb (36118)
+ jna (36176)
+ josm-batch-downloader (1.0.4)
+ josm_magic_wand (2.0.0)
+ jts (36004)
+ log4j (36176)
+ mapwithai (827)
+ markseen (14)
+ measurement (36200)
+ merge-overlap (36178)
+ notesolver (0.5.0)
+ opendata (36200)
+ pbf (36176)
+ pmtiles (36156)
+ print (36126)
+ pt_assistant (632)
+ public_transport (36200)
+ reltoolbox (36213)
+ reverter (36196)
+ routes (36196)
+ scripting (v0.3.1)
+ shrinkwrap (v1.0.4)
+ splinex (36126)
+ tageditor (36200)
+ tagging-preset-tester (36200)
+ terracer (36196)
+ todo (137)
+ turnlanes (36206)
+ turnlanes-tagging (0.0.5)
+ turnrestrictions (36200)
+ undelete (36126)
+ utilsplugin2 (36200)
+ waydownloader (36196)
+ wikipedia (605)

Tagging presets:
+ <josm.userdata>/EasyPresets.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
+ https://pasharm.github.io/New_basic_style_for_JOSM/New_basic_style.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/PTStops&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/iD&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Direction&zip=1
- https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
- https://www.openrailwaymap.org/styles/josm-additional.zip
- https://www.openrailwaymap.org/styles/standard.zip
+ https://gitlab.com/cartocite/josm-style-traffic-signs-orientation/-/raw/main/traffic_sign_orientation_style.zip
+ https://josm.openstreetmap.de/josmfile?page=Rules/IncompleteObjectWarnings&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
- <josm.userdata>/plugins/indoorhelper/resources/sit.mapcss

Last errors/warnings:

Attachments (1)

debug.txt (73.2 KB ) - added by Kovoschiz 9 months ago.

Download all attachments as: .zip

Change History (7)

by Kovoschiz, 9 months ago

Attachment: debug.txt added

comment:1 by Kovoschiz, 9 months ago

Component: CorePlugin mapillary
Owner: changed from team to taylor.smock
Priority: normalcritical

comment:2 by Kovoschiz, 9 months ago

Component: Plugin mapillaryCore
Owner: changed from taylor.smock to team
Summary: Mapillary connection problem causes freeze/hang at creating/opening new layer or after downloading dataConnection problem causes freeze/hang at creating/opening new layer or after downloading data

Apparently it happens whenever anything is stuck. This time "loading imagery preference". Now I can't start JOSM at all.

2024-03-04 16:22:36.964 FINE: Initializing presets completed in 1.7 s
2024-03-04 16:22:37.122 FINE: Contacting Server...
2024-03-04 16:22:37.122 FINE: REQUEST HEADERS: {Accept=null, Accept-Encoding=gzip, deflate}
2024-03-04 16:22:41.123 INFO: GET https://josm.openstreetmap.de/maps?ids=Bing%2CEsriWorldImagery%2CEsriWorldImageryClarity%2CMapbox%2COpenTopoMap%2Ccyclosm%2Copencylemap%2Copenrailwaymap%2Copenrailwaymap-mapxspeed%2Copenrailwaymap-signals%2Copenseamap%2Cosmfr%2Cpublic_transport_oepnv%2Cstamen-terrain-background%2Cstandard%2Cstrava_both_heatmap%2Cstrava_cycling_heatmap%2Cstrava_running_heatmap%2Cstrava_water_heatmap%2Ctf-landscape -> HTTP/1.1 200 (4.0 s)
2024-03-04 16:22:41.124 FINE: RESPONSE HEADERS: {Transfer-Encoding=[chunked], Keep-Alive=[timeout=5, max=100], null=[HTTP/1.1 200 OK], Server=[Apache/2.4.52 (Ubuntu)], Connection=[Keep-Alive], Last-Modified=[Sun, 03 Mar 2024 16:10:37 GMT], Date=[Mon, 04 Mar 2024 08:22:40 GMT], Strict-Transport-Security=[max-age=16070400; includeSubDomains], Content-Encoding=[gzip], Vary=[Accept-Encoding], Set-Cookie=[], X-Clacks-Overhead=[GNU Terry Pratchett], Content-Type=[text/xml;charset=utf-8]}
2024-03-04 16:22:41.124 FINE: Downloading data...

comment:3 by Kovoschiz, 9 months ago

Priority: criticalnormal
Summary: Connection problem causes freeze/hang at creating/opening new layer or after downloading dataConnection problem causes freeze/hang

This time it's an less unbearable 5min wait. Can there be a short time out?

2024-03-04 16:22:41.124 FINE: Downloading data...
2024-03-04 16:27:06.101 FINE: Starting SAX parsing of org.xml.sax.InputSource@3ffb1db2 using org.openstreetmap.josm.io.imagery.ImageryReader$Parser@1d4248a2
2024-03-04 16:27:06.321 FINE: SAX parsing completed in 219 ms
2024-03-04 16:27:06.365 FINE: Loading imagery preferences completed in 4 min 31 s

comment:4 by GerdP, 9 months ago

What values do you see for these preferences? These are the defaults in seconds:

socket.timeout.connect	15
socket.timeout.read	30

comment:5 by Kovoschiz, 9 months ago

Same. It's not changed from the default. Perhaps unrelatedly, socket.maxredirects=5 neither. Also remotecontrol.osm.download=300 , but I'm not launching from website.

I don't have connection problems now, but this was frustrating to happen when I need JOSM immediately after botching a revert (which Monicz depends on Overpass timeliness; fortunately the older Revert tool worked for small changeset). So as another solution, the loading bar on the dialog box should keep being animated. Then I won't mistake it as a freeze/hang.

comment:6 by GerdP, 9 months ago

I can reproduce that the animation stops when I use my laptop at a place with poor WLAN connection after removing the cached files.
I don't know why that happens, my understanding was that this animation simply keeps "rotating" no matter what happens.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Kovoschiz.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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