Modify

#7165 closed defect (fixed)

Exception is thrown after moving an opened image.

Reported by: anonymous Owned by: team
Priority: normal Component: Core
Version: tested Keywords: template_report
Cc:

Description

What steps will reproduce the problem?

  1. Open image in JOSM
  2. Move the image to some other directory
  3. Try to show the image in JOSM

After that an exception is thrown.

Instead the program should show some error report like: "Unable to open image at '.../foto/img1.jpg'".

Output in JOSM debug dialog:

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-12-16 02:32:17
Last Changed Author: Don-vip
Revision: 4666
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-12-15 21:12:57 +0100 (Thu, 15 Dec 2011)
Last Changed Rev: 4666

Identification: JOSM/1.5 (4666 cs)
Memory Usage: 790 MB / 910 MB (162 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Server VM
Operating system: Linux
Dataset consistency test: No problems found

Plugin: RoadSigns (26406)
Plugin: Tracer (26406)
Plugin: buildings_tools (26530)
Plugin: czechaddress (26509)
Plugin: editgpx (26406)
Plugin: photo_geotagging (26530)
Plugin: routes (26406)
Plugin: routing (26530)
Plugin: terracer (26406)
Plugin: turnrestrictions (26530)

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
	at java.awt.image.BufferedImage.<init>(BufferedImage.java:312)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay$LoadImageRunnable.run(ImageDisplay.java:133)
	at java.lang.Thread.run(Thread.java:662)

Attachments (0)

Change History (1)

comment:1 Changed 17 months ago by Don-vip

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

In [4698/josm]:

fix #7165 - Exception is thrown after moving an opened image.

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.