Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1477

QSystemStorageInfo.availableDiskSpace() not working in Simulator & Windows, crashing on Symbian in thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 1.2.x
    • 1.1.1, 1.1.2
    • System Information
    • Qt SDK 1.1 internal Pre-RC1 from April 1st, 2011
      Symbian: Qt 4.7.3, Qt Mobility 1.1.2
      Desktop (Windows 7 32bit): Qt 4.7.3
    • a1be8f1d113e30c45452534a726a9ed1a4a8ea62 a469c779be9d1d1f58859904b52230f8217cf911

    Description

      The relevant code that is executed on various platforms and both from the main thread and an extra thread:

      QSystemStorageInfo info;
      qlonglong size = info.availableDiskSpace("c");
      qDebug() << "free:" << size;

      Simulator:
      error at runtime:
      Object::connect: No such signal QSystemStorageInfoPrivate::logicalDriveChanged(bool,const QString &) in qsystemstorageinfo.cpp:87

      Symbian device:
      Works as expected if executed from the main thread. When executing the call from another thread - crash:
      Process 1694, thread 1697 stopped at 0x8043e445: Thread 0x6a1 has panicked. Category: KERN-EXEC; Reason: 0
      (This panic is raised when the Kernel cannot find an object in the object index for the current process or current thread using the specified object index number (the raw handle number). )

      On Windows, QSystemStorageInfo is unfortunately not present, as also mentioned in a comment in the closed issue http://bugreports.qt.nokia.com/browse/QTBUG-14245

      Attached a sample to reproduce, with two buttons in the main UI. One calls the code segment above in the main thread, the second button creates a thread (task.cpp) and calls the code from there.

      Attachments

        Issue Links

          Activity

            People

              msuonio Mikko Suonio
              ajakl Andreas Jakl (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: