180 questions
2
votes
1
answer
433
views
Laggy Android Studio revisited
I never had lag problems with Android Studio (AS) until last year, when I began to experience GUI lag problems: menus take around 2 seconds to open (freezing AS during that time). Also when hovering ...
2
votes
1
answer
850
views
'GLXPlatform' object has no attribute 'OSMesa'
I am testing whether OSMesa functions properly, but I encountered the following error. How can this error be resolved?
The full error message:
----------------------------------------------------------...
2
votes
1
answer
234
views
BadValue on X_ChangeProperty when calling glXChooseFBConfig() on XCB connection?
I'm trying to use my XCB implementation with OpenGL but I encountered an error.
The problem is in the code below:
#include <dlfcn.h>
#include <iostream>
#include <xcb/xcb.h>
#...
0
votes
0
answers
106
views
How to free memory returned by glxChooseFBConfig?
glxChooseFBConfig returns GLXFBConfig* and GLXFBConfig is defined this way:
typedef struct __GLXFBConfigRec *GLXFBConfig;
Here is an example function which uses glxChooseFBConfig and frees memory:
...
0
votes
1
answer
212
views
How to resize an existing pbuffer surface in GLX/OpenGL?
I am using GLX pbuffer surface to render OpenGL applications in Linux. Here is a sample:
GLOffscreenBuffer::GLOffscreenBuffer(unsigned width, unsigned height)
: m_width(width)
, m_height(...
2
votes
1
answer
1k
views
GLX offscreen rendering in headless system
I am try to render GLX appliations in a Linux headless system(such as Linux server version), with no display and no desktop.
However, when I run a GLX sample, I got the following errors:
XOpenDisplay ...
0
votes
0
answers
46
views
Why OpenGL library exports extended symbols?
I'm going to develop a wrapper of OpenGL library in linux, libGL.so.1, installed from NVIDIA driver. I found there are about 3000 symbols which OpenGL library exports:
$ nm -D /usr/lib/x86_64-linux-...
1
vote
0
answers
82
views
How to get a list of created GLX contexts for a process with command line
I want to compare how apps are creating their GLX contexts.
I can easily check window info using xwininfo - this gives me e.g visual info, but nothing about OpenGL contexts.
10
votes
0
answers
8k
views
X2Go Error: X server does not support XInput 2
I am using the remote desktop software X2Go to use an Ubuntu 20.04 linux workstation from remote. I am tunneling from an Ubuntu 20.04 laptop. Initially, everything seems to work fine. When I start ...
0
votes
1
answer
122
views
XCreateColormap giving segmentation fault
I have no idea what it going on.
I spent around 3 hours trying to fix it, but no luck.
My code is:
`
temp->wA.border_pixel = BlackPixel(temp->d, temp->sID);
temp->wA....
0
votes
1
answer
642
views
Getting the current GLXFBConfig in GLX
I can trivially get visuals, visual IDs, etc. when generating an OpenGL context using xlib, but OpenXR requires a GLXFBConfig in order to work. But I can't figure out how to get the GLXFBConfig for ...
1
vote
0
answers
1k
views
OpenGL: Major opcode of failed request: 150 (GLX)
win10 + wsl1 (ubuntu18.04)
I want to install opengl, here are my steps:
sudo apt-get install build-essential libgl1-mesa-dev libglu1-mesa-dev libglu1-mesa-dev
sudo apt-get install libglew-dev ...
1
vote
0
answers
68
views
GLX glXQueryVersion returns error of "wrong opcode". Unix socket connection
The connection to the X server is done with Unix sockets. I can confirm that the server has GLX extension with the following code:
const char *str_extension = "GLX";
/* X protocol requires ...
1
vote
0
answers
397
views
OpenGL display is not working without GPU on Mac?
I am very new to ROS simulations. So I need to run the existing project with Docker on Mac. I get the following error from glxgears:
~/catkin_ws$ LIBGL_DEBUG=verbose glxgears
libGL: MESA-LOADER: ...
0
votes
2
answers
1k
views
Why gl 32-bit doesn't work on archlinux, amd card?
$ glxinfo32
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
I found this from steam "glxChooseVisual failed".
$ steam
...
glXChooseVisual failed
glXChooseVisual ...
0
votes
1
answer
1k
views
Linux - default OpenGL version
I work on Ubuntu 18.04. I don't define GL_GLEXT_PROTOTYPES. I load "core" OpenGL functions using glXGetProcAddress. My application links to /usr/lib/x86_64-linux-gnu/libGL.so. Some legacy ...
3
votes
0
answers
363
views
C++ OpenGL texture not rendering as it should
I've successfully got some triangles to show up on screen together with some textures and a couple of event listeners. However, my texture is not rendering properly, it seems like pixels between 0 and ...
2
votes
1
answer
902
views
Drawing triangles with opengl with GL/gl.h and GL/glx.h on x11 System
I have read and pieced multiple projects together in order to create an x11 window with open gl working, with the preinstalled GL/gl.h and GL/glx.h. The problem I get is that the triangles I want to ...
1
vote
0
answers
321
views
OpenGL glReadPixels doesn't work with EGL while working with GLX
I would like to use OpenGL with EGL context for offscreen rending into memory. I managed to get a running code without errors reported by OGL or EGL, but when I try to read the pixels with ...
6
votes
1
answer
3k
views
How can I use OpenGL to render to memory without requiring any windowing system library?
I would like to use OpenGL (version 1.5) to render images to memory, without displaying them on screen (I can e.g. just save them as image files or render them as ASCII in terminal). I do not want any ...
0
votes
1
answer
315
views
How do I read an openGL constant of my system
An open GL error I get seems to be linked to the MAX_VERTEX_UNIFORM_COMPONENTS_ARB. (as suggested in the answer here
What determines this constant (graphic hardware, graphic driver, openGL version ?), ...
1
vote
0
answers
102
views
Rstudio not working on my Ubuntu 16 virtual machine
When I try to run Rstudio Desktop (1.4) on my virtual machine (Ubuntu 16.4), Rstudio crashes and gives the error:
ERROR:gl_surface_glx_gt.cpp(141) GLX 1.3 or later is required.
I tried to follow the ...
-1
votes
1
answer
492
views
gl3w and GL extensions
I am targeting GL Core Profile on Linux. When I directly use the system GL headers like so:
#include <GL/glcorearb.h>
...then everything works as expected, and I can use GL extensions too, e.g. ...
0
votes
1
answer
2k
views
Upgrading GLX to version 1.3 on Ubuntu 18.04
I have the following question: for the purpose of visualisation of some point clouds with GLFW library and Open3D, I would like to upgrade GLX to version 1.3 on Ubuntu 18.04. Having done some research ...
7
votes
1
answer
23k
views
Can't run OpenGL on WSL2
I am trying to run an OpenGL code on WSL2 but am getting the following error on trying to run the executable:
GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig
Unable to create GLFW ...
4
votes
2
answers
2k
views
Request the most recent version of OpenGL context
I'm developing an application that can use any OpenGL version from 4.6 down to 2.0 by gradually disabling some features and optimizations. This means that it can live with 2.0 but prefers the latest ...
1
vote
1
answer
1k
views
Hosting JavaFX project on docker container
I am having trouble hosting my JavaFX GUI application on a docker container. My JavaFX GUI application is in a single executable jar file: start.jar
This is my dockerfile:
FROM openjdk:11-jre-slim
...
2
votes
0
answers
575
views
ffplay over X11 throws BadRequest GLX error on Ubuntu system
I'm using XLaunch Windows X server on my Win10 box to reach the Ubuntu 18 box with ssh -Y. The computer is remote and inaccessible. No keyboard and screen attached. lshw dump below. Does the video ...
1
vote
1
answer
2k
views
How to create a "core" OpenGL context with GLX?
I want to create a OpenGL context using GLX with "core" profile.
For comparison's sake, QOpenGLContext can be created with QGLFormat::CoreProfile.
I have found these instructions: Creating a ...
1
vote
1
answer
10k
views
GLX Context Creation Error: GLXBadFBConfig
I used glXCreateContext to create the contexts, but the function is deprecated and always results in an OpenGL Version 3.0, where I would need at least 4. Now, if I have understood it right, ...
0
votes
1
answer
204
views
Run mlagents_envs UnityEnvironment from remote ssh login
I have a script in which I build a mlagents_envs.environments.UnityEnvironment that successfully launches and works when I run the script from terminal sessions started on my ubuntu machine (that has ...
2
votes
1
answer
175
views
Compositor is blending OpenGl even when fragments alpha's are 1.0
The following code (a bare minimal example) produces a triangle on top of a plain color screen. The triangle and the screen colors have alpha values of 1.0, but still when the program is run with ...
0
votes
0
answers
858
views
How to upgrade opengl to 3.3 in vmware
Here is my glxinfo showing:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 10.0.1, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.1.7
OpenGL core ...
5
votes
1
answer
898
views
How to link against libGL on OSX using cmake?
I'm trying to compile camera_calibration on OSX 10.11 and after a few hurdles with a few X11 related dependencies I find myself still stuck with a few linking errors:
Undefined symbols for ...
2
votes
1
answer
5k
views
In C, how do I install GL/glx.h , GL/gl.h and GL/glu.h on Mac OS
I have some code which includes the headers GL/glx.h , GL/gl.h and GL/glu.h . I do not even know what these are, and Google is not a lot of help because there is so much noise in the search results. ...
4
votes
1
answer
8k
views
Having trouble using X11 forwarding with GLX
Covid has me working remotely, and I'm pretty stuck here.
I've had no problem using X11 forwarding for UIs and even for 3D OpenSceneGraph visualizations, but a new application I need to run gives the ...
5
votes
0
answers
3k
views
Problems running openGL in a container
I am trying to containerize a QT-based GUI application (specifically, ITK-SNAP) with X11 forwarding. When I build an image (let's call it itk-snap:3.8) with the following Dockerfile
# 16.04 because ...
0
votes
1
answer
428
views
Does glx and xrandr version belong to client \'s hardware on remote desktop environment?
I am in an environment where computer use is ristricted. So I rented a computer on the internet(Like Aamazon EC2) to bypass restriction, develop software.
I tried
Install Ubuntu 18.04 LTS 64bit
...
4
votes
1
answer
603
views
Is there a better/more efficient way to capture composite X windows in Linux?
As per subject I have the following pseudo-code to setup window capture in X (Linux):
xdisplay = XOpenDisplay(NULL);
win_capture = ...find the window to capture...
XCompositeRedirectWindow(xdisplay, ...
1
vote
1
answer
1k
views
Xlib's `Window` vs. GLX's `GLXWindow` confusion
I'm looking through all sorts of example codes for OpenGL context creation with GLX and I'm confused about the two types of window objects: Window used by Xlib and GLXWindow used by GLX, because in ...
0
votes
1
answer
74
views
glClear before XMapWindow (prevent undefined graphical buffer)
I'm struggling to handle the case where upon XMapWindow with glX, the buffer is undefined and as such the glx buffer will show undefined data before the first glXSwapBuffers is drawn.
I vaguely ...
1
vote
1
answer
710
views
Get XVisualInfo for Vulkan
For OpenGL with Xlib, in order to create a window, we can get the appropriate XVisualInfo from GLX and pass it to XCreateWindow. However, if I want to use Vulkan with Xlib, how do I get the proper ...
1
vote
1
answer
2k
views
How to detect that Indirect GLX is needed but disabled?
For a few years now, indirect GLX (IGLX) has been disabled by default in xorg and other X Servers. I'm writing an application that will use OpenGL if available, but can fall back to other graphics if ...
1
vote
1
answer
1k
views
What could help initialising GLX to make spyder launch on server?
Background
I'm stuck at opening spyder on a remote Linux server which I access via x2Go from windows 10 via a secured connection from my university .I'm not familiar with Linux but my colleague set ...
0
votes
0
answers
234
views
How to change current window for openGL drawing (linux & GLX)
I try to make multi-window app for linux. I tried to make like in code below, but in windows it's show only black screen. What could it be?
struct argList{
Display *dpy;
...
0
votes
2
answers
3k
views
fatal error: GL/glx.h: No such file or directory libgl1-mesa-dev already installed
I'm trying to compile skia to compile aseprite on Ubuntu 19.10, I keep getting the error
c++ -MMD -MF obj/src/gpu/gl/glx/gpu.GrGLMakeNativeInterface_glx.o.d -DNDEBUG -DSK_SAMPLES_FOR_X -...
0
votes
0
answers
2k
views
X Error of failed request: BadMatch on X_ShmPutImage | Major opcode 130 | Minor opcode 3
Since my last system upgrade on Gentoo, I'm not able to run some code of mine: window_management.c which was working without any warnings nor errors before the upgrade.
#include <stdio.h>
#...
1
vote
0
answers
325
views
glXGetFBConfigs is causing huge amounts of memory to leak
I have the following call to glXGetFBConfigs:
const GLXFBConfig * fbuf_configs = glXGetFBConfigs (
display, screen_id, &fbuf_config_count
)
Upon inspecting it with valgrind, it produces 137 ...
6
votes
0
answers
1k
views
GLFW fails on Debian (with Python)
I tried to make the question as reproducible as possible. So here is the docker commands:
docker run --name headless_test -ti python:3.6-jessie /bin/bash
And inside the docker execute the following ...
0
votes
1
answer
595
views
X11/GLX window above desktop
I want create opengl application for desktop, but icons and wallpaper are break down.
Window should be under icons:
code for create window:
XSetWindowAttributes swa;
swa.background_pixmap = ...