Modify

Opened 2 years ago

Closed 2 years ago

#21921 closed defect (fixed)

NPE at org.openstreetmap.josm.plugins.mapillary.utils.VectorDataSetUtils.tryRead

Reported by: AnonJason Owned by: taylor.smock
Priority: normal Milestone:
Component: Plugin mapillary Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Opening mapillary layer
  2. selecting a node

What is the expected result?

Image appears without bug window

What happens instead?

Image appears with bug window and mapillary nodes/images are not selectable.

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: 2022-03-06 10:38:55 +0100 (Sun, 06 Mar 2022)
Build-Date:2022-03-07 02:31:09
Revision:18387
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18387 en) Mac OS X 11.6
OS Build number: macOS 11.6 (20G165)
Memory Usage: 2093 MB / 3641 MB (988 MB allocated, but free)
Java version: 1.8.0_321-b07, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.FlatLightLaf
Screen: Display 69734208 1440×900 (scaling 1.00×1.00) Display 188945226 1920×1080 (scaling 1.00×1.00) Display 188945225 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djava.security.policy=file:<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin, -Djava.security.manager, -Djnlpx.origFilenameArg=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/56/1ee8cfb8-6dba99d6, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Dmacosx.jnlpx.dock.name=JOSM, -Dmacosx.jnlpx.dock.icon=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/25/4c122699-32383d50.icns, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp , -Djnlpx.jvm="<java.home>/bin/java"]
Dataset consistency test: No problems found

Plugins:
+ Mapillary (2.0.0-beta.4)
+ apache-commons (35524)
+ apache-http (35589)
+ auto_tools (81)
+ buildings_tools (35823)
+ easypresets (1623509627)
+ ejml (35458)
+ ext_tools (35640)
+ flatlaf (35862)
+ geotools (35458)
+ graphview (35640)
+ highwayNameModification (0.0.9)
+ imagery_offset_db (35640)
+ jaxb (35543)
+ jna (35872)
+ jogl (1.2.3)
+ jts (35458)
+ mapwithai (1.9.8)
+ markseen (14)
+ opendata (35803)
+ osm-obj-info (66)
+ pdfimport (35640)
+ reltoolbox (35829)
+ reverter (35869)
+ rex (53)
+ scripting (30798)
+ turnrestrictions (35640)
+ utilsplugin2 (35856)

Tagging presets:
+ /Applications/JOSM-Buddy/assets/presets/heading.xml
+ ${HOME}/Desktop/heading.xml
+ <josm.userdata>/EasyPresets.xml

Map paint styles:
- ${HOME}/Desktop/applepaintstyles-main 4/main_street.mapcss
+ https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart-Styles.mapcss
- https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Overlapping%20Ways.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ ${HOME}/Downloads/quandary_qc_backup.mapcss
- ${HOME}/Desktop/MX_Import Test .mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
+ ${HOME}/Desktop/Name-en_test copy.mapcss

Validator rules:
+ https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.durazno.validator.mapcss
+ /Applications/JOSM-Buddy/assets/validators/forbidden-tag-check.validator.mapcss
+ https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.clingstone.validator.mapcss

Last errors/warnings:
- 00010.787 W: Failed to load Mappaint styles from '${HOME}/Desktop/Name-en_test copy.mapcss'. Exception was: java.nio.file.NoSuchFileException: ${HOME}/Desktop/Name-en_test copy.mapcss
- 00010.788 E: java.nio.file.NoSuchFileException: ${HOME}/Desktop/Name-en_test copy.mapcss
- 00010.791 W: Initializing map style ${HOME}/Desktop/Name-en_test copy.mapcss completed in 3 ms (1 errors, 0 warnings)
- 00011.740 E: java.nio.file.NoSuchFileException: ${HOME}/Desktop/heading.xml
- 00011.741 E: ${HOME}/Desktop/heading.xml
- 00016.944 E: Failed to locate image 'MapWithAI'
- 00169.605 E: Handled by bug report queue: java.lang.NullPointerException
- 00171.510 W: Listener not found for URL: https://scontent.fmci2-1.fna.fbcdn.net/m1/v/t6/An8kEv4CSeL41CD86oAEUowvJCtb7Ah3qDuIWVF_roHblZwBFwqOgtAkT53bRZNMkcfBpPVYnF3Txb2XmhrU25h1bANWxicdqH1_g03MLhbXUJLwDLOPhlXcQlHd9eh_Mr52hyMdyBnlMoz15mYBIA?ccb=10-5&oh=00_AT_KuhOoFKbAmyfElVHZ-WqvSrbyA1L70iBe3EqjkOW5Lw&oe=622E1B9C&_nc_sid=122ab1. Listener not notified!
- 00171.516 W: Listener not found for URL: https://scontent.fmci2-1.fna.fbcdn.net/m1/v/t6/An8tYrOV3pwGVgCSKdcIp2kI4j1bYzjlXhea1U6IqG2e31Enc5A0YO6NOpFUEQeiIjzaHiZ-Ej7slTWLlNNFQK1OmELPxGUtN4_bvyNPRPBZyuhn99wis5dmAwPPpqRN4d43_b-IId1JiWHS4GPI-Q?ccb=10-5&oh=00_AT8NVLE3Z_m1E7Fpe13NeKz6WmUfHHiTijZxE1DPf4J6rw&oe=622E3749&_nc_sid=122ab1. Listener not notified!
- 00172.944 W: Listener not found for URL: https://scontent.fmci2-1.fna.fbcdn.net/m1/v/t6/An8axTVY9K0kWUgLyIGsYWfsX481mLZVkPED2h12MG3R-x7KMFi7RZsWwnjqim9kt9A_GxmNdKUR5C8euOmRPsEzzX3ExLIKHEPjrYm62eROpwuJDdoM1Ec-KMQiTcOivoUm9Rx9iP9DRMvrbggkVg?ccb=10-5&oh=00_AT_x2mQ5pd_cCv4Z3a3WEnz6wSA9ITt5FZnSRaXVKEAW-w&oe=622ECDF7&_nc_sid=122ab1. Listener not notified!



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (42) of javawsApplicationThreadGroup
java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.mapillary.utils.VectorDataSetUtils.tryRead(VectorDataSetUtils.java:84)
	at org.openstreetmap.josm.plugins.mapillary.utils.MapillarySequenceUtils.getNextOrPrevious(MapillarySequenceUtils.java:69)
	at org.openstreetmap.josm.plugins.mapillary.gui.layer.geoimage.MapillaryImageEntry.getPreviousImage(MapillaryImageEntry.java:176)
	at org.openstreetmap.josm.plugins.mapillary.gui.layer.geoimage.MapillaryImageEntry.getPreviousImage(MapillaryImageEntry.java:80)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog.updateButtonsNonNullEntry(ImageViewerDialog.java:657)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog.displayImages(ImageViewerDialog.java:602)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog.displayImage(ImageViewerDialog.java:572)
	at org.openstreetmap.josm.data.imagery.street_level.IImageEntry.selectImage(IImageEntry.java:80)
	at org.openstreetmap.josm.plugins.mapillary.gui.layer.geoimage.MapillaryImageEntry.selectImage(MapillaryImageEntry.java:202)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog$ImageAction.actionPerformed(ImageViewerDialog.java:260)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:262)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6539)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6304)
	at java.awt.Container.processEvent(Container.java:2239)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2297)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
	at java.awt.Container.dispatchEventImpl(Container.java:2283)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Attachments (0)

Change History (3)

comment:1 by skyper, 2 years ago

Component: CorePlugin mapillary
Owner: changed from team to taylor.smock

comment:2 by skyper, 2 years ago

Summary: Mapillary bugNPE at org.openstreetmap.josm.plugins.mapillary.utils.VectorDataSetUtils.tryRead

comment:3 by taylor.smock, 2 years ago

Resolution: fixed
Status: newclosed

Fixed in v2.0.0-beta.5.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain taylor.smock.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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