#24068 closed defect (duplicate)
Divide by zero error while viewing geotagged image
Reported by: | ToeBee | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core image mapping | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
I have been going through some GoPro images, preparing them for upload to Mapillary/Kartaview. I deleted some images where I wasn't moving (which explains the file not found errors in the logs) but then I was viewing the next image in the sequence. I am using a touchpad on a laptop so I'm not sure *exactly* what I was doing at the time that the divide by zero happened. I think I had zoomed all the way in by clicking and dragging in the image and was then trying to zoom back out using two finger scrolling on the touchpad.
I will attach both a screenshot of JOSM and the image I was viewing at the time.
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2025-01-02 12:51:21 +0100 (Thu, 02 Jan 2025) Revision:19277 Build-Date:2025-01-04 02:30:34 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19277 en) Linux Mint 20.3 Memory Usage: 1314 MB / 1962 MB (1007 MB allocated, but free) Java version: 17.0.13+11, Eclipse Adoptium, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 1920x1080x[Multi depth]@60Hz (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: en_US.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: XFCE fonts-noto: fonts-noto:all-20200323-1build1~ubuntu20.04.1 VM arguments: [--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] Plugins: + ImproveOsm (238) + Mapillary (1789) + apache-commons (36349) + apache-http (36349) + editgpx (36349) + ejml (36348) + geotools (36349) + jackson (36349) + jaxb (36349) + jna (36349) + jts (36349) + opendata (36354) + photo_geotagging (36343) + photoadjust (36342) + reverter (36354) + tageditor (36350) + turnlanes-tagging (1727811971) + utilsplugin2 (36362) Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_features_ryg&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 Last errors/warnings: - 03999.676 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035182.JPG (No such file or directory) - 03999.875 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035183.JPG (No such file or directory) - 04000.044 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035184.JPG (No such file or directory) - 04000.229 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035185.JPG (No such file or directory) - 04000.419 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035186.JPG (No such file or directory) - 04000.582 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035187.JPG (No such file or directory) - 04000.839 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035188.JPG (No such file or directory) - 04001.042 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035189.JPG (No such file or directory) - 04003.341 E: java.io.FileNotFoundException: /opt/gopro/2024-1226-mexico_city_mall/G0035190.JPG (No such file or directory) - 04024.206 E: Handled by bug report queue: java.lang.ArithmeticException: / by zero === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (21) of main java.lang.ArithmeticException: / by zero at org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay.comp2imgCoord(ImageDisplay.java:864) at org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay$ImgDisplayMouseListener.mouseWheelMovedImpl(ImageDisplay.java:364) at org.openstreetmap.josm.gui.layer.geoimage.ImageDisplay$ImgDisplayMouseListener.mouseWheelMoved(ImageDisplay.java:416) at java.desktop/java.awt.Component.processMouseWheelEvent(Component.java:6714) at java.desktop/java.awt.Component.processEvent(Component.java:6398) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4604) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Attachments (2)
Change History (7)
by , 4 months ago
Attachment: | josm_div_by_zero_2.png added |
---|
by , 4 months ago
Attachment: | G0035199.JPG added |
---|
Geotagged image being displayed at the time of the error. Captured by GoPro 11 camera
comment:2 by , 4 months ago
comment:3 by , 4 months ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as duplicate of #22610.
comment:5 by , 4 months ago
A guess is that this requires a race condition, i.e. doing two actions in parallel with a special timing.
Hard to reproduce. Knowing the exact actions would help, even if the timing is hardly reproducible.
JOSM screenshot at the time of the error