Modify

Opened 22 months ago

Last modified 21 months ago

#22376 new defect

PC crashed and lost all my preferences

Reported by: sharcrash Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report preferences backup Cc:

Description

What steps will reproduce the problem?

  1. I was editing in JOSM and it just crashed, don't know why...
  2. The only instability i noticed since several versions ago is that parts of the interface disappear or get mixed up. In order to get them back i have to switch to another app and come back (like going to desktop and back) or pass my mouse pointer on the interface. This happens often and doesn't make me crash each time.
  3. I'm not sure but it seemed that this happens when i try to check the historic of elements.

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

I lost all my preferences, loads of presets, the map paint style, imagery sources, plugins , etc... I really need all that back. When i launched JOSM after the crash, the backup file only brought the default preferences not "my backup"... or is the default the backup?

Revision:18543
Build-Date:2022-08-30 13:34:09

Identification: JOSM/1.5 (18543 en) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 162 MB / 4092 MB (42 MB allocated, but free)
Java version: 17.0.4+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1280×1024 (scaling 1.00×1.00) \Display1 1280×1024 (scaling 1.00×1.00)
Maximum Screen Size: 1280×1024
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18543, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=C:\Program Files (x86)\JOSM\josm.exe]

Last errors/warnings:
- 00000.584 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00000.585 W: extended font config - overriding 'filename.Kalinga=kalinga.ttf' with 'KALINGA.TTF'
- 00000.585 W: extended font config - overriding 'filename.Iskoola_Pota=iskpota.ttf' with 'ISKPOTA.TTF'
- 00000.585 W: extended font config - overriding 'filename.Shruti=shruti.ttf' with 'SHRUTI.TTF'
- 00000.586 W: extended font config - overriding 'filename.Raavi=raavi.ttf' with 'RAAVI.TTF'
- 00000.586 W: extended font config - overriding 'filename.Gautami=gautami.ttf' with 'GAUTAMI.TTF'
- 00000.587 W: extended font config - overriding 'filename.Vrinda=vrinda.ttf' with 'VRINDA.TTF'
- 00000.587 W: extended font config - overriding 'filename.Kartika=kartika.ttf' with 'KARTIKA.TTF'
- 00000.588 W: extended font config - overriding 'filename.Latha=latha.ttf' with 'LATHA.TTF'
- 00002.321 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available

Attachments (1)

Change History (9)

comment:1 by sharcrash, 22 months ago

Inside "Roaming/JOSM" folder I have:

  • EasyPresets.xml (the plugin I believe for presets)
  • preferences.xml (27KB)
  • preferences.xml.bak (494KB)
  • preferences.xml_backup (27KB)

comment:2 by sharcrash, 21 months ago

Can someone help me in trying to repair my preferences, please? There is so much i had changed, it would take me so much time to get back all my resources, changes, presets, shortcut changes...

comment:3 by skyper, 21 months ago

Keywords: preferences backup added

Please, be careful with publishing preferences.xml as it includes private data including your OSM credentials or an OAuth token.
Anyway, your attached file seems to be corrupt, therefore your preferences were not restored, see #18462 and #18569. #20672 suggests a backup rotation but it is not implemented, yet. So I fear we cannot help you and you need to rely on your own backup strategy.

comment:4 by sharcrash, 21 months ago

OK for the lost preferences and no backup strategy, real bummer... Thanks for the attempt and the warning! I had thought all the security credentials were separate from software preferences. Can you then delete that file from public, please, in case there is a wizard wandering?

in reply to:  4 comment:5 by stoecker, 21 months ago

Replying to sharcrash:

Can you then delete that file from public, please, in case there is a wizard wandering?

Done.

comment:6 by sharcrash, 21 months ago

Thank you very much! About the interface disappearing, I will further try to pay attention what triggers it but pretty sure it is linked to contacting the server and trying to get data whether it's just historic information or map data.

comment:7 by GerdP, 21 months ago

And remember to create a backup of the JOSM folder from time to time.

in reply to:  6 comment:8 by skyper, 21 months ago

Your plugins and the external presets/rules/styles should be in the cache folder though it might contain even previously uninstalled files. See Help/Preferences for the location of the folder.

Replying to sharcrash:

About the interface disappearing, I will further try to pay attention what triggers it but pretty sure it is linked to contacting the server and trying to get data whether it's just historic information or map data.

These artifacts look like a missing java option. Please have a look at #22202 and #21762. Especially comment 4 on #22202 or stoecker's comment 12 on #21762 might be helpful.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to sharcrash.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.