Modify

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#7837 closed defect (wontfix)

JOSM out of memory with PicLayer image

Reported by: anonymous Owned by: anonymous
Priority: normal Component: Plugin piclayer
Version: tested Keywords:
Cc:

Description

Hi,
loading an image bigger than 7, 8 MB with the PicLayer Plugin, JOSM collapses with a out-of-memory error.

JOSM should be able to handle images at least until 20 MB.

Attachments (0)

Change History (3)

comment:1 Changed 11 months ago by skyper

  • Owner changed from Larry0ua to anonymous
  • Status changed from new to needinfo

Could you please submit some more information (system, java, josm-version...).

The complete error message and maybe a link to an example file would be nice.

Thanks

comment:2 follow-up: Changed 11 months ago by Larry0ua

  • Resolution set to wontfix
  • Status changed from needinfo to closed

I have 8mb jpg file. Let's do some calculations.

disk size: 8.1mb
dimensions: 6800x5300
pixel count: 36M
memory takes: 108Mb

JOSM with bit downloaded data takes 90Mb in memory.
Standard memory limit for Java programs is 256Mb now, and we used 200 of them, that is close to the limit.

So if you want to load bigger images, run josm with next command line:

java -Xmx1G -jar josm-tested.jar

By the way, JOSM shows window with the next text if out of memory:

Please restart JOSM with -Xmx###M option,
where ### is the number of MB assigned to JOSM (e.g. 256)
Currently, 247MB are available to JOSM

Short outcome - that is not a bug and cannot be fixed in code.

comment:3 in reply to: ↑ 2 Changed 11 months ago by skyper

Replying to Larry0ua:

I have 8mb jpg file. Let's do some calculations.

disk size: 8.1mb
dimensions: 6800x5300
pixel count: 36M
memory takes: 108Mb

JOSM with bit downloaded data takes 90Mb in memory.
Standard memory limit for Java programs is 256Mb now, and we used 200 of them, that is close to the limit.

Depends on your system:

$ java -jar Downloads/josm-tested.jar 
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-07-03 01:31:22
Last Changed Author: simon04
Revision: 5315
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-07-02 14:51:19 +0200 (Mon, 02 Jul 2012)
Last Changed Rev: 5315

Information: Einstellungsdatei '$HOME/.josm/preferences.xml' fehlt. Erstelle Standardeinstellungsdatei.
GET http://api.openstreetmap.org/api/capabilities... OK
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-07-03 01:31:22
Last Changed Author: simon04
Revision: 5315
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-07-02 14:51:19 +0200 (Mon, 02 Jul 2012)
Last Changed Rev: 5315

Identification: JOSM/1.5 (5315 de)
Memory Usage: 105 MB / 881 MB (43 MB allocated, but free)
Java version: 1.6.0_24, Sun Microsystems Inc., OpenJDK 64-Bit Server VM
Operating system: Linux

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.