Bug#985604: sweethome3d svg export bug

2021-03-22 Thread Andrius Merkys
On 2021-03-23 01:16, Markus Koschany wrote:
> Am Montag, den 22.03.2021, 07:55 +0200 schrieb Andrius Merkys:
>> On 2021-03-20 18:05, Антон Скрипка wrote:
>>> When export to SVG:
>>>
>>> Java 3D: implicit antialiasing enabled
>>> java.lang.NoClassDefFoundError:
>>> org/freehep/graphicsbase/util/UserProperties
>>
>> I confirm this bug. Apparently, sweethome3d does not locate JAR of
>> libfreehep-graphicsbase-java. I have fixed this [1], will try to get the
>> fix for bullseye release.
> 
> Thanks for taking care of this Andrius. This must have been changed when
> freehep was updated a while ago.

No problem. Indeed, this bug was caused after updating freehep. I am
working on getting the fix into bullseye.

There is one more issue related to freehep update, #985690. However, I
do not yet see how it manifests, thus it may be a minor one.

Best,
Andrius



Bug#985604: sweethome3d svg export bug

2021-03-22 Thread Markus Koschany
Am Montag, den 22.03.2021, 07:55 +0200 schrieb Andrius Merkys:
> Control: severity 985604 important
> Control: tags 985604 + confirmed
> 
> Hello,
> 
> On 2021-03-20 18:05, Антон Скрипка wrote:
> > When export to SVG:
> > 
> > Java 3D: implicit antialiasing enabled
> > java.lang.NoClassDefFoundError:
> > org/freehep/graphicsbase/util/UserProperties
> 
> I confirm this bug. Apparently, sweethome3d does not locate JAR of
> libfreehep-graphicsbase-java. I have fixed this [1], will try to get the
> fix for bullseye release.

Thanks for taking care of this Andrius. This must have been changed when
freehep was updated a while ago.

Markus


signature.asc
Description: This is a digitally signed message part


Bug#985604: sweethome3d svg export bug

2021-03-21 Thread Andrius Merkys
Control: severity 985604 important
Control: tags 985604 + confirmed

Hello,

On 2021-03-20 18:05, Антон Скрипка wrote:
> When export to SVG:
> 
> Java 3D: implicit antialiasing enabled
> java.lang.NoClassDefFoundError: org/freehep/graphicsbase/util/UserProperties

I confirm this bug. Apparently, sweethome3d does not locate JAR of
libfreehep-graphicsbase-java. I have fixed this [1], will try to get the
fix for bullseye release.

> Solved: update version to 6.5
> 
> It's work!
> $ sudo -i
> # wget 
> https://kumisystems.dl.sourceforge.net/project/sweethome3d/SweetHome3D/SweetHome3D-6.5/SweetHome3D-6.5-linux-x64.tgz
> # tar zxvf SweetHome3D-6.5-linux-x64.tgz
> # cp -R /root/SweetHome3D-6.5/lib /usr/share/sweethome3d/

This fixes the issue because the upstream-provided tarball includes all
the dependencies. However, this is not the way dependencies are handled
in Debian.

[1]
https://salsa.debian.org/java-team/sweethome3d/-/commit/8bbdbf3d47da4d10b70f714fd158157c90114fc1

Best,
Andrius



Bug#985604: sweethome3d svg export bug

2021-03-20 Thread Антон Скрипка

Package: sweethome3d
Version: 6.4.2+dfsg-1

When export to SVG:

Java 3D: implicit antialiasing enabled
java.lang.NoClassDefFoundError: org/freehep/graphicsbase/util/UserProperties
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.graphicsbase.util.UserProperties
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

Solved: update version to 6.5

It's work!
$ sudo -i
# wget 
https://kumisystems.dl.sourceforge.net/project/sweethome3d/SweetHome3D/SweetHome3D-6.5/SweetHome3D-6.5-linux-x64.tgz
# tar zxvf SweetHome3D-6.5-linux-x64.tgz
# cp -R /root/SweetHome3D-6.5/lib /usr/share/sweethome3d/
# echo '#!/bin/sh

BASEPATH=/usr/share/sweethome3d
JAVA_ARGS="-Djava.library.path=/usr/lib/jni \
 
-Dcom.eteks.sweethome3d.applicationFolders=$HOME/.eteks/sweethome3d:/usr/share/sweethome3d
 \
 -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false \
 -Dsun.java2d.opengl=true"

. /usr/lib/java-wrappers/java-wrappers.sh

find_java_runtime java7

# add new version
find_jars /usr/share/sweethome3d/lib/*

find_jars j3dcore j3dutils vecmath batik
find_jars sunflow itext janino freehep-util freehep-io freehep-xml
find_jars freehep-graphics2d freehep-graphicsio freehep-graphicsio-svg
find_jars /usr/share/sweethome3d/sweethome3d.jar
find_jars /usr/share/icedtea-web/netx.jar

cd $BASEPATH
run_java com.eteks.sweethome3d.SweetHome3D -open "$@"' > 
/usr/share/sweethome3d/sweethome3d.sh