You are not logged in.

#1 2017-03-03 17:51:46

phraktal
Member
Registered: 2015-03-15
Posts: 13

Nvidia/Nouveau driver and Java Issues.

I'm trying to make sweethome3d run on my computer but it won't start if I'm using the nvidia driver. If I switch to nouveau, it works (poor performance) but then other things (mostly games) don't. Does anyone knows how to fix this ?:

$ sweethome3d 
com.jogamp.opengl.GLException: J3D-Renderer-2: Error making temp context(1) current: display 0x7fc948175650, context 0x7fc948188158, drawable X11OnscreenGLXDrawable[Realized true,
	Factory   jogamp.opengl.x11.glx.X11GLXDrawableFactory@2948cc12,
	Handle    0x18000e9,
	Surface   JAWTWindow[0x433e790c][JVM version: 1.8.0_121 (1.8.0 update 121)
JAWT version: 0x10004, CA_LAYER: false, isLayeredSurface false, bounds [ 0 / 0  101 x 544 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], pixelScale 1.0x1.0, shallUseOffscreenLayer false, isOffscreenLayerSurface false, attachedSurfaceLayer 0x0, windowHandle 0x18000e9, surfaceHandle 0x18000e9, bounds [ 0 / 0  101 x 544 ], insets [ l 0, r 0 - t 0, b 0 - 0x0], window [0/0 101x544], pixels[scale 1.0, 1.0 -> 101x544], 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 0x10f: 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 16/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 :0, unitID 0, handle 0x7fc948175650, owner true, JAWTToolkitLock[obj 0x44c3d8cb, isOwner true, <18a70b3b, 77e07c61>[count 1, qsz 0, owner <J3D-Renderer-2>]]], idx 0], visualID 0x28, fbConfigID 0x10f,
	requested GLCaps[rgba 5/5/5/1, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc.hw], on-scr[.]],
	chosen    GLCaps[glx vid 0x28, fbc 0x10f: 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,101x544],
	surfaceLock <2e009b35, 7025f417>[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:765)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:648)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:586)
	at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6411)
	at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4602)
	at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2376)
	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 contextX11Util.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[:0, 0x7fc94c0015c0, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0, 0x7fc94c17cea0, refCount 1, unCloseable false]
X11Util: Open[2]: NamedX11Display[:0, 0x7fc9480010f0, refCount 1, unCloseable false]
X11Util: Open[3]: NamedX11Display[:0, 0x7fc948175650, refCount 1, unCloseable false]

Anyone knows how to fix this ? It seems to be some kind of an issue with OpenGL.

My nvidia drivers:

$ pacman -Q | grep nvidia
lib32-nvidia-libgl 378.13-1
lib32-nvidia-utils 378.13-1
nvidia 378.13-2
nvidia-libgl 378.13-3
nvidia-utils 378.13-3

Offline

#2 2017-04-19 11:11:47

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: Nvidia/Nouveau driver and Java Issues.

Same issue here

Did you manage to resolve this?

Last edited by alleyoopster (2017-04-19 11:12:45)

Offline

#3 2017-04-20 14:15:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,912

Re: Nvidia/Nouveau driver and Java Issues.

Sweethome 3d looks like it's focused on Oracle Java , not OpenJDK as is common on linux.

Oracle java is in aur, you could try running it with that.

The alternative script[1] that uses java web start (javaws) also seems worth  a try .
Install icedtea-web and try running it like /usr/bin/javaws SweetHome3D.jnlp

[1] http://www.sweethome3d.com/SweetHome3D.jnlp

P.S.
Alleyoopster,

I don't think sweethome developer(s) are aware of what OpenJDK is.

wikipedia wrote:

OpenJDK is the official reference implementation of Java SE since version 7

Basically, if it doesn't run with openjdk it may very well be incorrect code.

You might want to point them to https://en.wikipedia.org/wiki/OpenJDK , especially the notes 2/3/4 on that page.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Online

#4 2017-04-20 15:03:22

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: Nvidia/Nouveau driver and Java Issues.

I have the  same problem with JRE from AUR. The downloaded version also fails, but works with the bundled java (it's version 121 and I wonder if this is actually openjdk)

The developer has responded, but only to suggest using the bundled java.

It seems to be related to nvidia closed drivers in some way.

Last edited by alleyoopster (2017-04-20 15:04:47)

Offline

#5 2017-04-20 16:47:40

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: Nvidia/Nouveau driver and Java Issues.

good morning,
I installed yesterday this program for curiosity, after reading this post, i have default nouveau and jdk-jre and everything works, even 3d
http://i.imgur.com/QCWRK57.png
http://imgur.com/QCWRK57l.png
pic 3d
http://i.imgur.com/er06DSv.png
my java

minchionne ~ $ java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
minchionne ~ $ 

Last edited by newbie1962 (2017-04-20 16:55:04)


hp-envy dv7

Offline

#6 2017-04-20 16:58:52

alleyoopster
Member
From: Cape Town
Registered: 2006-11-19
Posts: 95

Re: Nvidia/Nouveau driver and Java Issues.

newbie1962 wrote:

good morning,
I installed yesterday this program for curiosity, after reading this post, i have default nouveau and jdk-jre and everything works, even 3d
http://i.imgur.com/QCWRK57.png
http://imgur.com/QCWRK57l.png
pic 3d
http://i.imgur.com/er06DSv.png
my java

minchionne ~ $ java -version
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
minchionne ~ $ 

It's good to know it's working with nouveau, Are you able to try with proprietary drivers?

Last edited by alleyoopster (2017-04-20 16:59:14)

Offline

#7 2017-04-20 17:01:26

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: Nvidia/Nouveau driver and Java Issues.

I never use propietari drivers, I'm sorry!
best regards


hp-envy dv7

Offline

#8 2017-07-10 19:19:50

m01
Member
Registered: 2015-06-25
Posts: 8

Re: Nvidia/Nouveau driver and Java Issues.

I also tried it with the proprietary nvidia drivers and jre (from AUR) and jre8-openjdk, and neither works; I get the same error (Sweet Home 3D will exit now because of a fatal error in the 3D rendering system of you computer. Please update the DirectX/OpenGL drivers of your computer graphics card).
I also tried using icedtea-web and the portable version (that comes with a JRE; I tried both the x86 and x64 binaries) without any luck.

Last edited by m01 (2017-07-10 20:00:11)

Offline

Board footer

Powered by FluxBB