Fix 3D on contemporary versions of Linux (fixes #5308)#5428
Conversation
Compiled from https://github.com/gohai/jogl/tree/processing at 0bd5acc.
|
What's this one mean, exactly? |
|
A recent version of the Mesa OpenGL software changed the renderer string reported to GL applications. This broke JOGL which used this as an indicator to enable certain quirks that appear to be needed with Mesa. From looking at bug reports, this predominantly caused problems for users with dedicated AMD graphics cards. |
|
THANK YOU. This Mesa issue was the only thing keeping me from using Processing on my Linux installation. |
|
You welcome. Happy we could make this work for you on Linux!
…On Wed, Apr 4, 2018 at 5:04 PM, Campbell Jones ***@***.***> wrote:
THANK YOU. This Mesa issue was the only thing keeping me from using
Processing on my Linux installation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5428 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEt2Kx_5y_urd3JO5-KrhSO-B60j2r1Nks5tlV-jgaJpZM4SaXer>
.
|
|
@serebit Could you test this |
|
Unfortunately, @gohai, the update still didn't fix Processing for me when I try to use the OpenGL renderers. Now when I run a sketch with an OpenGL renderer selected, the JVM crashes on this line of code: on line 210 in GLProfile.java. The included file (hs_err_pid32175.log) is the JVM crashlog. This is the message in the console: Let me know if you have any ideas. This happens whether I use the jogl-all JAR you sent, or the JAR included by Processing in gradle. |
|
@serebit Did plain 3.3.7 work for you? Or both, 3.3.7 as well as the JAR file I posted are crashing? |
|
@gohai Both 3.3.7 and the JAR file you posted are crashing with the same error. |
|
@gohai If I run it on 3.3.6, I get this error: If I run it on 3.3.7 or with the JAR you sent, I get the JVM crashlog I sent earlier. |
|
@gohai Here's my glxinfo: |
|
@serebit This very much is a JOGL issue, which is a library Processing is using for OpenGL. It's unfortunate that you traded one error for another, but I don't believe there is an easy fix for that (and I am out my depth with 3D in general). You could try filing a bug for that against JOGL's Bugzilla, but the project seems really unmaintained unfortunately. (paging @codeanticode) |
|
Did some more digging. As it turns out, the error is somewhere in X11Display.c, in the function DispatchMessages0. Past that, I have no idea where the issue is within the function, as I don't know C and I don't know how to read memory addresses in a JVM crash dump. JOGL truly is a mess... |
|
@gohai Correction, the |
|
@serebit Sorry, I can't follow. Can you elaborate which version is now working for you, and why this wasn't working before? Thanks. |
|
@gohai I built Processing from source using the master branch, and I no
longer had any issues. The jogl library files in 3.3.7 do not work for me
(they crash the JVM), but the ones on the master branch do work for me.
…On Thu, May 3, 2018 at 5:10 PM Gottfried Haider ***@***.***> wrote:
@serebit <https://github.com/serebit> Sorry, I can't follow. Can you
elaborate which version is now working for you, and why this wasn't working
before? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5428 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMYVaJwUtjwCUb6tCebSUxQsQo5dWuuKks5tu3ImgaJpZM4SaXer>
.
|
|
@serebit There is no difference between the jogl library files in 3.3.7 and the ones in the master branch. |
|
@gohai It appears that 3.3.7 in the Processing now works, somehow, as verified by downloading the editor and starting up a sketch in P3D. Consider me properly befuddled, but thankful that this nonsense has been resolved. Nevertheless, I'd still recommend to the Processing team that they add a transitive dependency on their locally-built jogl-all files instead of the files provided by Maven Central, as the ones provided by Maven Central do not contain the mesa fixes. |
|
The Processing project has nothing to do with whatever is up on Maven Central. Locking this thread. |
Compiled from https://github.com/gohai/jogl/tree/processing at 0bd5acc.