My app keeps crashing and i've never used the Debugger befor!
-
Hi
It's hard to guess at, but maybe the rt is null and hence it crashes asking for ->dIn the call stack, it seems to be inside Qt
but if you scroll to the button some of your code should be shown

Such crashes normally comes from openGl issues.
Can you run any of the QML or openGl examples that comes with Creator ?
-
Hi
It's hard to guess at, but maybe the rt is null and hence it crashes asking for ->dIn the call stack, it seems to be inside Qt
but if you scroll to the button some of your code should be shown

Such crashes normally comes from openGl issues.
Can you run any of the QML or openGl examples that comes with Creator ?
-
@mrjj
but if you scroll to the button some of your code should be shown
im confused here :P button?@Kris-Revi
sorry fat fingers. :)
To the bottom. The scrollbar can be dragged more down to see the start of the call stack. -
@Kris-Revi
Yes but it didnt show anything interesting.
Do you call FullScreen any where ?
seems to start there.Also, does other examples work ?
Could be openGL setup that is messed up. -
@Kris-Revi
Yes but it didnt show anything interesting.
Do you call FullScreen any where ?
seems to start there.Also, does other examples work ?
Could be openGL setup that is messed up.@mrjj weird hmmm so i found the bit of code that was the cause!
const QScreen* screen = qApp->primaryScreen(); w.setGeometry( QRect(QPoint(0,0), screen->geometry().size()) ); w.setWindowFlag(Qt::MaximizeUsingFullscreenGeometryHint,true); w.showFullScreen();but when i now run my App it's loading and "running" but no window comes up :S
-
@mrjj weird hmmm so i found the bit of code that was the cause!
const QScreen* screen = qApp->primaryScreen(); w.setGeometry( QRect(QPoint(0,0), screen->geometry().size()) ); w.setWindowFlag(Qt::MaximizeUsingFullscreenGeometryHint,true); w.showFullScreen();but when i now run my App it's loading and "running" but no window comes up :S
@Kris-Revi
Did you remove the fullscreen or how did you make it run ?Try with
w.show() -
@Kris-Revi
Did you remove the fullscreen or how did you make it run ?Try with
w.show() -
Ok so it is when it tries to show the render surface.
You have to try some of the openGl examples and see.
I guess its your openGL since it seems to crash on showing.
https://doc.qt.io/qt-5/qtopengl-hellogl2-example.html
They are available directly in creator.
-
Ok so it is when it tries to show the render surface.
You have to try some of the openGl examples and see.
I guess its your openGL since it seems to crash on showing.
https://doc.qt.io/qt-5/qtopengl-hellogl2-example.html
They are available directly in creator.
-
Ok so it is when it tries to show the render surface.
You have to try some of the openGl examples and see.
I guess its your openGL since it seems to crash on showing.
https://doc.qt.io/qt-5/qtopengl-hellogl2-example.html
They are available directly in creator.
-
Hi
yes it could very well as normally Desktop is using openGl and mobile some other ES? but
normally it's automatic.This is a Desktop pc windows right ?
Did you compile Qt your self ?
Maybe its a Qt6 thing. try setting it to openGl via the setGraphicsApi as it says and then see.
-
Hi
yes it could very well as normally Desktop is using openGl and mobile some other ES? but
normally it's automatic.This is a Desktop pc windows right ?
Did you compile Qt your self ?
Maybe its a Qt6 thing. try setting it to openGl via the setGraphicsApi as it says and then see.
-
@mrjj yea it's for desktop now :) 6.2.0 but im compiling for both Android and Desktop in same project! and wanted to test the App on the Desktop
Can it be that on startup some other API is set ?
Or you added some defines to .pro so it thinks its Android ? -
Can it be that on startup some other API is set ?
Or you added some defines to .pro so it thinks its Android ? -
Can it be that on startup some other API is set ?
Or you added some defines to .pro so it thinks its Android ?@mrjj question in the pro file can't i do this
win32 { CONFIG(release, debug|release): LIBS += -LC:\QMsgPack\bin -lqmsgpack INCLUDEPATH += C:\QMsgPack\bin DEPENDPATH += C:\QMsgPack\bin } win32 { CONFIG(debug, debug|release): LIBS += -LC:\QMsgPack\bin -lqmsgpack INCLUDEPATH += C:\QMsgPack\bin DEPENDPATH += C:\QMsgPack\bin } unix { contains(ANDROID_TARGET_ARCH,arm64-v8a) { ANDROID_PACKAGE_SOURCE_DIR = \ $$PWD/android ANDROID_EXTRA_LIBS = \ $$PWD/android/libs/libqmsgpack_arm64-v8a.so } LIBS += -L$$PWD/android/libs/ -lqmsgpack_arm64-v8a INCLUDEPATH += $$PWD/android/libs DEPENDPATH += $$PWD/android/libs }? :S
-
@mrjj question in the pro file can't i do this
win32 { CONFIG(release, debug|release): LIBS += -LC:\QMsgPack\bin -lqmsgpack INCLUDEPATH += C:\QMsgPack\bin DEPENDPATH += C:\QMsgPack\bin } win32 { CONFIG(debug, debug|release): LIBS += -LC:\QMsgPack\bin -lqmsgpack INCLUDEPATH += C:\QMsgPack\bin DEPENDPATH += C:\QMsgPack\bin } unix { contains(ANDROID_TARGET_ARCH,arm64-v8a) { ANDROID_PACKAGE_SOURCE_DIR = \ $$PWD/android ANDROID_EXTRA_LIBS = \ $$PWD/android/libs/libqmsgpack_arm64-v8a.so } LIBS += -L$$PWD/android/libs/ -lqmsgpack_arm64-v8a INCLUDEPATH += $$PWD/android/libs DEPENDPATH += $$PWD/android/libs }? :S
@Kris-Revi
Yes that seems perfect. should not interfere with which backend is used.I cant tell either. Did you use any new Qt6 things ?
Could be fun to see if it does the same say in 5.12 -
@Kris-Revi
Yes that seems perfect. should not interfere with which backend is used.I cant tell either. Did you use any new Qt6 things ?
Could be fun to see if it does the same say in 5.12



