com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required, profile > GL2 reques

简介: com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required, profile > GL2 reques

在某平台上,运行得到错误:


java.lang.InterruptedException
com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required, profile > GL2 requested (OpenGL >= 3.1). Requested: GLProfile[GL3bc/GL3bc.hw], current: 3.0 (Compat profile, compat[ES2], FBO, hardware) - 3.0 Mesa 18.0.5
  at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:440)
  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: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)
DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = X11GraphicsDevice[screen=0]
canvas = javax.media.j3d.PGCanvas3D[canvas0,0,0,1224x688]
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 3/3, reusable (open, marked uncloseable): 0, pending (open in creation order): 3)
X11Util: Open X11 Display Connections: 3
X11Util: Open[0]: NamedX11Display[:0.0, 0x7f40eb15f0, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0.0, 0x7f200567d0, refCount 1, unCloseable false]
X11Util: Open[2]: NamedX11Display[:0.0, 0x7f24006890, refCount 1, unCloseable false]

 当时有点傻眼。结果网上找到一篇文章,更新jar包得以解决。提供一个下载链接:具体的说:


下载GLContextImpl.class

https://download.csdn.net/download/quantum7/12326854


替换jogl-all.jar中的jogamp/opengl目录下同名文件

目录
相关文章
|
Linux
全网首发:分析及解决com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required
全网首发:分析及解决com.jogamp.opengl.GLException: J3D-Renderer-1: createImpl ARB n/a but required
268 0
|
8月前
|
XML 小程序 Java
【Android App】三维投影OpenGL ES的讲解及着色器实现(附源码和演示 超详细)
【Android App】三维投影OpenGL ES的讲解及着色器实现(附源码和演示 超详细)
153 0
|
缓存 C++
Opengl ES之FBO
Opengl ES连载系列
162 0
|
存储 编解码 算法
Opengl ES之LUT滤镜(上)
Opengl ES之连载系列
500 0
|
数据安全/隐私保护 开发者
OpenGL ES 多目标渲染(MRT)
Opengl ES连载系列
339 0
|
数据安全/隐私保护 索引
Opengl ES之纹理数组
Opengl ES连载系列
270 0
|
数据安全/隐私保护
Opengl ES之水印贴图
Opengl ES之连载系列
166 0
|
Java 数据安全/隐私保护 Android开发
Opengl ES之矩阵变换(下)
Opengl ES连载系列
144 0
|
Java API 数据安全/隐私保护
Opengl ES之矩阵变换(上)
Opengl ES连载系列
162 0
|
存储
Opengl ES之踩坑记
Opengl ES之连载系列
156 0