Modify

Opened 4 years ago

Closed 4 years ago

#2698 closed defect (fixed)

Programmfehler bei Layeraktualisierung

Reported by: JudgeDredd Owned by: stoecker
Priority: major Component: Core
Version: latest Keywords:
Cc:

Description

Im Rahmen einer Mehrfachserveranfrage (5 Anfragen) bei Layeraktualisierung trat beim Einlesen der aktuellen Layerdaten folgender Fehler auf:

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1607
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1607
Last Changed Date: 2009-05-20 16:08:00 +0200 (Wed, 20 May 2009)

Java version: 1.6.0_01
Plugins: validator;wmsplugin
Plugin validator Version: 15127
Plugin wmsplugin Version: 15091

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

at org.openstreetmap.josm.gui.PleaseWaitRunnable$4.run(PleaseWaitRunnable.java:119)
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 sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at org.openstreetmap.josm.io.OsmReader$Parser.getDouble(OsmReader.java:264)
at org.openstreetmap.josm.io.OsmReader$Parser.startElement(OsmReader.java:188)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(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.parseDataSetOsm(OsmReader.java:479)
at org.openstreetmap.josm.io.OsmReader.parseDataSet(OsmReader.java:467)
at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:101)
at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$Task.realRun(DownloadOsmTask.java:53)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:101)
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 (0)

Change History (6)

comment:1 Changed 4 years ago by stoecker

  • Owner changed from team to JudgeDredd
  • Status changed from new to needinfo

What OS? How many memory is assigned to java? Do you use the opengl arguments?

comment:2 Changed 4 years ago by JudgeDredd

  • Owner changed from JudgeDredd to stoecker
  • Status changed from needinfo to new
  • OS is Windows Vista SP 2
  • Memory assigned to Java as fas as I can see (statusreport within JOSM) is 64 MB
  • Already tried to assign more memory (command line "java -Xmx256 -jar josm-tested.jar"), but does not work
  • OpenGL? Don't know...

comment:3 Changed 4 years ago by stoecker

  • Owner changed from stoecker to JudgeDredd
  • Status changed from new to needinfo

Regarding OpenGL see also #2514. For -Xm you forgot the size spec: -Xmx256M - does this work?

comment:4 Changed 4 years ago by JudgeDredd

  • Owner changed from JudgeDredd to stoecker
  • Status changed from needinfo to new

Well, yesterday I've tried exactly the syntax you wrote (-Xmx256M) but I got only an error message when JAVA started up...
Now I've tried it again and it surprisingly works... JOSM running with 256 MB memory allocated...
Don't know why it didn't work yesterday...

Now I'll try to reproduce the error...

comment:5 Changed 4 years ago by JudgeDredd

JOSM now works much better and stable with 256MB memory assigned. The errors seemed to have occured because of the (huge) size of the map I edited at that time with to little memory available.

Thanks for help!

comment:6 Changed 4 years ago by Gubaer

  • Resolution set to fixed
  • Status changed from new to closed

seems to be fixed

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.