Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-197

QFileSystemModel setrootpath segfault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Release 5
    • Other
    • Qt version is 5.12.1
      android armV8a
      AndroidSDK: 26.1.1
      Android NDK: 19.0
      Java8 openjdk
    • Android

    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

       

       

      Attachments

        1. explorer.cpp
          3 kB
        2. explorer.h
          3 kB

        Activity

          People

            Unassigned Unassigned
            jerome_france Jerôme LAVERROUX
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: