Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1789 closed defect (fixed)

Lakewalker error

Reported by: avarab@… Owned by: framm
Priority: major Milestone:
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 stephankn 10 years ago.
patch enabling cache. Also prepare for cleanup, ref 1808

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by anonymous

Component: unspecifiedPlugin openstreetbugs
Version: latest

comment:2 Changed 10 years ago by stephankn

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

Changed 10 years ago by stephankn

patch enabling cache. Also prepare for cleanup, ref 1808

comment:3 Changed 10 years ago by anonymous

Resolution: fixed
Status: newclosed

Patch applied.

comment:4 Changed 10 years ago by stoecker

Component: CorePlugin
Priority: blockermajor
Summary: cheap robaxinLakewalker error
Type: enhancementdefect

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.