Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[QFileSystem::setRootPath] GCError Exception Win32 VS2008 Qt 4.7.1



  • Hi!

    I encounter an exception using QFileSystem::setRootPath (only under Win32, Qt 4.7.1 or Qt 4.7.2 , VC9 or VC10)


    10288 17:38:01.806 ShipAssertNoUI '.sl5' (0x2e736c35)
    10288 17:38:01.807 Throwing exception: Unspecified error (.sl5)
    Microsoft C++ exception: GCError at memory location 0x002fe268..

    Code sample is:

    @class LabWindowTest : public QMainWindow
    {
    public:
    LabWindowTest() {}
    ~LabWindowTest() {}

    bool Init() { m_testModel.setRootPath(QDir::currentPath()); return true; }

    QFileSystemModel m_testModel;
    };

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);

    LabWindowTest window;
    if (window.Init() == false)
    { return 0; }
    window.show();

    return app.exec();
    }@

    And the stack:
    KernelBase.dll!763bc41f()
    [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
    KernelBase.dll!763bc41f()
    shlwapi.dll!7631ba13()
    shlwapi.dll!7631ba24()
    shell32.dll!764a359e()
    shell32.dll!7651bedb()
    shlwapi.dll!7631c514()

    msvcr90d.dll!_unlock(int locknum=4) Line 376 C
    msvcr90d.dll!_heap_alloc_dbg_impl(unsigned int nSize=174, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0, int * errno_tmp=0x002fed70) Line 500 + 0x7 bytes C++
    msvcr90d.dll!_heap_alloc_dbg_impl(unsigned int nSize=174, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0, int * errno_tmp=0x002fed70) Line 497 + 0xc bytes C++
    msvcr90d.dll!_nh_malloc_dbg_impl(unsigned int nSize=174, int nhFlag=0, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0, int * errno_tmp=0x002fed70) Line 239 + 0x19 bytes C++
    msvcr90d.dll!_nh_malloc_dbg(unsigned int nSize=174, int nhFlag=0, int nBlockUse=1, const char * szFileName=0x00000000, int nLine=0) Line 296 + 0x1d bytes C++
    msvcr90d.dll!malloc(unsigned int nSize=10762792) Line 56 + 0x15 bytes C++
    002fedbc()
    QtGuid4.dll!QFileIconProviderPrivate::getWinIcon(const QFileInfo & fileInfo={...}) Line 263 + 0x79 bytes C++
    QtGuid4.dll!QFileIconProvider::icon(const QFileInfo & info={...}) Line 420 + 0x10 bytes C++
    QtGuid4.dll!QFileInfoGatherer::getInfo(const QFileInfo & fileInfo={...}) Line 233 + 0x1d bytes C++
    QtGuid4.dll!QFileSystemModelPrivate::node(const QString & path={...}, bool fetch=true) Line 450 + 0x19 bytes C++
    QtGuid4.dll!QFileSystemModelPrivate::index(const QString & path={...}) Line 233 + 0x1e bytes C++
    QtGuid4.dll!QFileSystemModel::setRootPath(const QString & newPath={...}) Line 1416 + 0x36 bytes C++
    TestQFileSystem.exe!LabWindowTest::Init() Line 15 + 0x4e bytes C++
    TestQFileSystem.exe!main(int argc=1, char * * argv=0x00606d80) Line 27 + 0x8 bytes C++
    TestQFileSystem.exe!__tmainCRTStartup() Line 582 + 0x19 bytes C
    TestQFileSystem.exe!mainCRTStartup() Line 399 C
    kernel32.dll!754533aa()
    ntdll.dll!77509ef2()
    ntdll.dll!77509ec5()

    Thanks for any help around this!
    Mat



  • Anyone tried it?



  • I have the same, but with Qt 4.8.4, MSVC2010. Have you found a solution yet?



  • Nope! Sorry. Any Qt guy to test it?



  • I have the same, but with Qt 4.8.4 (64bit) and MinGW, nevertheless my project run's flawless.



  • I am experiencing this issue with QT 5.6 over Windows7. Could be related to a Symantec "anti"-virus?
    VisualStudio 2015.


Log in to reply