FS#72623 - [sweethome3d] 3dview is not shown

Attached to Project: Community Packages
Opened by sergei gorbikov (sergei_mipt) - Wednesday, 03 November 2021, 16:23 GMT
Last edited by Muflone (muflone) - Sunday, 28 November 2021, 23:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Muflone (muflone)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
3dview is not visible after sweethome3d ( https://archlinux.org/packages/community/x86_64/sweethome3d/ )
has been launched

Additional info:
* package version(s)
$ pacman -Q --info sweethome3d
Name : sweethome3d
Version : 6.6-2
Description : An interior design application to draw the plan of your house in a 3D environment
Architecture : x86_64
URL : http://www.sweethome3d.com/
Licenses : GPL custom
Groups : None
Provides : None
Depends On : java-runtime>=8 shared-mime-info desktop-file-utils libxext libgl libxrender libnsl
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 31.24 MiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : Mon 23 Aug 2021 18:05:08 MSK
Install Date : Wed 03 Nov 2021 16:59:20 MSK
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature

* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
run the program as one of the following:
sweethome3d # gui will not start at all
SWEETHOME3D_JAVA3D=1.5 sweethome3d # gui will not start at all
SWEETHOME3D_JAVA3D=1.6 sweethome3d # gui will start but 3dview is not visible

attached: sweet.png - picture of the gui (when SWEETHOME3D_JAVA3D=1.6)
15.txt log for the command 'SWEETHOME3D_JAVA3D=1.5 sweethome3d'
16.txt log for the command 'SWEETHOME3D_JAVA3D=1.6 sweethome3d'
   sweet.png (67.3 KiB)
   15.txt (0.8 KiB)
   16.txt (9.9 KiB)
This task depends upon

Closed by  Muflone (muflone)
Sunday, 28 November 2021, 23:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  sweethome3d 6.6-3
Comment by sergei gorbikov (sergei_mipt) - Wednesday, 03 November 2021, 16:33 GMT
the bug should have been named '3dview is empty', please rename if you have the right.

the bottom right window in the attached picture (sweet.png) showed 3D view in the past. However, now it is blank.

ps: the same file has been attached twice to this comment accidentally (Delete button doesn't work)
Comment by michael (msch) - Thursday, 04 November 2021, 21:30 GMT
I'm using SweetHome3D 6.6-2 and don't experience any issues with the 3D view using java-11-openjdk. Issuing SWEETHOME3D_JAVA3D=1.5 sweethome3d will start the application and 3D view just fine while SWEETHOME3D_JAVA3D=1.6 sweethome3d results in an error (fatal error in the 3D rendering system).

Which version of Java is active on your system (run: archlinux-java status)? The PKGBUILD for sweethome3d requires you to use java-runtime>=8. Is that the case?
You said it used to work in the past, did anything changed since then (graphics card, updates, ...)?
Comment by Tyler Gale (holisticboy) - Tuesday, 16 November 2021, 07:52 GMT
I can replicate the issue using OpenJDK 17 (default on my install), but it goes away using OpenJDK 11. The official FAQ of SweetHome3D references very old versions of Java, so it's very likely that OpenJDK 17 is not compatible, and that you must use OpenJDK 11 instead (similar to other java apps that have lost compatibility over the years)
Comment by Muflone (muflone) - Friday, 19 November 2021, 22:43 GMT Comment by Jose Galvez (galvez_65) - Thursday, 25 November 2021, 00:07 GMT
don't know if this is the same error, but with java 17 I get the following error:

Exception in thread "J3D-Renderer-1" java.lang.IllegalAccessError: class javax.media.j3d.X11NativeConfigTemplate3D (in unnamed module @0x7e0ea639) cannot access class sun.awt.X11GraphicsConfig (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x7e0ea639
at javax.media.j3d.X11NativeConfigTemplate3D.isGraphicsConfigSupported(X11NativeConfigTemplate3D.java:180)
at javax.media.j3d.NativePipeline.isGraphicsConfigSupported(NativePipeline.java:3341)
at javax.media.j3d.Renderer.doWork(Renderer.java:533)
at javax.media.j3d.J3dThread.run(J3dThread.java:275)

installing and using java 11 it works. ended up setting JAVA_HOME to java 11 in the desktop file.
Comment by Muflone (muflone) - Sunday, 28 November 2021, 23:43 GMT
Actually I've not found any way to make it compatible with Java 17

I've applied a new workaround to automatically fallback to any installed Java version < 17

For the reference it was tested successfully with java-{8,12,13,14,15,16}-openjdk

fixed in sweethome3d 6.6-3

Loading...