Menu

#904 Crash with Screen that has 10bit color depth per channel

v_5.x
closed
nobody
None
1
2022-07-22
2019-06-29
H2
No

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!

Discussion

  • H2

    H2 - 2019-06-29

    Adding -Dsun.java2d.opengl=true to the invocation fixes it.

     
  • Emmanuel Puybaret

    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 in SweetHome3D script.

     
  • Emmanuel Puybaret

    • status: open --> closed
     

Log in to post a comment.