Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2D and P3D not working on Linux (Ubuntu 20.04 with Intel 620 Graphics) #6061

Closed
villares opened this issue Jun 26, 2020 · 2 comments
Closed

P2D and P3D not working on Linux (Ubuntu 20.04 with Intel 620 Graphics) #6061

villares opened this issue Jun 26, 2020 · 2 comments

Comments

@villares
Copy link
Sponsor Contributor

@villares villares commented Jun 26, 2020

Description

On a fresh Ubuntu 20.04 install on a Lenovo V310, I can run sketches with size(__, __) but not size(___, ___, P3D) nor P2D

Expected Behavior

Grey canvas.

Current Behavior

Black canvas and error:

Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x7fdc7801d9d0, owner true, ResourceToolkitLock[obj 0x449eeca2, isOwner true, <40a170e9, 5a3e699>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]

Steps to Reproduce

size(400, 400, P3D);

Your Environment

  • Processing version: 3.5.4
  • Operating System and OS version: Ubuntu 20.04
  • Other information:
$ glxinfo -B
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) HD Graphics 620 (KBL GT2) (0x5916)
    Version: 20.0.4
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
@villares
Copy link
Sponsor Contributor Author

@villares villares commented Jun 27, 2020

Related to: #5476

workarounds:

Java mode

void settings() { 
  System.setProperty("jogl.disable.openglcore", "false");
  size(400, 400, P3D);
}

Python mode, thanks to @GoToLoop

from java.lang import System
System.setProperty("jogl.disable.openglcore", "false")

def setup():
    size(200, 200, P3D)

@benfry
Copy link
Member

@benfry benfry commented Sep 23, 2020

Closing as duplicate of #5476.

@benfry benfry closed this as completed Sep 23, 2020
@processing processing locked as resolved and limited conversation to collaborators Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants