PDA

View Full Version : QWebEngineView crashes immediately especially after scrolling - Qt5.8



script22
1st April 2017, 14:42
I'm trying out a simple QWebEngineView example but it keeps crashing and I have no idea why.

Here's the code in main.cpp


#include <QApplication>
#include <QWebEngineView>

int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDp iScaling);
QApplication app(argc, argv);

QWebEngineView view;
view.resize(1024, 750);
view.load(QUrl("http://www.qt.io"));
view.show();

return app.exec();
}

and here's the .pro file


TEMPLATE = app

QT += webenginewidgets

SOURCES += main.cpp

target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/minimal
INSTALLS += target

and this is the error message I get


> nouveau: kernel rejected pushbuf: No such file or directory nouveau:
> ch8: krec 0 pushes 0 bufs 2 relocs 0 nouveau: ch8: buf 00000000
> 00000002 00000004 00000004 00000000 nouveau: ch8: buf 00000001
> 00000006 00000004 00000000 00000004 nouveau: kernel rejected pushbuf:
> No such file or directory nouveau: ch8: krec 0 pushes 0 bufs 2 relocs
> 0 nouveau: ch8: buf 00000000 00000002 00000004 00000004 00000000
> nouveau: ch8: buf 00000001 00000006 00000004 00000000 00000004
> nouveau: kernel rejected pushbuf: No such file or directory nouveau:
> ch8: krec 0 pushes 0 bufs 2 relocs 0 nouveau: ch8: buf 00000000
> 00000002 00000004 00000004 00000000 nouveau: ch8: buf 00000001
> 00000006 00000004 00000000 00000004 nouveau: kernel rejected pushbuf:
> No such file or directory nouveau: ch8: krec 0 pushes 0 bufs 1 relocs
> 0 nouveau: ch8: buf 00000000 00000002 00000004 00000004 00000000 The
> program has unexpectedly finished.

I'm running Qt 5.8 on a korora 25 [based on fedora] machine using g++