Modify

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#22326 closed defect (fixed)

mapwith.ai plugin for JOSM does not work

Reported by: r.stampach@… Owned by: taylor.smock
Priority: normal Milestone:
Component: Plugin mapwithai Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. I have installed the mapwith.ai plugin for JOSM.
  2. I tried to download OSM data to JOSM.
  3. Error occurred that this plugin has a problem and should be reinstalled. But I reinstalled JOSM and plugins, and the error is still here.

What is the expected result?

Data should be downloaded to JOSM including AI data.

What happens instead?

An error occurred that there was a problem with the plugin.

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-08-01 20:38:58 +0200 (Mon, 01 Aug 2022)
Revision:18531
Build-Date:2022-08-02 01:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18531 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19044)
Memory Usage: 254 MB / 4046 MB (92 MB allocated, but free)
Java version: 11.0.15+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_CZ
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Dicedtea-web.bin.location=C:\Program Files\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop]
Dataset consistency test: No problems found

Plugins:
+ FastDraw (35978)
+ apache-commons (36003)
+ apache-http (35924)
+ buildings_tools (36011)
+ jna (36005)
+ mapathoner (1.1.15)
+ mapwithai (1.9.16)
+ markseen (14)
+ poly (35976)
+ reverter (36011)
+ todo (30306)
+ utilsplugin2 (36011)

Map paint styles:
+ https://github.com/MissingMaps/josm_styles/archive/master.zip
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
+ https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip

Last errors/warnings:
- 00000.375 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.378 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00003.248 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00003.591 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00013.218 E: Failed to locate image 'MapWithAI'
- 00023.689 E: Exception raised in EDT: java.lang.reflect.InvocationTargetException. Cause: java.lang.IllegalMonitorStateException
- 00025.361 E: Handled by bug report queue: java.lang.RuntimeException: java.lang.RuntimeException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol:. Cause: java.lang.RuntimeException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol:. Cause: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol:. Cause: java.net.MalformedURLException: no protocol:
- 00029.468 E: java.nio.file.AccessDeniedException: <josm.cache>\mirror_https___josm.openstreetmap.de_josmfile_page_Styles_MapWithAI_zip_1.tmp -> <josm.cache>\mirror_https___josm.openstreetmap.de_josmfile_page_Styles_MapWithAI_zip_1



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-1 (47) of JOSM
java.lang.RuntimeException: java.lang.RuntimeException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: 
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:600)
	at java.base/java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:678)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:722)
	at org.openstreetmap.josm.plugins.mapwithai.backend.DownloadMapWithAITask$DownloadTask.lambda$realRun$2(DownloadMapWithAITask.java:146)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.openstreetmap.josm.plugins.mapwithai.backend.DownloadMapWithAITask$DownloadTask.realRun(DownloadMapWithAITask.java:146)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.RuntimeException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: 
	at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1453)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: 
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:167)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:138)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:122)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:86)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:69)
	at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:211)
	at org.openstreetmap.josm.plugins.mapwithai.backend.BoundingBoxMapWithAIDownloader.parseOsm(BoundingBoxMapWithAIDownloader.java:86)
	at org.openstreetmap.josm.plugins.mapwithai.backend.MapWithAIDataUtils.lambda$download$6(MapWithAIDataUtils.java:170)
	at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448)
	... 5 more
Caused by: java.net.MalformedURLException: no protocol: 
	at java.base/java.net.URL.<init>(URL.java:645)
	at java.base/java.net.URL.<init>(URL.java:541)
	at java.base/java.net.URL.<init>(URL.java:488)
	at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:165)
	... 13 more

Attachments (2)

before.png (110.5 KB ) - added by r.stampach@… 3 years ago.
State of JOSM before download of data. MapWithAI data is checked.
error.png (256.7 KB ) - added by r.stampach@… 3 years ago.
Error that occured during downloading the data.

Download all attachments as: .zip

Change History (12)

comment:1 by skyper, 3 years ago

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

comment:2 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed
  • 00023.689 E: Exception raised in EDT: java.lang.reflect.InvocationTargetException. Cause: java.lang.IllegalMonitorStateException

Something happened in the EDT. I think I have a fix for that (which I haven't released yet, I should probably get on that).

Since the IMSE occurred in the code which got the URLs, that is probably what happened.

comment:3 by skyper, 3 years ago

#22186, #22197 and #22316 include this exception, too.

comment:4 by taylor.smock, 3 years ago

Well, there is another argument for applying attachment:22183.patch:ticket:22183. I usually ignore the Exception raised in EDT messages since I cannot tell what caused them. I just happened to have encountered it during a debug session, and so have a fix waiting around, which was never applied due to the CI pipeline failing (not the patch's fault).

by r.stampach@…, 3 years ago

Attachment: before.png added

State of JOSM before download of data. MapWithAI data is checked.

by r.stampach@…, 3 years ago

Attachment: error.png added

Error that occured during downloading the data.

comment:5 by taylor.smock, 3 years ago

@r.stampach: The problem is going to be in the Browse MapWithAI Data Sources tab. Like I said, I believe I have a fix for this, I just have to get it through the CI pipeline.

comment:6 by r.stampach@…, 3 years ago

I attached two attachments to this bug report - the state of JOSM before and after the error. I do not know if it can help.

comment:7 by r.stampach@…, 3 years ago

OK, thank you for your help.

comment:8 by taylor.smock, 3 years ago

No problem. Thank you for reporting the bug. I hadn't made getting the patch into my master branch high priority since I hadn't seen anything (after I saw the problem) reported by users, so I was working off the assumption that I had accidentally borked it in a change that hadn't made it to users yet.

comment:9 by taylor.smock, 3 years ago

This should be fixed in v1.9.17.

comment:10 by skyper, 2 years ago

See #22728 for similar problem with v1.10.4.

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.