Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1789 closed defect (fixed)

Lakewalker error

Reported by: avar Owned by: framm
Priority: major Component: Plugin
Version: Keywords:
Cc:

Description

Lakewalker keeps re-downloading already downloaded IR1 images on current JOSM:

java.io.FileNotFoundException: /home/avar/.josm/plugins/Lakewalker/IR1/landsat_4000_2000_xy_-84000_260000.png (No such file or directory)

at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at javax.imageio.stream.FileImageOutputStream.<init>(FileImageOutputStream.java:53)
at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(FileImageOutputStreamSpi.java:37)
at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
at javax.imageio.ImageIO.write(ImageIO.java:1514)
at org.openstreetmap.josm.plugins.lakewalker.LakewalkerWMS.saveimage(LakewalkerWMS.java:161)
at org.openstreetmap.josm.plugins.lakewalker.LakewalkerWMS.getTile(LakewalkerWMS.java:140)
at org.openstreetmap.josm.plugins.lakewalker.LakewalkerWMS.getPixel(LakewalkerWMS.java:176)
at org.openstreetmap.josm.plugins.lakewalker.Lakewalker.trace(Lakewalker.java:121)
at org.openstreetmap.josm.plugins.lakewalker.LakewalkerAction.processnodelist(LakewalkerAction.java:145)
at org.openstreetmap.josm.plugins.lakewalker.LakewalkerAction.access$000(LakewalkerAction.java:44)
at org.openstreetmap.josm.plugins.lakewalker.LakewalkerAction$1.realRun(LakewalkerAction.java:122)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:84)
at java.lang.Thread.run(Thread.java:619)

This can be fixed by doing mkdir -p /home/avar/.josm/plugins/Lakewalker/IR1/, but the plugin should check if its cache directory exists and create it if it doesn't.

Attachments (1)

josm-1789-lakewalkercache.patch (4.8 KB) - added by osm@… 4 years ago.
patch enabling cache. Also prepare for cleanup, ref 1808

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by anonymous

  • Component changed from unspecified to Plugin openstreetbugs
  • Version set to latest

comment:2 Changed 4 years ago by osm@…

I have a fix already. Let me test it a bit before submitting...

Changed 4 years ago by osm@…

patch enabling cache. Also prepare for cleanup, ref 1808

comment:3 Changed 4 years ago by anonymous

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

Patch applied.

comment:4 Changed 4 years ago by stoecker

  • Component changed from Core to Plugin
  • Priority changed from blocker to major
  • Summary changed from cheap robaxin to Lakewalker error
  • Type changed from enhancement to defect

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.