Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Release 5
-
Qt version is 5.12.1
android armV8a
AndroidSDK: 26.1.1
Android NDK: 19.0
Java8 openjdk
Description
On QfileSystemModel in a cpp file
setRootPath(QDir::homePath()) cause segfault on Android.
on android QDir::homePath() return :
"/data/user/0/org.qtproject.example.ERP/files"
This code is working on Windows and Linux platform.
EDIT: this code works on Lubuntu 16.04, but crash on Ubuntu 18.10. So this bug affect also Ubuntu 18.10
Message on Qt Creator is :
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 27772 (qtMainLoopThrea)
EDIT: After some tests, the problem was on my main.cpp( it's QML projet):
I was using QGuiApplication app(argc, argv);
you have to use QApplication app(argc, argv);
SOLVED sorry