Answer the question
In order to leave comments, you need to log in
Why does Qt Quick Application - Empty crash?
Good day. I think it's important to clarify before asking that I'm running Ubuntu 20.04.
Installed Qt (using the command sudo apt-get install qt5-default qtcreator
). And immediately I decided to check the performance, I created the Qt Quick Application - Empty project. And without changing anything, compiled. The project starts and the form works for a few seconds (Photo below), and then crashes with the following errors (Normal compilation mode):
QML debugging is enabled. Only use this in a safe environment.
The program has unexpectedly finished.
The process was ended forcefully.
.../temp/build-temp-Desktop-Debug/temp crashed.
The inferior stopped because it received a signal from the operating system.
Signal name : SIGSEGV
Signal meaning : Segmentation fault
export QT_DEBUG_PLUGINS=1
and ran the program in the console and got the following errors:Got keys from plugin meta data ("xcb_glx")
QFactoryLoader::QFactoryLoader() checking directory path ".../temp/build-temp-Desktop-Debug/xcbglintegrations" ...
loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so"
QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path ".../temp/build-temp-Desktop-Debug/accessiblebridge" ...
Segmentation fault (core dumped)
Answer the question
In order to leave comments, you need to log in
Install the version from the official site, distributions are often crookedly assembled.
If you check the dependencies of your binary with ldd, the plugins will not be visible there.
Dependency of plugins through ldd should be checked in the Qt folder /plugins/platforms/libqxcb.so
And install them through apt.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question