Modify

Opened 12 months ago

Last modified 12 months ago

#23320 new defect

SVG import error

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

Description (last modified by skyper)

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>

Attachments (1)

Cross.svg (185 bytes ) - added by Alf 12 months ago.
The svg file I'm trying to import

Download all attachments as: .zip

Change History (4)

by Alf, 12 months ago

Attachment: Cross.svg added

The svg file I'm trying to import

comment:1 by anonymous, 12 months ago

Component: CorePlugin importvec

comment:2 by skyper, 12 months ago

Cc: Upliner added

comment:3 by skyper, 12 months ago

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Alf.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


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