Modify

Opened 4 years ago

Closed 4 years ago

#21070 closed defect (duplicate)

java.lang.IllegalStateException: Duplicate key

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: Plugin mapillary Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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-06-02 22:03:39 +0200 (Wed, 02 Jun 2021)
Build-Date:2021-06-02 20:11:30
Revision:17919
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17919 en) Mac OS X 10.16
OS Build number: macOS 11.4 (20F71)
Memory Usage: 1511 MB / 1820 MB (343 MB allocated, but free)
Java version: 1.8.0_291-b10, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69732992 1280×800 (scaling 1.00×1.00) Display 188956746 1920×1080 (scaling 1.00×1.00) Display 188956681 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-59c767b8, -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-42421e5d.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-alpha.23-dirty)
+ apache-commons (35524)
+ apache-http (35589)
+ auto_tools (79)
+ buildings_tools (35756)
+ changeset-viewer (25)
+ easypresets (1616854084)
+ graphview (35640)
+ intersection (0.0.7)
+ jna (35662)
+ markseen (14)
+ openqa (0.2.2)
+ osm-obj-info (56)
+ rex (53)
+ tageditor (35640)
+ turnlanes (35640)
+ turnrestrictions (35640)
+ utilsplugin2 (35691)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Overlapping%20Ways.mapcss 
+ https://raw.githubusercontent.com/KaartGroup/Kaart-Styles/master/Kaart-Styles.mapcss 

Validator rules:
+  https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.clingstone.validator.mapcss
+ https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.clingstone.validator.mapcss 

Last errors/warnings:
- 00006.078 W: Update plugins - Last plugin update more than 32 days ago.
- 00044.696 W: Failed to add  https://raw.githubusercontent.com/KaartGroup/KaartValidator/master/kaart.clingstone.validator.mapcss to tag checker
- 00045.093 W: Region [TMS_BLOCK_v2] : Problem verifying disk.
- 00045.144 W: java.nio.file.NoSuchFileException: https:/raw.githubusercontent.com/KaartGroup/KaartValidator/master
- 00075.496 W: Unknown remote control parameter mime_type, skipping it
- 00213.155 W: Unknown remote control parameter mime_type, skipping it
- 00278.802 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key https://scontent-gua1-1.xx.fbcdn.net/m1/v/t6/An8hvwz2N27KgKk9Y3HqFx3-TRIw69Ri9IcsqeFE-Gk1A_Rf84rcFXWB1bkaTG25T6nQgc26NkWAPoY8g1japlRhvSF4D7CbZLCOZGMFoAbDsAzpDSnU7YpdUJdbN9uA3rVArTS8YHyF3s83YkAb4C0?stp=s256x144&tp=1&ccb=9-4&oh=832adc0813fad45ffe97f4ade6ebe447&oe=60E92D5B
- 00278.810 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key https://scontent-gua1-1.xx.fbcdn.net/m1/v/t6/An8hvwz2N27KgKk9Y3HqFx3-TRIw69Ri9IcsqeFE-Gk1A_Rf84rcFXWB1bkaTG25T6nQgc26NkWAPoY8g1japlRhvSF4D7CbZLCOZGMFoAbDsAzpDSnU7YpdUJdbN9uA3rVArTS8YHyF3s83YkAb4C0?stp=s256x144&tp=1&ccb=9-4&oh=832adc0813fad45ffe97f4ade6ebe447&oe=60E92D5B
- 00280.684 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key 0.67833572453372
- 00280.692 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key 0.67833572453372



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: mapillary-MapillaryCache-0 (292)
java.lang.IllegalStateException: Duplicate key https://scontent-gua1-1.xx.fbcdn.net/m1/v/t6/An8hvwz2N27KgKk9Y3HqFx3-TRIw69Ri9IcsqeFE-Gk1A_Rf84rcFXWB1bkaTG25T6nQgc26NkWAPoY8g1japlRhvSF4D7CbZLCOZGMFoAbDsAzpDSnU7YpdUJdbN9uA3rVArTS8YHyF3s83YkAb4C0?stp=s256x144&tp=1&ccb=9-4&oh=832adc0813fad45ffe97f4ade6ebe447&oe=60E92D5B
	at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133)
	at java.util.HashMap.merge(HashMap.java:1254)
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320)
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
	at org.openstreetmap.josm.plugins.mapillary.utils.api.JsonImageDetailsDecoder.decodeImageInfo(JsonImageDetailsDecoder.java:117)
	at org.openstreetmap.josm.plugins.mapillary.utils.api.JsonImageDetailsDecoder.decodeImageInfos(JsonImageDetailsDecoder.java:64)
	at org.openstreetmap.josm.plugins.mapillary.io.download.MapillaryDownloader.lambda$realDownloadImages$2(MapillaryDownloader.java:95)
	at org.openstreetmap.josm.plugins.mapillary.utils.api.JsonDecoder.decodeData(JsonDecoder.java:92)
	at org.openstreetmap.josm.plugins.mapillary.io.download.MapillaryDownloader.realDownloadImages(MapillaryDownloader.java:95)
	at org.openstreetmap.josm.plugins.mapillary.io.download.MapillaryDownloader.downloadImages(MapillaryDownloader.java:61)
	at org.openstreetmap.josm.plugins.mapillary.cache.CacheUtils.downloadPicture(CacheUtils.java:66)
	at org.openstreetmap.josm.plugins.mapillary.cache.MapillaryCache.lambda$runnableCacheSurroundingImages$3(MapillaryCache.java:129)
	at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1067)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1703)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:172)

Attachments (0)

Change History (5)

comment:1 by skyper, 4 years ago

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

comment:2 by anonymous, 4 years ago

Summary: When I opened JOSM today, it asked to update plugins which I did - and then this. I am reverting to the previous Mapillary alpha version...java.lang.IllegalStateException: Duplicate key

comment:3 by taylor.smock, 4 years ago

Owner: changed from taylor.smock to anonymous
Status: newneedinfo

Can you give me some steps to reproduce?

For example, if you can give me the area where you were working, that would be appreciated. If you were running JOSM with java -jar, a the links for https://graph.mapillary.com would be appreciated.

- 00278.802 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key https://scontent-gua1-1.xx.fbcdn.net/m1/v/t6/An8hvwz2N27KgKk9Y3HqFx3-TRIw69Ri9IcsqeFE-Gk1A_Rf84rcFXWB1bkaTG25T6nQgc26NkWAPoY8g1japlRhvSF4D7CbZLCOZGMFoAbDsAzpDSnU7YpdUJdbN9uA3rVArTS8YHyF3s83YkAb4C0?stp=s256x144&tp=1&ccb=9-4&oh=832adc0813fad45ffe97f4ade6ebe447&oe=60E92D5B
- 00278.810 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key https://scontent-gua1-1.xx.fbcdn.net/m1/v/t6/An8hvwz2N27KgKk9Y3HqFx3-TRIw69Ri9IcsqeFE-Gk1A_Rf84rcFXWB1bkaTG25T6nQgc26NkWAPoY8g1japlRhvSF4D7CbZLCOZGMFoAbDsAzpDSnU7YpdUJdbN9uA3rVArTS8YHyF3s83YkAb4C0?stp=s256x144&tp=1&ccb=9-4&oh=832adc0813fad45ffe97f4ade6ebe447&oe=60E92D5B
- 00280.684 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key 0.67833572453372
- 00280.692 E: Handled by bug report queue: java.lang.IllegalStateException: Duplicate key 0.67833572453372

It looks like the service may have returned malformed json. I'll add a try-catch block around the the call, but this really shouldn't be happening (the keys shouldn't be duplicated -- I'm literally taking them from another Map, which should not have duplicate key values).

comment:4 by taylor.smock, 4 years ago

I've pushed v2.0.0-alpha.24. The major change is adding a catcher for json issues, which should add the culprit JSON to the bug report.

comment:5 by taylor.smock, 4 years ago

Resolution: duplicate
Status: needinfoclosed

Closed as duplicate of #21072.
#21072 has more information (culprit JSON).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
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.