runelite: Unable to launch GPU plugin (Linux Mint, Mesa, JOGAMP)

Describe the bug I am unable to enable the GPU plugin in RuneLite even though I should be able to.

To Reproduce

  1. Run RuneLite.AppImage
  2. Wait for client to have opened
  3. Go to plugin ‘GPU’
  4. Click on enable

Expected behavior GPU plugin should be turned on and it should start rendering from the GPU.

  • I have consulted the FAQ and Discord
  • I have a GPU (Radeon HD6950) and drivers (Mesa 19.2.8) installed that can run OpenGL version 4.3

Error output

2020-06-07 22:38:40 [Client] ERROR n.r.client.plugins.gpu.GpuPlugin - Error starting GPU plugin
java.lang.InternalError: XXX0 profile[2]: GL2 -> profileImpl GL3bc !!! not mapped 
	at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2098)
	at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1976)
	at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1895)
	at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1861)
	at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
	at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:239)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:225)
	at net.runelite.client.plugins.gpu.GpuPlugin.lambda$startUp$2(GpuPlugin.java:308)
	at net.runelite.client.callback.ClientThread.invoke(ClientThread.java:99)
	at net.runelite.client.callback.Hooks.clientMainLoop(Hooks.java:191)
	at an.hr(an.java:22983)
	at client.ao(client.java)
	at br.h(br.java:362)
	at br.run(br.java:316)
	at java.base/java.lang.Thread.run(Unknown Source)

Extra info

$ hostnamectl
...
  Operating System: Linux Mint 19.3
            Kernel: Linux 5.3.0-53-generic
      Architecture: x86-64
$ java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
$ glxinfo | grep -i opengl
...
OpenGL vendor string: X.Org
OpenGL renderer string: AMD CAYMAN (DRM 2.50.0 / 5.3.0-53-generic, LLVM 9.0.0)
OpenGL core profile version string: 4.3 (Core Profile) Mesa 19.2.8
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 19.2.8
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 19.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Environment (please complete the following information):

  • OS: Linux Mint 19.3 (64-bit)
  • RuneLite version: 1.6.18.1
  • Launcher version: 2.1.3

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

@bartvdbraak It looks like a JOGL screwup or the way Runelite is detecting the GPU. Haven’t looked at the code. But Runelite/JOGL thinks you’re running at OpenGL 3.1. Try and see if you can force it to recognize your GPU as 4.3 for now.

https://askubuntu.com/questions/850900/why-is-my-opengl-version-stuck-at-3-0-despite-new-hardware-software

@janholbrouck It doesn’t look like your card supports OpenGL 4.3 at all so I don’t think It’d run. I’m not 100% sure which features aren’t supported from OpenGl 4.1 to 4.3, but I’m pretty sure compute shaders are one of them. Right now the code just checks to see if you’re running on a Mac instead of checking feature support to determine if it can run at all on a system under OpenGL 4.3. (IIRC don’t quote me on that one)

You could try the previous approach and just make sure you don’t enable compute shaders. You’d just have the same limitations Mac users do.

Hmm, the mesa drivers compute shaders page says “WIP” for the northern islands cards, so it might just not be supported on Linux…

https://www.x.org/wiki/RadeonFeature/

I’m not sure why it reported 4.3 on your original drivers since the above link says the driver supports 4.2 and the hardware supports 4.5.

Can you post the output of:

glxinfo | grep render

I seem to be having a similar issue with the same errors, albeit with slightly different versions and GPU. Also willing to help test changes. https://github.com/runelite/runelite/issues/12244

Hey @bartvdbraak,

Would you have some time to work with me on discord to get this resolved? I just need you to test changes for me.

Let me know,