i.zavyalov Posted September 28, 2012 Share Posted September 28, 2012 I want to try GLAppQt, it compiles without error, but when I start it, he show me error window with message: GLAppQt::create_context(): glXMakeCurrent(): failed Engine::video_restart(): can't set 1024x768 windowed video mode With Unigine app I have no problem, it's work fine. Uningine log: ~/Downloads/UnigineSDK-source-2012-09-07/source/samples/App/GLAppQt$ ./main.py X Error: BadWindow (invalid Window parameter) 3 Major opcode: 31 (X_GrabKeyboard) Resource id: 0x0 Loading "/home/ziv/Downloads/UnigineSDK-source-2012-09-07/source/samples/App/GLAppQt/../../../../data/demos/sanctuary/unigine.cfg"... Loading "libGL.so.1"... Loading "libopenal.so.1"... Set 1024x768 windowed video mode ------------- 0x8cc9cd8 X Error: BadMatch (invalid parameter attributes) 8 Extension: 135 (Uknown extension) Minor opcode: 5 (Unknown request) Resource id: 0x4a0000d GLAppQt::create_context(): glXMakeCurrent(): failed Engine::video_restart(): can't set 1024x768 windowed video mode Set 1280x720 windowed video mode ------------- 0x8b3ebd0 X Error: BadMatch (invalid parameter attributes) 8 Extension: 135 (Uknown extension) Minor opcode: 5 (Unknown request) Resource id: 0x4a0000d GLAppQt::create_context(): glXMakeCurrent(): failed Unigine fatal error GLAppQt::create_context(): glXMakeCurrent(): failed Engine::video_restart(): can't set 1280x720 windowed video mode Shutdown Thanks. Link to comment
manguste Posted October 4, 2012 Share Posted October 4, 2012 OpenGL cannot be initialized under Qt for some reason. What do you use: Linux distributive Qt version Driver + video card? Link to comment
i.zavyalov Posted October 8, 2012 Author Share Posted October 8, 2012 1. Ubuntu 12.04 2. Qt 4.8.1 3. GeForce GTX 560 Ti, version 295.40 Link to comment
frustum Posted October 22, 2012 Share Posted October 22, 2012 This is a previous implementation of GLAppQt. GLAppQt.zip Link to comment
christophe.meurice Posted May 20, 2013 Share Posted May 20, 2013 Still the same ... Using : - UnigineSDK_source_2013-04-30_linux - Using Qt version 4.8.3 in /usr/lib/i386-linux-gnu - Linux alderaan 3.5.0-27-generic #46-Ubuntu SMP Mon Mar 25 20:00:05 UTC 2013 i686 i686 i686 GNU/Linux - Ubuntu 12.10 - Nvidia binary : 310.40 (GeForce GTX 460M) 16:01:34 Loading "/opt/UnigineSDK_source_2013-04-30_linux/bin/../data/demos/crypt/unigine.cfg"... 16:01:34 Loading "libInterface_x86d.so"... 16:01:34 Loading "libGL.so.1"... 16:01:34 Set 1280x720 windowed video mode 16:01:34 GLAppQt::create_context(): glXMakeCurrent(): failed 16:01:34 Engine::video_restart(): can't set 1280x720 windowed video mode 16:01:41 Set 1280x720 windowed video mode 16:01:41 GLAppQt::create_context(): glXMakeCurrent(): failed 16:01:41 Engine::video_restart(): can't set 1280x720 windowed video mode 16:01:41 Shutdown I've tested GLAppQt.zip but doesn't compile Thanks Link to comment
christophe.meurice Posted May 29, 2013 Share Posted May 29, 2013 No idea ? We need the Qt integration for our project Link to comment
frustum Posted May 30, 2013 Share Posted May 30, 2013 Please try the default Qt OpenGL widget. Link to comment
christophe.meurice Posted May 31, 2013 Share Posted May 31, 2013 Changes made : ---------------------- .h : class AppQt : public QGLWidget, public Unigine::App { .cpp : AppQt::AppQt(QWidget *parent,Qt::WindowFlags flags) : QGLWidget(parent,0,flags) { Console output : ---------------------- christophe@alderaan:/opt/UnigineSDK_source_2013-04-30_linux/bin$ ./main -engine_config ../data/demos/crypt/unigine.cfg Loading "/opt/UnigineSDK_source_2013-04-30_linux/bin/../data/demos/crypt/unigine.cfg"... Loading "libInterface_x86d.so"... Loading "libGL.so.1"... Set 1280x720 windowed video mode X Error: BadMatch (invalid parameter attributes) 8 Extension: 153 (Uknown extension) Minor opcode: 5 (Unknown request) Resource id: 0x4a0000b GLAppQt::create_context(): glXMakeCurrent(): failed Engine::video_restart(): can't set 1280x720 windowed video mode Set 1280x720 windowed video mode X Error: BadMatch (invalid parameter attributes) 8 Extension: 153 (Uknown extension) Minor opcode: 5 (Unknown request) Resource id: 0x4a0000b GLAppQt::create_context(): glXMakeCurrent(): failed Unigine fatal error GLAppQt::create_context(): glXMakeCurrent(): failed Engine::video_restart(): can't set 1280x720 windowed video mode Shutdown Debug : ---------------------- It crash on GLAppQt.cpp on line : if(glXMakeCurrent(display,window,context) == 0) {... Thanks Link to comment
ulf.schroeter Posted May 31, 2013 Share Posted May 31, 2013 Have you tried other resolution, other driver version, other PC with different GPU for testing if the crash might be caused by the driver/hardware ? Link to comment
christophe.meurice Posted June 3, 2013 Share Posted June 3, 2013 Running the same demo (or any other Unigine application) outside of Qt is working very well. Don't think it's hw related ... Link to comment
silent Posted June 4, 2013 Share Posted June 4, 2013 Hi, I've tried to build GLAppQt sample with qt designer 2.7 + QT SDK 4.8.4 and it worked (but I've used Ubuntu 13.04 instead of 12.04). Steps for reproduction: sudo aptitude install libqt4-core libqt4-dev libqt4-gui libqt4-qt3support libqt4-sql qt4-designer qt4-dev-tools qt4-doc qt4-qtconfig sudo apt-get install ccache sudo apt-get install cmake sudo apt-get install qtcreator Launch the qtcreator; Open build settings:Tools -> Options -> Build & Run -> Qt Versions Select the QT 5.0.1 in PATH (System)... Press Browse button near the field qmake location:; Select the qmake-qt4 in opened window (the path should be /usr/bin/qmake-qt4) Press OK button to save the changes; Open the main.pro from <SDK>/samples/App/GLAppQt in qtcreator; Press Configure project button Modify the main.pro file in the unix section to get the following content: unix { DEFINES += _LINUX LIBS += -L$$PWD/../../../../lib/ LIBS += -lX11 LIBS += -lUnigine_x86d LIBS += -lGL } After that press Ctrl+Shift+B to build the application; You will get compiled main in the configured output dir (in my case this is <SDK>/samples/App/build-main-Desktop-Debug directory); Copy main to <SDK>/samples/App/GLAppQt; Replace main.py with the attached file (unzip first); Launch main.py. Thanks! main_py.zip How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
frustum Posted June 4, 2013 Share Posted June 4, 2013 This is a patched version for Linux. There is no problem with context creation. GLAppQt.zip Link to comment
christophe.meurice Posted June 6, 2013 Share Posted June 6, 2013 Fixed !!! An other problem is that the Interface plugin of the crypt demo is crashing (I had to remove it to make the example run with this demo) and a co-worker told me that in windows it's also crashing but not each time. Thanks for the fix Link to comment
Recommended Posts