Print at Dec 17, 2025, 2:57:42 PM
Posted by scjo at Sep 14, 2024, 7:55:21 PM
Furniture Library Editor crashing on Modify Furniture dialog
I installed the FLE for the first time. It opens properly and lets me load a library. But as soon as I open the Modify Furniture dialog, the dialog shows up for a second, and then java crashes.

I tried
- FLE versions: 2.2, 2.1, 2.0
Java:
- Java HotSpot build 25.202-b08 (as comes with SH3D), version "1.8.0_202"
- OpenJDK Runtime Environment, version "1.8.0_202"

All to the same result. FLE v.1.28 does not expose this.

I assume I'm having trouble with some display output routine. But I understand to little for tracking it down, leave alone fixing it. Below is thecomplete crash output of the OpenJDK.

Platform:

$ SweetHome3D-7.5/runtime/bin/java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)

$ java -version #system installed
openjdk version "11.0.24" 2024-07-16
OpenJDK Runtime Environment (build 11.0.24+8-post-Ubuntu-1ubuntu322.04)
OpenJDK 64-Bit Server VM (build 11.0.24+8-post-Ubuntu-1ubuntu322.04, mixed mode, sharing)

$ uname -a
Linux desktop 6.5.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2 x86_64 x86_64 x86_64 GNU/Linux


Error output from SH3D bundled JVM:


com.jogamp.opengl.GLException: J3D-Renderer-2: Error making temp context(1) current: display 0x1febfe0, context 0x21a00b8, drawable X11OnscreenGLXDrawable[Realized true,
Factory jogamp.opengl.x11.glx.X11GLXDrawableFactory@733bc078,
Handle 0x2e001fd,
Surface JAWTWindow[0x1fd0a495][JVM version: 1.8.0_202 (1.8.0 update 202)
JAWT version: 0x10004, CA_LAYER: false, isLayeredSurface false, bounds [ 0 / 0 128 x 128 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pixelScale 1.0x1.0, shallUseOffscreenLayer false, isOffscreenLayerSurface false, attachedSurfaceLayer 0x0, windowHandle 0x2e001fd, surfaceHandle 0x2e001fd, bounds [ 0 / 0 128 x 128 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], window [0/0 128x128], pixels[scale 1.0, 1.0 -> 128x128], visible true, lockedExt false,
config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection :0.1, unitID 0, awtDevice X11GraphicsDevice[screen=1], handle 0x0], idx 1],
chosen GLCaps[glx vid 0x28, fbc 0x13f: rgba 8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
requested GLCaps[rgba 5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
X11GraphicsConfig[dev=X11GraphicsDevice[screen=1],vis=0x28],
encapsulated X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x1febfe0, owner true, JAWTToolkitLock[obj 0x5d15af40, isOwner true, <77870e7c, 5a1238f4>[count 1, qsz 0, owner <J3D-Renderer-2>]]], idx 0], visualID 0x28, fbConfigID 0x13f,
requested GLCaps[rgba 5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
chosen GLCaps[glx vid 0x28, fbc 0x13f: rgba 8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]]]],
awtComponent com.eteks.sweethome3d.j3d.Component3DManager$ObservedCanvas3D[canvas4,0,0,128x128],
surfaceLock <73e19d2, 5f738d88>[count 1, qsz 0, owner <J3D-Renderer-2>]]]
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:393)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:794)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:677)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:615)
at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6411)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4612)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2386)
at javax.media.j3d.Renderer.doWork(Renderer.java:881)
at javax.media.j3d.J3dThread.run(J3dThread.java:271)

DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = X11GraphicsDevice[screen=1]
canvas = com.eteks.sweethome3d.j3d.Component3DManager$ObservedCanvas3D[canvas4,0,0,128x128]
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 4/4, reusable (open, marked uncloseable): 0, pending (open in creation order): 4)
X11Util: Open X11 Display Connections: 4
X11Util: Open[0]: NamedX11Display[:1, 0x7fa79c00cdb0, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:1, 0x7fa79c1537d0, refCount 1, unCloseable false]
X11Util: Open[2]: NamedX11Display[:1, 0x1eaa7c0, refCount 1, unCloseable false]
X11Util: Open[3]: NamedX11Display[:1, 0x1febfe0, refCount 1, unCloseable false]



Can anybody help me narrowing it down? May I have missed something when installing the FLE or does my system need sum adjustment?
----------------------------------------
Cheers - Joe //

Posted by Keet at Sep 16, 2024, 11:02:02 AM
Re: Furniture Library Editor crashing on Modify Furniture dialog
I reported the same error in this thread.

In a virtual machine with java version 11.0.22 it works.
And in another virtual machine with an old java version 1.7.0_162 it also works.
I got the error using the java version supplied with Sweet Home 3D.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by scjo at Oct 1, 2024, 2:42:20 AM
Re: Furniture Library Editor crashing on Modify Furniture dialog
OK - I will switch over and continue there .

THX so far
----------------------------------------
Cheers - Joe //

Posted by Puybaret at Oct 25, 2024, 4:39:35 AM
Re: Furniture Library Editor crashing on Modify Furniture dialog
Try to run the Furniture Library Editor with the additional option
-Dcom.eteks.sweethome3d.j3d.version=1.5.2

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator