A
A
AlphaScript2020-12-01 15:45:50
Qt
AlphaScript, 2020-12-01 15:45:50

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.


Screenshot of the program
5fc63878d244f471064918.png


When compiling in Debug mode, the situation is the same, only it displays a window with the following content:
The inferior stopped because it received a signal from the operating system.
Signal name :  SIGSEGV
Signal meaning : Segmentation fault


I set the flag export QT_DEBUG_PLUGINS=1and 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)


After this message, there is a suspicion that it cannot find the accessiblebridge plugin. But even if this is so - I do not know how to fix this problem. There is a possibility that I did not search well, but I did not find any information on my problem on Ubuntu.

I also checked the qtcreator application with the ldd tool - all *.so files are present. Build with Debug, Profile, Release - the result is the same.

I would be very grateful for any advice and help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2020-12-01
@Zifix

Install the version from the official site, distributions are often crookedly assembled.

I
Ighor July, 2020-12-22
@IGHOR

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 question

Ask a Question

731 491 924 answers to any question