Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75034

Native QFileDialog causing crashes after opening/executing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.2
    • Qt 5.12.2, Windows 7 Pro, Visual Studio Community 2017, VS Qt Tools addon 2.3.2
    • Windows

    Description

      When using QFileDialog, the program will crash in 2 minutes since first call of open/exec method. It does not matter if dialog is created on the stack or by calling "new".  

      The crash occurs only on 32-bit architecture in debug mode on Windows 7 Pro. Win10 does not seem to have this issue. Release mode as well as 64-bit are unaffected. Program won't crash if we set dialog option QFileDialog:: DontUseNativeDialog. 

      I suspected some background service screwing things up, until release mode worked fine. Now I have no suspects as why would this happen. 

      All I can offer is the minimalistic code I was able to reproduce the error with. Also it only happens from inside the visual studio. I tried to deploy the debug version so it is standalone and so far I have not encountered any crash.

       

      stack overflow link: https://stackoverflow.com/questions/55569734/after-using-qfiledialog-program-crashes-after-few-seconds

       

      EDIT: Program crashes even when compiling in Release mode, however it does not crash when deployed. It has to be something with visual studio.

      Attachments

        1. vs error (qt not built).png
          vs error (qt not built).png
          682 kB
        2. MainWindow.ui
          2 kB
        3. MainWindow.h
          0.3 kB
        4. MainWindow.cpp
          0.3 kB

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ligazetom Juraj Krasnansky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: