Modify

Opened 14 years ago

Closed 14 years ago

#7165 closed defect (fixed)

Exception is thrown after moving an opened image.

Reported by: anonymous Owned by: team
Priority: normal Milestone:
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 by Don-vip, 14 years ago

Resolution: fixed
Status: newclosed

In [4698/josm]:

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

Modify Ticket

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