Lockup when resizing QGLWidget
-
OS: Linux x86-64, KDE 4.11.2
Hardware: AMD Phenon 2, Radeon HD 7870 (fglrx driver)
Qt Versions: 4.8.4, 5.0.2, 5.1.1I'm experiencing a lockup when resizing a QGLWidget on linux with AMD fglrx video drivers.
If I run the attached code, grab a window corner and move the mouse back and forth then in short order I'll always lock up the system (display not updating, mouse and keyboard not appearing to do anything, can still perform a proper shutdown with power button though).
It will happen with simpler code, just resizing a vanilla QGLWidget, but it seems to take a bit longer for the problem to trigger.
Doesn't appear to happen with open source radeon drivers.
Anyone have any ideas what'd cause this?
@#include <QtWidgets/QApplication>
#include <QtOpenGL/QGLWidget>class MyGLWidget : public QGLWidget {
public:
MyGLWidget(QWidget *parent=0) : QGLWidget(parent) {}
protected:
void paintEvent(QPaintEvent *event) {
QPainter p;
p.begin(this);
p.fillRect(this->rect(), QColor(255, 0, 0));
p.end();
}
};int main(int argc, char *argv[])
{
QApplication a(argc, argv);MyGLWidget widget; widget.show(); return a.exec();
}
@ -
Hi and welcome to devnet,
Since it might be a driver/library interaction issue, I think you should ask this question on the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)