Modify ↓
#23978 closed defect (fixed)
Exception upon opening a georeferenced JPG image that was included with or in a GPS trace from a Garmin Montana GPS
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | 24.10 |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Open a GPS trace with some associated images shot with the GPS built-in camera.
What is the expected result?
I expect to be able to view all images associated with my GPS trace in their correct coordinate positions
What happens instead?
The images are visible in the Garmin Basecamp program and display in the correct position in JOSM but when I click on any of them, JOSM reports an exception
Please provide any additional information below. Attach a screenshot if possible.
Perhaps such images need to be opened in JOSM separately?
Revision:19230 Build-Date:2024-10-02 11:41:59 Identification: JOSM/1.5 (19230 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 22H2 (19045) Memory Usage: 352 MB / 12096 MB (139 MB allocated, but free) Java version: 21.0.4+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 2560x1440x32bpp@59Hz (scaling 1.25×1.25) Maximum Screen Size: 2560×1440 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: UTF-8 System property sun.jnu.encoding: Cp1252 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.19230, -XX:MaxRAMPercentage=75.0, --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=%UserProfile%\AppData\Local\JOSM\JOSM.exe] Plugins: + ColorPlugin (v1.1.2.1) + DirectDownload (36178) + DirectUpload (36178) + FastDraw (36226) + ImproveWay (32) + Mapillary (2.2.1) + OpeningHoursEditor (36241) + SimplifyArea (36209) + apache-commons (36176) + apache-http (36176) + buildings_tools (36226) + changeset-viewer (0.0.7) + ejml (36176) + geotools (36176) + imagery_offset_db (36226) + jackson (36176) + jaxb (36118) + jna (36176) + jts (36004) + log4j (36241) + measurement (36200) + opendata (36200) + photo_geotagging (36178) + reltoolbox (36241) + tageditor (36200) + todo (137) + turnlanes (36206) + turnlanes-tagging (0.0.5) + turnrestrictions (36226) + utilsplugin2 (36241) + waydownloader (36196) + wikipedia (605) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1 + %UserProfile%\Dropbox (Personal)\GPS Files\Ponds.xml + %UserProfile%\Dropbox (Personal)\GPS Files\ResHwy.xml + %UserProfile%\Dropbox (Personal)\GPS Files\CoinOp_Fuel.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Land-Natural.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Wat.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Stream.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Service.xml + %UserProfile%\Dropbox (Personal)\GPS Files\TAP Service.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Waters.xml + %UserProfile%\Dropbox (Personal)\GPS Files\BorC.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Hamlet.xml + %UserProfile%\Dropbox (Personal)\GPS Files\address.xml + %UserProfile%\Dropbox (Personal)\GPS Files\UnclassHwy.xml + %UserProfile%\Dropbox (Personal)\GPS Files\ResArea.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Benchmark.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Bbl_Fuel.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Milemarker.xml + %UserProfile%\Dropbox (Personal)\GPS Files\NWR.xml + %UserProfile%\Dropbox (Personal)\GPS Files\DJS-Ways.xml + https://code.osm-tools.org/latest/josm-thai-presets.zip + %UserProfile%\Dropbox (Personal)\GPS Files\wlan.xml + %UserProfile%\Dropbox (Personal)\GPS Files\All_Fuel.xml + %UserProfile%\Dropbox (Personal)\GPS Files\Daves-Misc.xml + https://josm.openstreetmap.de/josmfile?page=Presets/TurnLanes&zip=1 + https://github.com/simonpoole/beautified-JOSM-preset/releases/latest/download/josm.zip + https://josm.openstreetmap.de/josmfile?page=Presets/Historic_Stone&zip=1 Map paint styles: + https://josm.openstreetmap.de/josmfile?page=Styles/Potlatch2&zip=1 - https://downloads.osm-tools.org/FB_edits.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Whitewater&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/HiDPISupport&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Incline&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Waterways&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Greenery&zip=1 Last errors/warnings: - 00016.397 E: Failed to locate image 'presets/boundaries.png' - 00016.397 W: Protected Area: Could not get presets icon presets/boundaries.png - 00016.497 E: Failed to locate image '' - 00016.497 W: [RELATION] Site: Could not get presets icon - 00020.985 E: java.lang.NumberFormatException: For input string: "test" - 00028.573 E: Failed to locate image 'Flag, Blue' - 00028.583 E: Failed to locate image 'Flag, Blue' - 00028.584 E: Failed to locate image 'Flag, Blue' - 00028.586 E: Failed to locate image 'Flag, Blue' - 00044.190 E: Handled by bug report queue: java.nio.file.InvalidPathException: Illegal char <:> at index 24: C:/Users/<user.name>/Desktop/C:/Users/<user.name>/AppData/Local/Garmin/BaseCamp/DeviceCache/3927370940/GeotaggedPhotos/DSC00286.jpg === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (40) of main java.nio.file.InvalidPathException: Illegal char <:> at index 24: C:/Users/Alask/Desktop/C:/Users/Alask/AppData/Local/Garmin/BaseCamp/DeviceCache/3927370940/GeotaggedPhotos/DSC00286.jpg at java.base/sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPathParser.parse(Unknown Source) at java.base/sun.nio.fs.WindowsPath.parse(Unknown Source) at java.base/sun.nio.fs.WindowsUriSupport.fromUri(Unknown Source) at java.base/sun.nio.fs.WindowsFileSystemProvider.getPath(Unknown Source) at java.base/java.nio.file.Path.of(Unknown Source) at java.base/java.nio.file.Paths.get(Unknown Source) at org.openstreetmap.josm.gui.layer.geoimage.RemoteEntry.getInputStream(RemoteEntry.java:300) at org.openstreetmap.josm.gui.layer.geoimage.ImageMetadata.extractExif(ImageMetadata.java:269) at org.openstreetmap.josm.gui.layer.markerlayer.ImageMarker.getRemoteEntry(ImageMarker.java:55) at org.openstreetmap.josm.gui.layer.markerlayer.ImageMarker.actionPerformed(ImageMarker.java:47) at org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer$MarkerMouseAdapter.mouseReleased(MarkerLayer.java:615) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.desktop/java.awt.Component.processMouseEvent(Unknown Source) at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source) at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Attachments (0)
Note:
See TracTickets
for help on using tickets.
I learned that this problem only occurs when the images are opened as part of a GPX file, in essence a compound file. If the GPS trace is opened separately and the geotagged images imported in the normal fashion, JOSM behaves as expected.