Opened 13 years ago
Closed 8 years ago
#9198 closed defect (obsolete)
Standard QT QPainter class doesn't work with GL in linux guests! -> obsolete
Reported by: | d.jurin | Owned by: | |
---|---|---|---|
Component: | 3D support | Version: | VirtualBox 4.0.10 |
Keywords: | QPainterGLIssue | Cc: | |
Guest type: | Linux | Host type: | other |
Description (last modified by )
Standard QT QPainter class doesn't work with GL!
For example this code leads to crash: void GLWidget::paintEvent(QPaintEvent *event){
QPainter painter(this);
}
Error Message: Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile QGLShaderProgram: shader programs are not supported Segmentation fault
You can meet this problem also with the standard QT openGL Examples:
/usr/lib64/qt4/examples/opengl/2dpainting (http://doc.qt.nokia.com/latest/opengl-2dpainting.html) /usr/lib64/qt4/examples/opengl/overpainting (http://doc.qt.nokia.com/latest/opengl-overpainting.html)
and some others that use QPainter class with GL context.
So I am using openSuse x64 guests with latest VB 4.0.10 and latest GA under Windows 7 x86 host. I have tested this problem on openSuse 11.3, 11.4, 12.1ms2 guests with different QT versions 4.6, 4.7, 4.8, but without success, the same problem everywhere. But on openSuse x86 11.1 guest with QT 4.3 it partially works! Please note, that the problem does not occur at all on linux hosts, so under any non virtualized openSuse with any QT version QPainter class is working fine with GL.
I am developing QT GL visualization program and I need put some text over my 3d, but I am not able to do it since this issue!
Thanks in advance!
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 11 years ago
Description: | modified (diff) |
---|
So far unable to reproduce the crash, but I see the following in the output after the "setViewport" with "LIBGL_DEBUG=1" set:
libGL error: core dri or dri2 extension not found libGL error: failed to load driver: vboxvideo libGL error: failed to load driver: vboxvideo
So it would bear investigating where that comes from.
comment:3 by , 8 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Summary: | Standard QT QPainter class doesn't work with GL in linux guests! → Standard QT QPainter class doesn't work with GL in linux guests! -> obsolete |
Please re-open if still relevant with the current version.
I can confirm this bug is still present in VirtualBox 4.1.8 running on Macbook Pro (OS X 10.7.3) with an Intel HD Graphics 3000. The Guest is an Ubuntu 11.10 with Guest Additions 3d graphics enabled:
The following python code is sufficient to trigger the bug (Qt version 4.7.3, PyQt4 version 4.8.5):
This makes VirtualBox unusable for our application, as OpenGL support is a requirement in the Linux build.