The application is running in the background but the screen does not appear
-
In windows 10 operating system, I was making an application on the old computer and running the build file of the application on another device and there was no problem. But I installed windows 11 on my new computer and I built the same application with the same version (qt 5.11) and when I try to run it on another device, it does not give an error, but the screen does not appear. It just works in the background.
I tried to downgrade (windows 10) because the reason for this situation might be windows 11 and the same thing happened again. Since I don't get an error, I can't find where the problem originates. All the files in the old build file and the new build file are the same. I didn't see anything different, but it doesn't work. How to determine where the error is originating from.
I can't share bits of code because the app is too big general pattern of the app [https://github.com/mavlink/qgroundcontrol](
I can't share bits of code because the app is too big general pattern of the app https://github.com/mavlink/qgroundcontrol) -
In windows 10 operating system, I was making an application on the old computer and running the build file of the application on another device and there was no problem. But I installed windows 11 on my new computer and I built the same application with the same version (qt 5.11) and when I try to run it on another device, it does not give an error, but the screen does not appear. It just works in the background.
I tried to downgrade (windows 10) because the reason for this situation might be windows 11 and the same thing happened again. Since I don't get an error, I can't find where the problem originates. All the files in the old build file and the new build file are the same. I didn't see anything different, but it doesn't work. How to determine where the error is originating from.
I can't share bits of code because the app is too big general pattern of the app [https://github.com/mavlink/qgroundcontrol](
I can't share bits of code because the app is too big general pattern of the app https://github.com/mavlink/qgroundcontrol)@serkan_tr said in The application is running in the background but the screen does not appear:
it does not give an error
Even if you start it from a terminal?
Did you deploy your app properly? See https://doc.qt.io/qt-6/windows-deployment.html -
@serkan_tr said in The application is running in the background but the screen does not appear:
it does not give an error
Even if you start it from a terminal?
Did you deploy your app properly? See https://doc.qt.io/qt-6/windows-deployment.html@jsulm I tried these methods meanwhile on the host (QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.841: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.841: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GLib-GObject-WARNING **: 09:23:21.842: value "-1" of type 'gint' is invalid or out of range for property 'port' of type 'gint'
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GLib-GObject-WARNING **: 09:23:21.842: value "-1" of type 'gint' is invalid or out of range for property 'port' of type 'gint'
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed error
-
In windows 10 operating system, I was making an application on the old computer and running the build file of the application on another device and there was no problem. But I installed windows 11 on my new computer and I built the same application with the same version (qt 5.11) and when I try to run it on another device, it does not give an error, but the screen does not appear. It just works in the background.
I tried to downgrade (windows 10) because the reason for this situation might be windows 11 and the same thing happened again. Since I don't get an error, I can't find where the problem originates. All the files in the old build file and the new build file are the same. I didn't see anything different, but it doesn't work. How to determine where the error is originating from.
I can't share bits of code because the app is too big general pattern of the app [https://github.com/mavlink/qgroundcontrol](
I can't share bits of code because the app is too big general pattern of the app https://github.com/mavlink/qgroundcontrol)@serkan_tr have you tried moving it to 0,0 ? sometimes when you for example store application coordinates, or do some positions yourself, one can end up with the app being completely offscreen
You're using QML, it's possible something is not loading properly, sometimes those problems come without warnings/errors, for example when you use loaders
reduce/comment out more and more from your main qml file until you see a window and work backwards from there
-
@serkan_tr have you tried moving it to 0,0 ? sometimes when you for example store application coordinates, or do some positions yourself, one can end up with the app being completely offscreen
You're using QML, it's possible something is not loading properly, sometimes those problems come without warnings/errors, for example when you use loaders
reduce/comment out more and more from your main qml file until you see a window and work backwards from there
@J-Hilk @serkan_tr Not long ago I wasted quite a bit of time on something very similar.
The size of the base mask was set based on the background image loaded from a file.
Only the file wasn't found, so the image and mask were set to zero size. -
@jsulm I tried these methods meanwhile on the host (QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.841: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.841: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GLib-GObject-WARNING **: 09:23:21.842: value "-1" of type 'gint' is invalid or out of range for property 'port' of type 'gint'
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GLib-GObject-WARNING **: 09:23:21.842: value "-1" of type 'gint' is invalid or out of range for property 'port' of type 'gint'
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed
(QGroundControl.exe:14056): GStreamer-CRITICAL **: 09:23:21.842: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed error
@serkan_tr Difference between working and new build file. New build (not working) has redundant .qtc_clangd and .qtc files.
-
@J-Hilk @serkan_tr Not long ago I wasted quite a bit of time on something very similar.
The size of the base mask was set based on the background image loaded from a file.
Only the file wasn't found, so the image and mask were set to zero size. -
@serkan_tr Difference between working and new build file. New build (not working) has redundant .qtc_clangd and .qtc files.
@serkan_tr Is there any possibility that the error is these two files because the only difference is these two files. And the point I don't understand is why these files are not created on my old computer but on my new computer.
-
@serkan_tr It is a hypothesis and possibility.
I solved it by using the debugger to see the object values or by using qDebug to print the various settings.
-
@serkan_tr It is a hypothesis and possibility.
I solved it by using the debugger to see the object values or by using qDebug to print the various settings.
@giusdbg my problem is i have a project and i am compiling this project on computer A and run the build file on both computer A and computer B it works fine. But when I send what was compiled on computer C to computer B, it does not work on computer B, it works in C, this is the general problem.
The qt version of computer A and C vs everything is the same -
@serkan_tr It is a hypothesis and possibility.
I solved it by using the debugger to see the object values or by using qDebug to print the various settings.
@giusdbg It works on the computer I built too. When I run a computer that does not have qt installed, the screen does not appear, it seems to be running in the background.
Note: There are two computers. And I build the same files with the same versions on these computers. The result of the compilation on the 1st computer works the same on all computers, but the compilation from the 2nd computer only works on the computer I compiled -
@giusdbg It works on the computer I built too. When I run a computer that does not have qt installed, the screen does not appear, it seems to be running in the background.
Note: There are two computers. And I build the same files with the same versions on these computers. The result of the compilation on the 1st computer works the same on all computers, but the compilation from the 2nd computer only works on the computer I compiled@serkan_tr said in The application is running in the background but the screen does not appear:
When I run a computer that does not have qt installed, the screen does not appear
That's why I asked whether you properly deployed your app and gave you a link to documentation.
-
@serkan_tr said in The application is running in the background but the screen does not appear:
When I run a computer that does not have qt installed, the screen does not appear
That's why I asked whether you properly deployed your app and gave you a link to documentation.
@jsulm I did the same page as you specified, but the result is the same, I don't get an error. When I run the application, it seems to be running in the background, but the screen does not appear. It doesn't give an error when run from terminal.
In addition, I start the compilation process on two computers at the same time and I am trying to open the resulting build files on a different computer. The build file on the first computer does not appear on the screen, the second build file appears
qt creator 9.0.1 is installed on the old computer and 10.0.1 is installed on the new computer. I version 10.0.1 seems to break something 9.0.1 works directly on other devices without doing anything build file
-
@jsulm I did the same page as you specified, but the result is the same, I don't get an error. When I run the application, it seems to be running in the background, but the screen does not appear. It doesn't give an error when run from terminal.
In addition, I start the compilation process on two computers at the same time and I am trying to open the resulting build files on a different computer. The build file on the first computer does not appear on the screen, the second build file appears
qt creator 9.0.1 is installed on the old computer and 10.0.1 is installed on the new computer. I version 10.0.1 seems to break something 9.0.1 works directly on other devices without doing anything build file
@serkan_tr
QT creator 9.0.1 is an old version how can I revert to this version -
@jsulm I did the same page as you specified, but the result is the same, I don't get an error. When I run the application, it seems to be running in the background, but the screen does not appear. It doesn't give an error when run from terminal.
In addition, I start the compilation process on two computers at the same time and I am trying to open the resulting build files on a different computer. The build file on the first computer does not appear on the screen, the second build file appears
qt creator 9.0.1 is installed on the old computer and 10.0.1 is installed on the new computer. I version 10.0.1 seems to break something 9.0.1 works directly on other devices without doing anything build file
@serkan_tr said in The application is running in the background but the screen does not appear:
I version 10.0.1 seems to break something 9.0.1
QtCreator version should not make any difference. It's just an IDE. Important is Qt version.
"The build file on the first computer does not appear on the screen, the second build file appears" - I don't know what this means. Where on the screen do you expect it to appear? In what application? And what exactly do you mean by "build file"? The executable or the CMakeLists.txt/*.pro file?
-
@serkan_tr said in The application is running in the background but the screen does not appear:
I version 10.0.1 seems to break something 9.0.1
QtCreator version should not make any difference. It's just an IDE. Important is Qt version.
"The build file on the first computer does not appear on the screen, the second build file appears" - I don't know what this means. Where on the screen do you expect it to appear? In what application? And what exactly do you mean by "build file"? The executable or the CMakeLists.txt/*.pro file?
@jsulm You're right, I should have explained in more detail. I downloaded the QGroundControl app and made changes to it. (state of the application)
I made a lot of changes on the application and the versions I used I used 5.15 for QT.
I was able to compile the project I made with windows 10 and Qt 5.15(QT creator 9.0.1 version) installed on my old computer and run the executable file on every computer. After a long time I compiled the same codes on a new computer (windows 10 and QT 5.15 (qt creator 10.0.1) it works fine when I run the executable. but when I throw this executable file to another computer, the application runs in the background but the interface part does not open.
The settings and versions I made on the old computer are all the same, the only difference is that I was using qt creator 9.0.1 on the old computer and I was using qt creator 10.0.1 on the new computer. -
@jsulm You're right, I should have explained in more detail. I downloaded the QGroundControl app and made changes to it. (state of the application)
I made a lot of changes on the application and the versions I used I used 5.15 for QT.
I was able to compile the project I made with windows 10 and Qt 5.15(QT creator 9.0.1 version) installed on my old computer and run the executable file on every computer. After a long time I compiled the same codes on a new computer (windows 10 and QT 5.15 (qt creator 10.0.1) it works fine when I run the executable. but when I throw this executable file to another computer, the application runs in the background but the interface part does not open.
The settings and versions I made on the old computer are all the same, the only difference is that I was using qt creator 9.0.1 on the old computer and I was using qt creator 10.0.1 on the new computer.@serkan_tr You still do not say whether you deployed your app or not. Simply copying the executable to a computer without Qt will not work...
-
@jsulm You're right, I should have explained in more detail. I downloaded the QGroundControl app and made changes to it. (state of the application)
I made a lot of changes on the application and the versions I used I used 5.15 for QT.
I was able to compile the project I made with windows 10 and Qt 5.15(QT creator 9.0.1 version) installed on my old computer and run the executable file on every computer. After a long time I compiled the same codes on a new computer (windows 10 and QT 5.15 (qt creator 10.0.1) it works fine when I run the executable. but when I throw this executable file to another computer, the application runs in the background but the interface part does not open.
The settings and versions I made on the old computer are all the same, the only difference is that I was using qt creator 9.0.1 on the old computer and I was using qt creator 10.0.1 on the new computer.@serkan_tr @jsulm is probably on the correct path.
can you post the command you used for the windeployqt program ?
and/or can you post a screenshot of the folder containing your "deployed" executable ?
-
@serkan_tr @jsulm is probably on the correct path.
can you post the command you used for the windeployqt program ?
and/or can you post a screenshot of the folder containing your "deployed" executable ?
-
@serkan_tr You still do not say whether you deployed your app or not. Simply copying the executable to a computer without Qt will not work...