Opened 2 years ago

Last modified 2 years ago

#23320 new defect

SVG import error — at Initial Version

Reported by: Alf Owned by: team
Priority: normal Milestone:
Component: Plugin importvec Version:
Keywords: template_report Cc: Upliner

Description

What steps will reproduce the problem?

  1. Create new data layer
  2. Drag an svg file describing a polyline onto the JOSM window
  3. Answer the "Import Vector Graphics" dialog

What is the expected result?

The graphic should import into JOSM as a vector layer

What happens instead?

The "unexpected exception" error window appears

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

Revision:18822
Build-Date:2023-08-30 11:52:18

Identification: JOSM/1.5 (18822 en_AU) Mac OS X 10.13.6
OS Build number: Mac OS X 10.13.6 (17G9016)
Memory Usage: 466 MB / 4096 MB (255 MB allocated, but free)
Java version: 17.0.8+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69973580 2560×1440 (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
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_AU
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18822, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --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]
Dataset consistency test: No problems found

Plugins:
+ ImportImagePlugin (36184)
+ InfoMode (36126)
+ PicLayer (1.0.3)
+ SimplifyArea (36178)
+ apache-commons (36176)
+ buildings_tools (36178)
+ ejml (36176)
+ geotools (36176)
+ importvec (35995)
+ jackson (36176)
+ jaxb (36118)
+ jts (36004)
+ log4j (36176)
+ measurement (36126)
+ opendata (36186)
+ print (36126)
+ splinex (36126)
+ terracer (36181)
+ undelete (36126)
+ utilsplugin2 (36178)
+ wms-turbo-challenge2 (36126)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip

Last errors/warnings:
- 00070.584 E: Failed to locate image 'https://www.spatial.nsw.gov.au/__data/assets/file/0017/224801/favicon.ico'
- 00070.585 E: Failed to locate image 'https://www.spatial.nsw.gov.au/__data/assets/file/0017/224801/favicon.ico'
- 00070.586 E: Failed to locate image 'https://www.spatial.nsw.gov.au/__data/assets/file/0017/224801/favicon.ico'
- 00070.587 E: Failed to locate image 'https://www.spatial.nsw.gov.au/__data/assets/file/0017/224801/favicon.ico'
- 00070.587 E: Failed to locate image 'https://www.spatial.nsw.gov.au/__data/assets/file/0017/224801/favicon.ico'
- 00108.936 E: java.io.IOException: Can't read SVG diagram: file:${HOME}/Desktop/Cross.svg
- 00108.938 E: Handled by bug report queue: java.io.IOException: Can't read SVG diagram: file:${HOME}/Desktop/Cross.svg
- 00125.182 W: java.util.zip.ZipException: zip END header not found
- 00125.183 W: PluginException: : org.openstreetmap.josm.plugins.PluginException: Invalid jar file '<josm.userdata>/plugins/pdfimport.jar.new'
- 00125.183 W: Failed to scan file 'pdfimport.jar.new' for plugin information. Skipping.



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
java.io.IOException: Can't read SVG diagram: file:/Users/imac/Desktop/Cross.svg
	at org.openstreetmap.josm.plugins.importvec.SvgImportTask.realRun(SvgImportTask.java:181)
	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(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Content of svg file:


<svg width="3" height="4">
<sodipodi:namedview inkscape:window-maximized="1"/>
<polyline stroke="black" fill="none" points="1,0 2,0 2,1 3,1 3,2 2,2 2,4 1,4 1,2 0,2 0,1 1,1 1,0"/>
</svg>


Change History (1)

by Alf, 2 years ago

Attachment: Cross.svg added

The svg file I'm trying to import

Note: See TracTickets for help on using tickets.