You are not logged in.

#1 2016-12-31 08:21:19

TarNinja7
Member
Registered: 2016-12-31
Posts: 8

[Solved]I don't seem to have opengl support... but yet I do...

I am trying to get opengl applications running in my arch linux setup.  I tried to get the polyvox demos (which use qt widgets with opengl) to run on my computer but it throws a runtime error saying no opengl support.  Minecraft does the same.  Now what is very strange is that opengl works perfectly in some games like sauerbraten

I am using intel graphics.

~ » glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.0.2
OpenGL core profile shading language version string: 4.50
OpenGL version string: 3.0 Mesa 13.0.2
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 13.0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

As you can see I have mesa installed

~ » pacman -Q | grep mesa
lib32-mesa 13.0.2-1
lib32-mesa-libgl 13.0.2-1
mesa 13.0.2-2
mesa-libgl 13.0.2-2

And also intel graphics

~ » pacman -Q | grep intel
vulkan-intel 13.0.2-2
xf86-video-intel 1:2.99.917+746+g169c74f-1

Just as evidence that it works in sauerbraten here is the console output of sauerbraten

.....
Renderer: Mesa DRI Intel(R) Broadwell GT1  (Intel Open Source Technology Center)
Driver: 3.0 Mesa 13.0.2
Rendering using the OpenGL GLSL shader path.
.....

Last edited by TarNinja7 (2016-12-31 19:38:39)

Offline

#2 2016-12-31 12:28:45

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [Solved]I don't seem to have opengl support... but yet I do...

> saying no opengl support
If it says that precisely, it's obviously wrong. But what's the exact error message?

Offline

#3 2016-12-31 19:22:32

TarNinja7
Member
Registered: 2016-12-31
Posts: 8

Re: [Solved]I don't seem to have opengl support... but yet I do...

The error messages are not helpful at all imo because they just say no opengl support but ok.  Here is the minecraft one:

---- Minecraft Crash Report ----
// I blame Dinnerbone.

Time: 12/31/16 12:19 PM
Description: Initializing game

java.lang.ExceptionInInitializerError
	at bes.ar(SourceFile:626)
	at bes.an(SourceFile:434)
	at bes.a(SourceFile:383)
	at net.minecraft.client.main.Main.main(SourceFile:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
	at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
	at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
	... 4 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at bes.ar(SourceFile:626)
	at bes.an(SourceFile:434)

-- Initialization --
Details:
Stacktrace:
	at bes.a(SourceFile:383)
	at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
	Minecraft Version: 1.11.2
	Operating System: Linux (amd64) version 4.8.13-1-ARCH
	Java Version: 1.8.0_112, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 49570640 bytes (47 MB) / 151265280 bytes (144 MB) up to 1060372480 bytes (1011 MB)
	JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.11.2
	LWJGL: 2.9.4
	OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
	GL Caps: 
	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: ~~ERROR~~ NullPointerException: null
	Profiler Position: N/A (disabled)
	CPU: <unknown>

Offline

#4 2016-12-31 19:36:08

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [Solved]I don't seem to have opengl support... but yet I do...

No OpenGL context found in the current thread.

That's not the same as "your system doesn't support opengl" - the client simply has no context available anymore - because it just crashed.
Your problem is java.lang.ArrayIndexOutOfBoundsException from apparently org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes

Google reveals eg. https://mike632t.wordpress.com/2015/05/ … ding-game/ so try to install

pacman -S xorg-xrandr

and in case, curse the minecraft developers for being completely inept :-P

Offline

#5 2016-12-31 19:38:22

TarNinja7
Member
Registered: 2016-12-31
Posts: 8

Re: [Solved]I don't seem to have opengl support... but yet I do...

Thanks that fixed it perfectly!  I feel pretty stupid now. lol Anyways thanks a bunch!

Offline

#6 2016-12-31 19:49:37

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [Solved]I don't seem to have opengl support... but yet I do...

Since this looks like xorg-xrandr is required as a dependency, should it not also be a mandatory dependency in the package, https://aur.archlinux.org/packages/minecraft/ ? I have reason to suspect this is a bug, assuming I have my all my ducks in a row. One would think xorg-xrandr should have been pulled in as a dependency. I'll double check my suspicions and file a bug report if need. And, if possible, add the trivial lines to the PKGBUILD if needed and go from there.

EDIT: So the dependency is there:

url="http://www.minecraft.net/"
depends=('java-runtime' 'xorg-xrandr' 'ttf-font' 'libxtst')

But why you didnt have it on your system remains a mystery. Oh well, glad you have the solution. smile

Last edited by JohnBobSmith (2016-12-31 19:51:55)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#7 2016-12-31 19:51:15

TarNinja7
Member
Registered: 2016-12-31
Posts: 8

Re: [Solved]I don't seem to have opengl support... but yet I do...

I didn't use the aur.  I actually didn't know there was a package in the aur for it but it makes sense.

Offline

#8 2016-12-31 19:52:59

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [Solved]I don't seem to have opengl support... but yet I do...

Ah, that explains it, and why you didnt have xorg-xrandr. Yes, *always* use pacman and AUR if possible. Mystery solved lol.

Peace.


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#9 2016-12-31 20:02:15

seth
Member
Registered: 2012-09-03
Posts: 51,229

Re: [Solved]I don't seem to have opengl support... but yet I do...

TarNinja7 wrote:

I feel pretty stupid now.

As mentioned, that's not really your fault (ok, google an error message is always a very good idea, but you need to distinguish the error from the fuzz)

That's just crappy programming; if you need a 3rd party tool, you check whether it's available and exit gracefully (with a reasonable error message) - not run into a crash to present the user a buggy crash summary. That's basics and not a good quality sign for minecraft...

Offline

#10 2016-12-31 20:03:32

TarNinja7
Member
Registered: 2016-12-31
Posts: 8

Re: [Solved]I don't seem to have opengl support... but yet I do...

Yeah i know right... some things about minecraft are very frustrating.

Offline

Board footer

Powered by FluxBB