Critical error in 3D rendering with Linux and Nvidia driver (v7.5)

This topic has been viewed 3342 times and has 4 replies
Thread status: Active
Still a problem with your graphic card? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
wsky
Posts: 2
Joined: Thu Oct 17, 2024 9:35 pm

Critical error in 3D rendering with Linux and Nvidia driver (v7.5)

Post by wsky »

Hi there, I can not start Sweet Home 3D with the standard script, only getting an error message about a critical error in rendering system and I should update the graphics driver, then it quits. However it's the latest driver that is currently available on Ubuntu 24.04 which is Nvidia driver 550.107.02

I can use the other script "SweetHome3D-Java3D-1_5_2" to start Sweet Home 3D and it seems to work fine.

Here is the shell output from the normal start script:

Code: Select all

Failed to load module "canberra-gtk-module"
com.jogamp.opengl.GLException: J3D-Renderer-1: Error making temp context(1) current: display 0x7e0dec20a270, context 0x7e0dec242188, drawable X11OnscreenGLXDrawable[Realized true,
	Factory   jogamp.opengl.x11.glx.X11GLXDrawableFactory@4d3fbd1c,
	Handle    0x5a0009b,
	Surface   JAWTWindow[0x31d9eebc][JVM version: 1.8.0_202 (1.8.0 update 202)
JAWT version: 0x10004, CA_LAYER: false, isLayeredSurface false, bounds [ 0 / 0  813 x 522 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pixelScale 1.0x1.0, shallUseOffscreenLayer false, isOffscreenLayerSurface false, attachedSurfaceLayer 0x0, windowHandle 0x5a0009b, surfaceHandle 0x5a0009b, bounds [ 0 / 0  813 x 522 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], window [0/0 813x522], pixels[scale 1.0, 1.0 -> 813x522], visible true, lockedExt false,
	config AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection :0.0, unitID 0, awtDevice X11GraphicsDevice[screen=0], handle 0x0], idx 0],
	chosen    GLCaps[glx vid 0x28, fbc 0xaf: 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=0],vis=0x28],
	encapsulated X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7e0dec20a270, owner true, JAWTToolkitLock[obj 0x12f3c656, isOwner true, <5f7940aa, 6f9ec104>[count 1, qsz 0, owner <J3D-Renderer-1>]]], idx 0], visualID 0x28, fbConfigID 0xaf,
	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 0xaf: 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[canvas2,0,0,813x522],
	surfaceLock <209027c2, 22644e67>[count 1, qsz 0, owner <J3D-Renderer-1>]]]
	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)
Error in Java 3D : 3 Renderer: Error creating Canvas3D graphics context
User avatar
Keet
Posts: 1807
Joined: Fri Apr 08, 2022 7:13 am
Country: Netherlands

Re: Critical error in 3D rendering with Linux and Nvidia driver (v7.5)

Post by Keet »

On Linux always use the "SweetHome3D-Java3D-1_5_2" script. I use it on Debian.
Dodecagon.nl
1300+ 3D models, manuals, and projects
User avatar
scjo
Posts: 53
Joined: Thu Sep 12, 2024 9:59 pm
Country: Germany, Berlin

Re: Critical error in 3D rendering with Linux and Nvidia driver (v7.5)

Post by scjo »

wsky,

I'm late. Could you meanwhile sort it out? If so: was it Keet's suggestion or another solution?

Emmanuel Puybaret suggested an additional java parameter:

Code: Select all

-Dcom.eteks.sweethome3d.j3d.version=1.5.2
for the furniture library editor, a java app by him as well.

I'm using nvidia, too. The only thing that helped me was a switch from the proprietary driver to the open source nouveau (see link above).

However, nouveau is not the greatest driver either due to nvidia's denial of support. I'm cured from nvidia.
Cheers - Joe //
wsky
Posts: 2
Joined: Thu Oct 17, 2024 9:35 pm

Re: Critical error in 3D rendering with Linux and Nvidia driver (v7.5)

Post by wsky »

Hello scjo, starting Sweet Home 3D from shell like this?

Code: Select all

./SweetHome3D -Dcom.eteks.sweethome3d.j3d.version=1.5.2

This doesn't work, it will open the splash screen and then does nothing until I send Ctrl-C to the process.

For now, I am always using "SweetHome3D-Java3D-1_5_2" to start.

And also I am waiting for the Nvidia driver 560 or later to be available with the driver updater on Ubuntu 24.04. Currently 550 is the latest available but I had 560 on Ubuntu 22.04.
Furthermore, I'm using the "open" Nvidia driver 550 though the proprietary driver 550 is shown as recommended. I haven't tested yet if Sweet Home 3D (standard starter) works with the proprietary driver.
User avatar
scjo
Posts: 53
Joined: Thu Sep 12, 2024 9:59 pm
Country: Germany, Berlin

Re: Critical error in 3D rendering with Linux and Nvidia driver (v7.5)

Post by scjo »

In your command, SweetHome3D is probably a shell script. Open it with any text editor, and find the "exec" line. Mine starts with:

Code: Select all

exec "$PROGRAM_DIR"/runtime/bin/java 
More towards the end of the line, maybe several screen lines below, if your editor does auto linewrap, you find some parameters starting " -D...". Among these, surrounded by spaces but no hard line breaks of course, insert the additional parameter string.

My java knowledge is very limited, I don't even know if the sequence of parameters matters. But it won't hurt either.

HTH
Cheers - Joe //
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest