Modify

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#5499 closed defect (duplicate)

Button to delete old autosave data not functional

Reported by: wendorff@… Owned by: team
Priority: normal Component: Core
Version: latest Keywords: autosave
Cc: osm@…, florian@…

Description

As requested in #5359 there is a button to delete autosave layers at restart after JOSM crashed.

That button is not functional.
Pressing it, the dialog telling me about the unsaved layers is closed, but the layer data is not deleted from ~/.josm/autosave/

When restarting JOSM the dialog appears again for the same old data.

Deleting the files manually helps as a workaround - but that's not a solution ;)

Attachments (1)

josm.zip (1.5 MB) - added by wendorff@… 3 years ago.
preference folder; hopefully useful for reproduction of the error

Download all attachments as: .zip

Change History (14)

comment:1 Changed 3 years ago by bastiK

It moves the files to ~/.josm/autosave/deleted_layers, but this fails if that folder already contains a file with the same name.

Can you confirm that this is the cause of the problem?

(I will fix this later.)

comment:2 Changed 3 years ago by wendorff@…

That's possible; will check it again as soon as I run into the bug next time ;)
I didn't check the exact content of autosave/deleted_layers; instead I deleted the deleted_layers directory and the .osm files.

comment:3 Changed 3 years ago by malenki

  • Cc osm@… added

comment:4 Changed 3 years ago by grossing

  • Cc florian@… added

comment:5 Changed 3 years ago by bastiK

[3559] fixes the described bug, please close if you think it works now.

comment:6 follow-up: Changed 3 years ago by anonymous

same as before (tested with 3587): Button is not working, reappears after next start of JOSM

comment:7 in reply to: ↑ 6 Changed 3 years ago by wendorff@…

sorry, missed my mail-adress at the comment...
Replying to anonymous:

same as before (tested with 3587): Button is not working, reappears after next start of JOSM

comment:8 follow-up: Changed 3 years ago by bastiK

Can you zip your preference folder and attach it here or send to bastikln (at) googlemail.com? I don't need all the content, but enough to reproduce the problem.

(In the preference file your username and password is saved. You might want to delete that before.)

comment:9 in reply to: ↑ 8 Changed 3 years ago by wendorff@…

sorry for the late answer...
problem already is there.
I attach the preference folder here.

Changed 3 years ago by wendorff@…

preference folder; hopefully useful for reproduction of the error

comment:10 Changed 3 years ago by bastiK

Still no luck. I follow these steps:

  • replace preference folder with content of zip file
  • start JOSM --> It offers to recover 2 files
  • click discard and restart --> dialog does not show again

Tested on Ubuntu and Win XP

comment:11 Changed 3 years ago by bastiK

@jttt: Any ideas what could be wrong?

comment:12 Changed 2 years ago by bastiK

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

Could you please test again with version 3677 (click "discard" - 3rd button in dialog) and report debugging output to ticket #5559?

Last edited 2 years ago by bastiK (previous) (diff)

comment:13 Changed 2 years ago by bastiK

Closed as duplicate of #5559.

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.