Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#3965 closed defect (duplicate)

Error downloadning

Reported by: perastruplaustsen@… Owned by: perastruplaustsen@…
Priority: minor Component: Core
Version: tested Keywords:
Cc:

Description (last modified by stoecker)

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 2255
Node Kind: directory
Last Changed Author: Gubaer
Last Changed Rev: 2255
Last Changed Date: 2009-10-07 21:25:15 +0200 (Wed, 07 Oct 2009)

Memory Usage: 63 MB / 63 MB (49 MB allocated, but free)
Java version: 1.6.0_17

Plugins: validatorwmsplugin
Plugin validator Version: 17722
Plugin wmsplugin Version: 17817

java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space

at org.openstreetmap.josm.gui.PleaseWaitRunnable$2.run(PleaseWaitRunnable.java:98)
at java.awt.event.InvocationEvent.dispatch(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)

Caused by: java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at com.sun.org.apache.xerces.internal.xni.XMLString.toString(Unknown Source)
at com.sun.org.apache.xerces.internal.util.XMLAttributesImpl.getValue(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$AttributesProxy.getValue(Unknown Source)
at org.openstreetmap.josm.io.OsmReader$Parser.startElement(OsmReader.java:290)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:534)
at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:107)
at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$Task.realRun(DownloadOsmTask.java:59)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:62)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:116)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Attachments (1)

ScreenShot124.jpg (62.9 KB) - added by perastruplaustsen@… 4 years ago.
copy of screen

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by vsandre

  • Owner changed from team to perastruplaustsen@…
  • Priority changed from normal to minor
  • Status changed from new to needinfo

It seems that your allocated ram is to small for your downloaded area. Please tell us your downloading area (bbox).

For the meantime use something like this:

java -Xms128M -Xmx1024M -jar josm-custom.jar

comment:2 Changed 4 years ago by stoecker

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from needinfo to closed

Changed 4 years ago by perastruplaustsen@…

copy of screen

comment:3 Changed 4 years ago by perastruplaustsen@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

attacked file with screenshot to the ticket

comment:4 Changed 4 years ago by Gubaer

What is the defect?

comment:5 Changed 4 years ago by perastruplaustsen@…

Answer to this comment:
omment:

It seems that your allocated ram is to small for your downloaded area.
Please tell us your downloading area (bbox).

For the meantime use something like this:

java -Xms128M -Xmx1024M -jar josm-custom.jar

comment:6 Changed 4 years ago by anonymous

Tested with

  java -Xms64M -Xmx64M -jar josm-latest.jar

and:
bbox for josm

The data you wants to download is about 21 MB big. The mentioned free 49 MB are not enough for rendering and storing the data. Please try a smaller region or start JOSM with more RAM.

BTW: My JOSM stops working while "Downloading... 962 KB".

Opening the predownloaded OSM data courses no exception but works extremly slow (0 MB free) and the first use of the tagging editor causes a OutOfMemoryError. Working in the wireframe modus (CTRL-W) is not really better (3 MB free) but it works.

Could someone please add a dialogue which will warn you that your ram is to small.

comment:7 Changed 4 years ago by stoecker

  • Resolution set to duplicate
  • Status changed from reopened to closed

comment:8 Changed 4 years ago by stoecker

Closed as duplicate of #2134.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.