Modify

Opened 4 years ago

Last modified 4 years ago

#20923 new defect

Multiple images displayed from restored session file

Reported by: motogs Owned by: team
Priority: normal Milestone:
Component: Core image mapping Version:
Keywords: template_report session Cc:

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Restoring a *.joz session file
  2. Clicking on any geo-located image icon created in JOSM from a *.gpx file containing image references created by OSMTracker

What is the expected result?

Only one image will be displayed.

What happens instead?

Double the number from the previous session are displayed. I'm currently up to 16 for one click on any icon on one session.

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-04-27 20:35:33 +0200 (Tue, 27 Apr 2021)
Build-Date:2021-04-27 21:58:39
Revision:17833
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17833 en_GB) Windows XP 32-Bit
OS Build number: Microsoft Windows XP (1.511.1 () (Obsolete data - do not use))
Memory Usage: 247 MB / 989 MB (86 MB allocated, but free)
Java version: 1.8.0_151-b12, Oracle Corporation, Java HotSpot(TM) Client VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
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_GB
Numbers with default locale: 1234567890 -> 1234567890

Plugins:
+ HouseNumberTaggingTool (35640)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35669)
+ ejml (35458)
+ geotools (35458)
+ javafx-windows (35655)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ mapathoner (1.1.7)
+ markseen (14)
+ measurement (35640)
+ opendata (35640)
+ openjfx
+ print (35640)
+ reltoolbox (35640)
+ rex (53)
+ terracer (35640)
+ turnrestrictions (35640)
+ undelete (35640)
+ utilsplugin2 (35691)

Last errors/warnings:
- 00009.117 E: java.lang.IllegalStateException: Error adding certificate AC RAIZ FNMT-RCM - certificate fingerprint mismatch. Expected ebc5570c29018c4d67b1aa127baf12f703b4611ebc17b7dab5573894179b93fa, was 4d9ebb28825c9643ab15d54e5f9614f13cb3e95de3cf4eac971301f320f9226e
- 00009.347 W: Missing plugin main version in plugin microdata_scraping
- 00009.832 W: Missing plugin main version in plugin microdata_scraping
- 00010.076 W: Plugin openjfx requires Java version 11. The current Java version is 8. You have to update Java in order to use this plugin.

Attachments (9)

2021-01-07 - Shuttle-Green Chain.joz (51.1 KB ) - added by motogs 4 years ago.
A *.joz file exhibiting the described behaviour
20923-0th.gpx (1019 bytes ) - added by simon04 4 years ago.
20923-1st.joz (1.7 KB ) - added by simon04 4 years ago.
20923-2nd.joz (1.8 KB ) - added by simon04 4 years ago.
20923-3rd.joz (1.8 KB ) - added by simon04 4 years ago.
2021-05-30 - test - wav file.gpx (9.4 KB ) - added by motogs 4 years ago.
2021-05-30 - test1.joz (1.4 KB ) - added by motogs 4 years ago.
2021-05-30 - test2.joz (1.4 KB ) - added by motogs 4 years ago.
2021-05-30 - test3.joz (1.4 KB ) - added by motogs 4 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 by skyper, 4 years ago

Component: CoreCore image mapping
Description: modified (diff)
Keywords: session added

by motogs, 4 years ago

A *.joz file exhibiting the described behaviour

comment:2 by anonymous, 4 years ago

I'm attaching a joz file exhibiting this behaviour as it may help with the diagnosis.

by simon04, 4 years ago

Attachment: 20923-0th.gpx added

by simon04, 4 years ago

Attachment: 20923-1st.joz added

by simon04, 4 years ago

Attachment: 20923-2nd.joz added

by simon04, 4 years ago

Attachment: 20923-3rd.joz added

comment:3 by simon04, 4 years ago

You mean audio marker originating from the GPX file, right?

A simpler way to reproduce (involving a smaller GPX/session file):

  1. Start JOSM
  2. Open attachment:20923-0th.gpx
  3. Save session as. This yields attachment:20923-1st.joz
  4. Remove all layers
  5. Open session file attachment:20923-1st.joz
  6. Save session as. This yields attachment:20923-2nd.joz
  7. Remove all layers
  8. Open session file attachment:20923-2nd.joz
  9. Save session as. This yields attachment:20923-3rd.joz
  10. Remove all layers
  11. Open session file attachment:20923-3rd.joz
  12. Click the audio marker
  13. 4 dialogs appear that the audio file does not exist

comment:4 by motogs, 4 years ago

Hi Simon04.
I think what you're saying is that if you do the steps you list, that you get a similar effect. ie it's looking for the audio file 4 times instead of just once. ??
I was actually referring to multiple photographs displayed when clicking a photograph marker, not audio, so I guess it happens on audio as well as photo, though I don't perceive audio playing more than once.
The photos are all displayed on top of one another, so in my last session (for example) I had to click the cross in the top-right corner of each of their windows 16 times to remove all 16 identical windows.

comment:5 by motogs, 4 years ago

Hi Simon04,

I've done the same as what you did using a small gpx file with one image and one audio reference, as

this may also help.
The following are the steps I took:

  1. Start JOSM
  2. Open gpx file "2021-05-30 - test - wav file.gpx"
  3. Save session as "2021-05-30 - test1.joz"
  4. Remove all layers
  5. Open session file "2021-05-30 - test1.joz"
  6. Save session as "2021-05-30 - test2.joz"
  7. Remove all layers
  8. Open session file "2021-05-30 - test2.joz"
  9. Save session as "2021-05-30 - test3.joz"
  10. Remove all layers
  11. Open session file "2021-05-30 - test3.joz"
  12. Click the audio marker
  13. Audio plays once
  14. Click the image marker
  15. Image opens
  16. Delete image (1st time)
  17. Identical image remains (same location)
  18. Delete image (2nd time)
  19. Identical image remains (same location)
  20. Delete image (3rd time)
  21. Identical image remains (same location)
  22. Delete image (4th time)
  23. No image remains

I think sound files also double up (as well as the images) with each save/open process because when I got to 32, there's a very noticeable delay before the file is heard. This would tally with the four dialogs that you got. (Maybe each new loading cancels the playing of the previous one?)

I'll attach the gpx and the three joz files.

by motogs, 4 years ago

by motogs, 4 years ago

Attachment: 2021-05-30 - test1.joz added

by motogs, 4 years ago

Attachment: 2021-05-30 - test2.joz added

by motogs, 4 years ago

Attachment: 2021-05-30 - test3.joz added

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 motogs.
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.