Modify

Opened 4 months ago

Closed 4 months ago

#21127 closed defect (fixed)

NPE after oauth login in Mapillary

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

Description

What steps will reproduce the problem?

  1. Open Mapillary settings
  2. Click "Login"
  3. Confirm in browser
  4. Wait query for localhost:8763

What is the expected result?

What happens instead?

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

Revision:18045
Is-Local-Build:true
Build-Date:2021-07-16 21:26:35

Identification: JOSM/1.5 (18045 SVN en) Mac OS X 11.4
OS Build number: macOS 11.4 (20F71)
Memory Usage: 395 MB / 2048 MB (174 MB allocated, but free)
Java version: 16.0.1+9, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: Display 69732352 1680×1050 (scaling 2.00×2.00)
Maximum Screen Size: 1680×1050
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_RU
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18045, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=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=/Applications/JOSM.app/Contents/MacOS/JOSM]

Plugins:
+ BuildingGeneralization (36)
+ ColorPlugin (1537115529)
+ Create_grid_of_ways (35640)
+ CustomizePublicTransportStop (35760)
+ EasyPresets (1623509627)
+ FastDraw (35640)
+ HouseNumberTaggingTool (35640)
+ ImproveWay (32)
+ MakeParallel (v1.1.0)
+ Mapillary (2.0.0-alpha.27-dirty)
+ OpeningHoursEditor (35640)
+ PicLayer (1.0.1)
+ PolygonCutOut (v0.7)
+ RelationDissolve (0.2.0)
+ ShapeTools (1240)
+ SimplifyArea (35640)
+ alignways (35753)
+ apache-commons (35524)
+ apache-http (35589)
+ auto_tools (79)
+ buildings_tools (35756)
+ changeset-viewer (25)
+ conflation (0.6.6)
+ continuosDownload (91)
+ contourmerge (v0.1.8)
+ editgpx (35562)
+ ejml (35458)
+ flatlaf (35734)
+ graphview (35640)
+ http2 (35427)
+ jaxb (35543)
+ jna (35662)
+ jogl (1.2.3)
+ jts (35458)
+ junctionchecking (35640)
+ log4j (35458)
+ markseen (14)
+ measurement (35640)
+ merge-overlap (35640)
+ openqa (0.2.2)
+ photoadjust (35770)
+ rasterfilters (35648)
+ reltoolbox (35640)
+ splinex (35718)
+ tageditor (35640)
+ terracer (35640)
+ turnlanes (35640)
+ turnlanes-tagging (288)
+ turnrestrictions (35640)
+ undelete (35640)
+ utilsplugin2 (35691)
+ waydownloader (35640)
+ wikidata (1.2.3)
+ wikipedia (1.1.4)

Tagging presets:
+ https://raw.githubusercontent.com/ruosm-presets/literan-moscow/master/russian_shops.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/StreetCabinet&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewTags&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Playground_Equipment&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Quick-highways&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Quick-stops&zip=1
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/RU.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1
+ <josm.userdata>/EasyPresets.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/WifiHotspots&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Manholes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/MappingAccessibility&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Maxspeed-zones&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/FixmeAndNote&zip=1
+ ${HOME}/JOSM/presets/style-power-voltage-color.mapcss
- ${HOME}/JOSM/presets/style-power-tower-solid/power-tower-solid.mapcss
+ https://raw.githubusercontent.com/species/josm-preset-traffic_sign_direction/master/direction.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lit&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Power&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PowerMapping&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Noname&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/iD&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/KeepRight&zip=1
+ https://raw.githubusercontent.com/zetx16/Josm-HnumbValidator/master/ru-housenumber.validator.mapcss

Last errors/warnings:
- 00022.354 E: Failed to locate image 'pics/icons/Russian_Post.svg'
- 00022.355 W: [NODE, CLOSEDWAY, MULTIPOLYGON] Russian Post: Could not get presets icon pics/icons/Russian_Post.svg
- 00564.402 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "javax.json.JsonString.getString()" because the return value of "org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null
- 00644.943 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "javax.json.JsonString.getString()" because the return value of "org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null
- 00700.668 W: java.net.BindException: Address already in use
- 00714.317 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "javax.json.JsonString.getString()" because the return value of "org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Thread-7 (67)
java.lang.NullPointerException: Cannot invoke "javax.json.JsonString.getString()" because the return value of "org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null
	at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getString(JsonObjectBuilderImpl.java:257)
	at org.openstreetmap.josm.plugins.mapillary.oauth.OAuthUtils.updateAuthorization(OAuthUtils.java:195)
	at org.openstreetmap.josm.plugins.mapillary.oauth.OAuthPortListener.run(OAuthPortListener.java:86)

=== RUNNING THREADS ===
Thread: Timer-2 (53) of main
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.Object.wait(Unknown Source)
java.base@16.0.1/java.util.TimerThread.mainLoop(Unknown Source)
java.base@16.0.1/java.util.TimerThread.run(Unknown Source)

Thread: image-fetcher-0 (39) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.base@16.0.1/java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: DestroyJavaVM (48) of main

Thread: ForkJoinPool.commonPool-worker-5 (32) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

Thread: Thread-7 (67)
Stacktrace see above.

Thread: process reaper (58) of system
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue.poll(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: File Watcher (24) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.base@16.0.1/java.util.concurrent.LinkedBlockingDeque.takeFirst(Unknown Source)
java.base@16.0.1/java.util.concurrent.LinkedBlockingDeque.take(Unknown Source)
java.base@16.0.1/sun.nio.fs.AbstractWatchService.take(Unknown Source)
app//org.openstreetmap.josm.io.FileWatcher.processEvents(FileWatcher.java:120)
app//org.openstreetmap.josm.io.FileWatcher$$Lambda$370/0x00000008003854e0.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: HttpClient-1-Worker-7 (70) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue.poll(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: message-notifier-0 (46) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: HttpClient-1-Worker-6 (69) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue$TransferStack.transfer(Unknown Source)
java.base@16.0.1/java.util.concurrent.SynchronousQueue.poll(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: Common-Cleaner (11) of InnocuousThreadGroup
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.base@16.0.1/jdk.internal.ref.CleanerImpl.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)
java.base@16.0.1/jdk.internal.misc.InnocuousThread.run(Unknown Source)

Thread: Signal Dispatcher (4) of system

Thread: Finalizer (3) of system
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.base@16.0.1/java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

Thread: Java2D Queue Flusher (17) of system
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.desktop@16.0.1/sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: Timer-0 (42) of main
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.Object.wait(Unknown Source)
java.base@16.0.1/java.util.TimerThread.mainLoop(Unknown Source)
java.base@16.0.1/java.util.TimerThread.run(Unknown Source)

Thread: AWT-Shutdown (16) of system
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.Object.wait(Unknown Source)
java.desktop@16.0.1/sun.awt.AWTAutoShutdown.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: RemoteControl HTTP Server (44) of main
java.base@16.0.1/sun.nio.ch.Net.accept(Native Method)
java.base@16.0.1/sun.nio.ch.NioSocketImpl.accept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.implAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.platformImplAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.implAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.implAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.accept(Unknown Source)
app//org.openstreetmap.josm.io.remotecontrol.RemoteControlHttpServer.run(RemoteControlHttpServer.java:104)

Thread: changeset-updater-0 (47) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: AppKit Thread (15) of system

Thread: RemoteControl HTTP Server (45) of main
java.base@16.0.1/sun.nio.ch.Net.accept(Native Method)
java.base@16.0.1/sun.nio.ch.NioSocketImpl.accept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.implAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.platformImplAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.implAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.implAccept(Unknown Source)
java.base@16.0.1/java.net.ServerSocket.accept(Unknown Source)
app//org.openstreetmap.josm.io.remotecontrol.RemoteControlHttpServer.run(RemoteControlHttpServer.java:104)

Thread: bug-report-display (61) of main
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.Object.wait(Unknown Source)
app//org.openstreetmap.josm.tools.bugreport.BugReportQueue.getNext(BugReportQueue.java:123)
app//org.openstreetmap.josm.tools.bugreport.BugReportQueue.access$100(BugReportQueue.java:17)
app//org.openstreetmap.josm.tools.bugreport.BugReportQueue$BugReportDisplayRunnable.run(BugReportQueue.java:99)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: JCS-ElementEventQueue-Thread-1 (41) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.base@16.0.1/java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: Timer-1 (51) of main
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.util.TimerThread.mainLoop(Unknown Source)
java.base@16.0.1/java.util.TimerThread.run(Unknown Source)

Thread: Reference Handler (2) of system
java.base@16.0.1/java.lang.ref.Reference.waitForReferencePendingList(Native Method)
java.base@16.0.1/java.lang.ref.Reference.processPendingReferences(Unknown Source)
java.base@16.0.1/java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

Thread: Notification Thread (12) of system

Thread: Java2D Disposer (18) of system
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.desktop@16.0.1/sun.java2d.Disposer.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: TimerQueue (23) of system
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.base@16.0.1/java.util.concurrent.DelayQueue.take(Unknown Source)
java.desktop@16.0.1/javax.swing.TimerQueue.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: FileSystemWatcher (38) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
java.base@16.0.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: AWT-EventQueue-0 (22) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.desktop@16.0.1/java.awt.EventQueue.getNextEvent(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.desktop@16.0.1/java.awt.WaitDispatchSupport$2.run(Unknown Source)
java.desktop@16.0.1/java.awt.WaitDispatchSupport$4.run(Unknown Source)
java.desktop@16.0.1/java.awt.WaitDispatchSupport$4.run(Unknown Source)
java.base@16.0.1/java.security.AccessController.executePrivileged(Unknown Source)
java.base@16.0.1/java.security.AccessController.doPrivileged(Unknown Source)
java.desktop@16.0.1/java.awt.WaitDispatchSupport.enter(Unknown Source)
java.desktop@16.0.1/java.awt.Dialog.show(Unknown Source)
java.desktop@16.0.1/java.awt.Component.show(Unknown Source)
java.desktop@16.0.1/java.awt.Component.setVisible(Unknown Source)
java.desktop@16.0.1/java.awt.Window.setVisible(Unknown Source)
java.desktop@16.0.1/java.awt.Dialog.setVisible(Unknown Source)
app//org.openstreetmap.josm.gui.preferences.PreferenceDialog.setVisible(PreferenceDialog.java:145)
app//org.openstreetmap.josm.actions.PreferencesAction.run(PreferencesAction.java:119)
app//org.openstreetmap.josm.actions.PreferencesAction.actionPerformed(PreferencesAction.java:104)
app//org.openstreetmap.josm.gui.MainApplication$DefaultNativeOsCallback.handlePreferences(MainApplication.java:1487)
app//org.openstreetmap.josm.tools.PlatformHookOsx.invoke(PlatformHookOsx.java:200)
app/jdk.proxy2/jdk.proxy2.$Proxy2.handlePreferences(Unknown Source)
java.desktop@16.0.1/com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(Unknown Source)
java.desktop@16.0.1/com.apple.eawt._AppEventHandler$_PreferencesDispatcher.performUsing(Unknown Source)
java.desktop@16.0.1/com.apple.eawt._AppEventHandler$_AppEventDispatcher$1.run(Unknown Source)
java.desktop@16.0.1/java.awt.event.InvocationEvent.dispatch(Unknown Source)
java.desktop@16.0.1/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.desktop@16.0.1/java.awt.EventQueue$4.run(Unknown Source)
java.desktop@16.0.1/java.awt.EventQueue$4.run(Unknown Source)
java.base@16.0.1/java.security.AccessController.executePrivileged(Unknown Source)
java.base@16.0.1/java.security.AccessController.doPrivileged(Unknown Source)
java.base@16.0.1/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.desktop@16.0.1/java.awt.EventQueue.dispatchEvent(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.desktop@16.0.1/java.awt.EventDispatchThread.run(Unknown Source)

Thread: main-worker-0 (21) of main
java.base@16.0.1/jdk.internal.misc.Unsafe.park(Native Method)
java.base@16.0.1/java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(Unknown Source)
java.base@16.0.1/java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
java.base@16.0.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.base@16.0.1/java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.base@16.0.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Thread: HttpClient-1-SelectorManager (27) of main
java.base@16.0.1/sun.nio.ch.KQueue.poll(Native Method)
java.base@16.0.1/sun.nio.ch.KQueueSelectorImpl.doSelect(Unknown Source)
java.base@16.0.1/sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
java.base@16.0.1/sun.nio.ch.SelectorImpl.select(Unknown Source)
platform/java.net.http@16.0.1/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(Unknown Source)

Thread: Weak reference cleaner (26) of main
java.base@16.0.1/java.lang.Object.wait(Native Method)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.base@16.0.1/java.lang.ref.ReferenceQueue.remove(Unknown Source)
app//org.openstreetmap.josm.tools.ListenableWeakReference.clean(ListenableWeakReference.java:60)
app//org.openstreetmap.josm.tools.ListenableWeakReference$$Lambda$415/0x0000000800406778.run(Unknown Source)
java.base@16.0.1/java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 Changed 4 months ago by Don-vip

Keywords: oauth added

comment:2 Changed 4 months ago by Don-vip

Summary: Crash after login in MapillaryNPE after oauth login in Mapillary

comment:3 Changed 4 months ago by taylor.smock

Resolution: fixed
Status: newclosed

Thanks for this bug report.

The plugin OAuth code is kind of flaky, and I've looked into using an external library (I'm thinking of using the same library that simon04 used in https://josm.openstreetmap.de/ticket/20768#comment:2 (scribejava)).

For example, it doesn't handle multiple clicks on Login well. It catches the exception, but it would be better to not have the exception.

Anyway, I'll try to get a fix released by 00:00 UTC. (~10 hours from now). I've got a bunch of other stuff that I've been modifying (checkstyle/PMD/lint stuff), and I want to make certain that there aren't any major regressions.

Fixed in fcb3ba642a6d1916978901a5f5c21c49e245d903.

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.