Error while starting default client.

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.
User avatar
delsus
Posts: 170
Joined: Sat Nov 17, 2012 10:37 am

Error while starting default client.

Post by delsus »

Hello!

I can't seem to be able to play the game anymore, I get this error message :

Code: Select all

com.jogamp.opengl.GLException: Unable to determine GraphicsConfiguration: WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x405b0644]], idx 0], pfdID 8, ARB-Choosen true,
    requested GLCaps[rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL4/GL4.hw], on-scr[.]],
    chosen    GLCaps[wgl vid 8 arb: rgba 8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms 24/0/0, dbl, mono  , hw, GLProfile[GL4/GL4.hw], on-scr[.]]]
    at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:182)
    at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424)
    at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1513)
    at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:609)
    at java.desktop/java.awt.Container.addNotify(Container.java:2801)
    at java.desktop/java.awt.Window.addNotify(Window.java:787)
    at java.desktop/java.awt.Frame.addNotify(Frame.java:493)
    at java.desktop/java.awt.Window.pack(Window.java:825)
    at haven.MainFrame.<init>(MainFrame.java:187)
    at haven.MainFrame.main2(MainFrame.java:445)
    at haven.MainFrame.lambda$main$0(MainFrame.java:484)
    at java.base/java.lang.Thread.run(Thread.java:831)
Did the devs change something in the graphics? Why can't I play anymore? :(
User avatar
loftar
Posts: 9093
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Error while starting default client.

Post by loftar »

Are you using Java 16? Java 16 has become incompatible with JOGL. I'm trying to have the error reporter detect some of the errors caused by that incompatibility and advice of them as such, but I don't think I've been able to catch them all.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
delsus
Posts: 170
Joined: Sat Nov 17, 2012 10:37 am

Re: Error while starting default client.

Post by delsus »

Hello! Thank you very much for your answer. Yes, I am using Java 16. Which one should I use, 11 or 8 ?
User avatar
loftar
Posts: 9093
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Error while starting default client.

Post by loftar »

I'd recommend 11 (since it's the latest LTS), but any version prior to 16 should work, even 15.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
delsus
Posts: 170
Joined: Sat Nov 17, 2012 10:37 am

Re: Error while starting default client.

Post by delsus »

It worked! Thanks!
User avatar
roskuwacz
Posts: 138
Joined: Sun Apr 10, 2011 2:33 pm

Re: Error while starting default client.

Post by roskuwacz »

You are able to play with java 18 just need to add jvm flag -> --add-exports=java.desktop/sun.awt=ALL-UNNAMED
All great things are simple, and many can be expressed in single words: freedom, justice, honor, duty, mercy, hope. - Winston Churchill

Return to “How do I?”