Application crashes on start up with
realpath: /usr/local/linux-oracle-jdk1.8.0/: No such file or directory
Jun 29, 2019 1:01:40 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.eteks.sweethome3d.SweetHome3DBootstrap.main(Unknown Source)
Caused by: sun.java2d.InvalidPipeException: Unsupported bit depth: 30
It seems like the program cannot handle 10bit color depth per channel. 10bit is commonly available on modern screens, especially higher end ones . It can be activated in the Xorg server via
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 30
SubSection "Display"
Depth 30
EndSubSection
EndSection
Thanks for your help!
Adding
-Dsun.java2d.opengl=true
to the invocation fixes it.Maybe you could try to set bit depth in Sweet Home 3D setting
com.eteks.sweethome3d.j3d.depthSize
property with a different value.Try
-Dcom.eteks.sweethome3d.j3d.depthSize=24
or
-Dcom.eteks.sweethome3d.j3d.depthSize=16
java options inSweetHome3D
script.