Opened 9 years ago

Closed 8 years ago

Last modified 7 years ago

#11693 closed defect (fixed)

Needs a higher timeout with RemoteControl and overpass

Reported by: naoliv Owned by: team
Priority: normal Milestone: 16.01
Component: Core Version:
Keywords: mirrored_download Cc:


When trying to export a slower query from overpass into JOSM we see this:

ERRO: Read timed out. Causa: Read timed out Read timed out
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.parseDataSet(
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.realRun(
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: Read timed out
	at Method)
	... 15 more

Note that the timeout doesn't happen with overpass, but in JOSM.
The slower (but valid) query:


Repository Root:
Build-Date: 2015-07-15 01:32:25
Last Changed Author: wiktorn
Revision: 8603
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
Last Changed Date: 2015-07-14 23:30:40 +0200 (Tue, 14 Jul 2015)
Last Changed Rev: 8603

Identification: JOSM/1.5 (8603 pt_BR) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 401 MB / 4029 MB (122 MB allocated, but free)
Java version: 1.7.0_79, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u79-2.5.5-1
VM arguments: [-Dawt.useSystemAAFontSettings=on]
Dataset consistency test: No problems found

- AddrInterpolation (31241)
- Create_grid_of_ways (31241)
- FastDraw (31265)
- FixAddresses (31241)
- OpeningHoursEditor (31241)
- PicLayer (31241)
- SimplifyArea (31241)
- buildings_tools (31361)
- download_along (31241)
- editgpx (31241)
- geotools (31126)
- graphview (31241)
- jts (31126)
- measurement (31289)
- merge-overlap (31241)
- opendata (31241)
- pdfimport (31241)
- poly (31241)
- reverter (31241)
- tagging-preset-tester (31241)
- todo (29154)
- turnrestrictions (31241)
- undelete (31241)
- utilsplugin2 (31241)

Attachments (0)

Change History (10)

comment:1 by naoliv, 9 years ago

Increasing to 60 solves this, but could overpass somehow be special cased? (have a different timeout from the rest)

comment:2 by simon04, 9 years ago

Keywords: mirrored_download added

comment:3 by naoliv, 8 years ago

Ticket #12032 has been marked as a duplicate of this ticket.

comment:4 by kris@…, 8 years ago

Just want to add a note that is a user setting that can be changed by going to Preferences --> Advanced Preferences in JOSM

(For anyone else arriving here from Google that needs a work-around)

comment:5 by simon04, 8 years ago

Resolution: fixed
Status: newclosed

In 9308/josm:

fix #11693 - Overpass download: parse and use timeout from [timeout:X] parameter

comment:6 by simon04, 8 years ago

Milestone: 16.01

comment:7 by naoliv, 8 years ago

Resolution: fixed
Status: closedreopened

Sorry to reopen, but there is one case where I guess it won't work:
when there isn't any [timeout] in the overpass query (like the example at the description).

No [timeout] is the same as a very high timeout (I guess it's even higher than 180 as says)

To be safe, shouldn't it use a timeout of 180000 (180 * 1000) in an else in the code?

comment:8 by simon04, 8 years ago

I thought about this one before … My consideration for not defaulting to 180s is that a user may have underestimated the complexity/result-size of the query and might be happier to have a shorter timeout set … However, s/he could also cancel if it's taking too long.

I'm undecided ;)

comment:9 by simon04, 8 years ago

Resolution: fixed
Status: reopenedclosed

In 9318/josm:

fix #11693 - Overpass download: set default timeout to 180s

comment:10 by anonymous, 7 years ago

Maybe the user dialogues could have a timeout override for longer operations. I had the same issue using the reverter plugin where fetching the .osc data took a bit more than 30 s.

Modify Ticket

Change Properties
Set your email in Preferences
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.