FS#75632 - [sweethome3d] Error exporting SVG

Attached to Project: Community Packages
Opened by Dimitri Kaparis (dkaparis) - Wednesday, 17 August 2022, 20:37 GMT
Last edited by Muflone (muflone) - Thursday, 23 March 2023, 17:50 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Muflone (muflone)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Attempting to export 2D plan to SVG format produces an empty file and the following output on terminal:

```
java.lang.NoClassDefFoundError: org/freehep/graphicsio/svg/SVGGraphics2D
at com.eteks.sweethome3d.swing.PlanComponent.exportToSVG(Unknown Source)
at com.eteks.sweethome3d.swing.PlanComponent.exportData(Unknown Source)
at com.eteks.sweethome3d.swing.MultipleLevelsPlanPanel.exportData(Unknown Source)
at com.eteks.sweethome3d.swing.HomePane.exportToSVG(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$38.call(Unknown Source)
at com.eteks.sweethome3d.viewcontroller.HomeController$38.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source)
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.ClassNotFoundException: org.freehep.graphicsio.svg.SVGGraphics2D
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 13 more
```

Additional info:
* package version(s): sweethome3d 7.0.2-1
* config and/or log files etc: Java runtime is java-11-openjdk. If using java-18-openjdk, the program falls back to java-11-openjdk and the issue persists.
* link to upstream bug report, if any: discussed at https://www.sweethome3d.com/support/forum/viewthread_thread,11910

If you download the jnlp version from https://www.sweethome3d.com/download.jsp and run with javaws on the same system, SVG export works correctly without error.

Steps to reproduce:

1. Create or open a project file
2. Select `Plan` -> `Export to SVG Format` command and specify filename.
This task depends upon

Closed by  Muflone (muflone)
Thursday, 23 March 2023, 17:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in 7.1-2
Comment by Muflone (muflone) - Thursday, 23 March 2023, 17:50 GMT
fixed in 7.1-2

it was a packaging issue, indeed

Loading...