Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT 5.11.3 with MSVC 2017 issue

QT 5.11.3 with MSVC 2017 issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ppetitpr
    wrote on last edited by
    #1

    Hi all,

    Maybe this is a MSVC issue and not a Qt issue. I upgraded my (rather big) project from using Qt 5.7 / MSVC 2013 to Qt 5.11.3. As this version does not provide any MSVC 2013 binaries, I upgraded to MSVC 2017. The project compiles fine after minor changes (missing includes) but crashes at some point, likely in one of Qt methods (processEvents). The debugging is however extremely difficult because everytime the application crashes the Visual Studio debugger keeps showing me a page that says

    Frame not in module
    The current stack frame was not found in a loaded module. Source cannot be shown for this location.
    

    along with another popup window that says

    Exception thrown at 0x0000014F2EC9FBA8 in myapp.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
    

    which seems to indicate a segmentation fault / bad pointer.
    The Visual Studio debugger is stuck in this "Frame not in module" page and is unable to show me any call stack.
    The same code was working with Qt 5.7 / MSVC 2013, and still works fine on Linux (gcc) with 5.11.3.

    Has anyone experienced this kind or issue from Visual Studio?
    I found some related issues on the internet (people having the same "Frame not in module" page) but none of the provided solutions worked for me.

    Thanks.

    D kshegunovK 2 Replies Last reply
    0
    • P ppetitpr

      Hi all,

      Maybe this is a MSVC issue and not a Qt issue. I upgraded my (rather big) project from using Qt 5.7 / MSVC 2013 to Qt 5.11.3. As this version does not provide any MSVC 2013 binaries, I upgraded to MSVC 2017. The project compiles fine after minor changes (missing includes) but crashes at some point, likely in one of Qt methods (processEvents). The debugging is however extremely difficult because everytime the application crashes the Visual Studio debugger keeps showing me a page that says

      Frame not in module
      The current stack frame was not found in a loaded module. Source cannot be shown for this location.
      

      along with another popup window that says

      Exception thrown at 0x0000014F2EC9FBA8 in myapp.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
      

      which seems to indicate a segmentation fault / bad pointer.
      The Visual Studio debugger is stuck in this "Frame not in module" page and is unable to show me any call stack.
      The same code was working with Qt 5.7 / MSVC 2013, and still works fine on Linux (gcc) with 5.11.3.

      Has anyone experienced this kind or issue from Visual Studio?
      I found some related issues on the internet (people having the same "Frame not in module" page) but none of the provided solutions worked for me.

      Thanks.

      D Offline
      D Offline
      Domenico
      wrote on last edited by Domenico
      #2

      @ppetitpr

      Hi,

      is your application program using some libraries in addition to those Qt libraries? type #include "afxwin.h", #include "stdafx.h", etc.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        ppetitpr
        wrote on last edited by ppetitpr
        #3

        Hi,
        @Domenico

        I also use Boost, but I don't think it is linked to the error since the crash does not appear on Boost-related code. I will check it though, because I had to change the version too.

        As for the "stdafx" and so on, I don't use precompiled headers and these includes are not found in my project nor in the dependencies.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You should try a simple Qt example to show if this crashes also.
          What exact MSVC2017 version do you use? 64Bit? Do you use a self-build Qt?

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • P ppetitpr

            Hi all,

            Maybe this is a MSVC issue and not a Qt issue. I upgraded my (rather big) project from using Qt 5.7 / MSVC 2013 to Qt 5.11.3. As this version does not provide any MSVC 2013 binaries, I upgraded to MSVC 2017. The project compiles fine after minor changes (missing includes) but crashes at some point, likely in one of Qt methods (processEvents). The debugging is however extremely difficult because everytime the application crashes the Visual Studio debugger keeps showing me a page that says

            Frame not in module
            The current stack frame was not found in a loaded module. Source cannot be shown for this location.
            

            along with another popup window that says

            Exception thrown at 0x0000014F2EC9FBA8 in myapp.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
            

            which seems to indicate a segmentation fault / bad pointer.
            The Visual Studio debugger is stuck in this "Frame not in module" page and is unable to show me any call stack.
            The same code was working with Qt 5.7 / MSVC 2013, and still works fine on Linux (gcc) with 5.11.3.

            Has anyone experienced this kind or issue from Visual Studio?
            I found some related issues on the internet (people having the same "Frame not in module" page) but none of the provided solutions worked for me.

            Thanks.

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by
            #5

            @ppetitpr said in QT 5.11.3 with MSVC 2017 issue:

            The current stack frame was not found in a loaded module. Source cannot be shown for this location.

            This means that the debugger can't find the relevant debug information it wants to find to show you the stack. Suggestion: build Qt with debug information and that should go away and you should be able to get a meaningful stack trace.

            Read and abide by the Qt Code of Conduct

            1 Reply Last reply
            0
            • P Offline
              P Offline
              ppetitpr
              wrote on last edited by ppetitpr
              #6

              Hi,
              @Christian-Ehrlicher I use MSVC 2017 64bit, with prebuilt Qt binaries downloaded from the Qt website (64bit version too of course).
              As for a simple example, I will try to do that but it involves a lot of code (with module hot loading).
              @kshegunov Does that work with the PDB files that we can download fromthe Qt website? Or do I have to rebuilt Qt myself?

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved