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. When using opencv, the Qt project crashes
QtWS25 Last Chance

When using opencv, the Qt project crashes

Scheduled Pinned Locked Moved Unsolved General and Desktop
opencvcrash app
6 Posts 2 Posters 1.2k Views
  • 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.
  • M Offline
    M Offline
    md3848
    wrote on 25 Nov 2021, 11:21 last edited by
    #1

    1) .pro file :
    688ed355-a780-4a1b-a590-d1b6f2e10ad1-image.png

    2) Application Output :
    364b835c-a9f5-4a54-810c-ed8dc574f8cc-image.png

    3) Environment Variables :
    d1a19688-638c-4a2a-a6e9-95ecc9f822ce-image.png

    4) Compiler [ MSVC 2017 64bit ] :
    c324d75a-1ac3-478e-95ac-6d6204febc19-image.png

    5) when i press f5 in qt-creator :
    978a0f1d-f08b-48d2-849a-6977127fefca-image.png

    6) Left Panel Codes :

    Module loaded: OpencvAppWithQT.exe
    Module loaded: ntdll.dll
    Module loaded: C:\Windows\System32\KERNEL32.DLL
    Module loaded: C:\Windows\System32\KERNELBASE.dll
    Module loaded: C:\Windows\System32\SHELL32.dll
    Module loaded: C:\Windows\System32\msvcp_win.dll
    Module loaded: C:\Windows\System32\ucrtbase.dll
    Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Multimediad.dll
    Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Widgetsd.dll
    Module loaded: C:\Windows\System32\USER32.dll
    Module loaded: C:\Windows\System32\win32u.dll
    Module loaded: C:\Windows\System32\GDI32.dll
    Module loaded: C:\Windows\System32\gdi32full.dll
    Module loaded: C:\Windows\SYSTEM32\MSVCP140D.dll
    Module loaded: C:\Windows\SYSTEM32\VCRUNTIME140D.dll
    Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Guid.dll
    Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Cored.dll
    Module loaded: C:\Windows\SYSTEM32\VCRUNTIME140_1D.dll
    Module loaded: C:\Windows\System32\ole32.dll
    Module loaded: C:\Windows\System32\WS2_32.dll
    Module loaded: C:\Windows\System32\RPCRT4.dll
    Module loaded: C:\Windows\System32\RPCRT4.dll
    Module loaded: C:\Windows\System32\combase.dll
    Module loaded: C:\Windows\System32\ADVAPI32.dll
    Module loaded: C:\Windows\System32\msvcrt.dll
    Module loaded: C:\Windows\System32\sechost.dll
    Module loaded: C:\Windows\SYSTEM32\ucrtbased.dll
    Module loaded: C:\Windows\SYSTEM32\ucrtbased.dll
    Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Networkd.dll
    Module loaded: C:\Windows\System32\CRYPT32.dll
    Module loaded: C:\Windows\SYSTEM32\UxTheme.dll
    Module loaded: C:\Windows\SYSTEM32\dwmapi.dll
    Module loaded: C:\Windows\SYSTEM32\MPR.dll
    Module loaded: C:\Windows\SYSTEM32\USERENV.dll
    Module loaded: C:\Windows\SYSTEM32\NETAPI32.dll
    Module loaded: C:\Windows\SYSTEM32\VERSION.dll
    Module loaded: C:\Windows\SYSTEM32\WINMM.dll
    Module loaded: C:\Windows\SYSTEM32\DNSAPI.dll
    Module loaded: C:\Windows\SYSTEM32\IPHLPAPI.DLL
    Module loaded: C:\Windows\SYSTEM32\NETUTILS.DLL
    Module loaded: C:\Windows\SYSTEM32\SRVCLI.DLL
    Module loaded: C:\Windows\SYSTEM32\CRYPTBASE.DLL
    Module loaded: F:\Windows\Programing\OpenCV\S.W\OpenCV\4.5.4\opencv\build_x64\install\x64\vc16\bin\opencv_world454d.dll
    Module loaded: C:\Windows\System32\SHLWAPI.dll
    Module loaded: C:\Windows\System32\OLEAUT32.dll
    Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Testd.dll
    ERROR: Process crashed
    Debugger finished.
    

    7) Right Panel Codes :

    wNote: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator's Debugger plugin, for instance in swap files, or other plugins you might use.
    wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share.
    w
    dStart parameters: 'OpencvAppWithQT2' mode: 1
    dABI: x86-windows-msvc2019-pe-64bit
    dLanguages: c++ 
    dExecutable: C:\Users\mahdi\Documents\build-OpencvAppWithQT-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug\debug\OpencvAppWithQT.exe
    dDirectory: C:\Users\mahdi\Documents\build-OpencvAppWithQT-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug
    dDebugger: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
    dProject: F:\Windows\Programing\OpenCV\S.W\OpenCV\Project\OpencvAppWithQT
    dAdditional Search Directories:
    dSysroot: 
    dDebug Source Location: 
    dDebugger settings:
    dCDB2/AdditionalArguments:   (default: )
    dCDB2/BreakEvent:   (default: )
    dCDB2/BreakOnCrtDbgReport: false  (default: false)
    dCDB2/BreakpointCorrection: true  (default: true)
    dCDB2/CDB_Console: false  (default: false)
    dCDB2/FirstChanceExceptionTaskEntry: true  (default: true)
    dCDB2/IgnoreFirstChanceAccessViolation: false  (default: false)
    dCDB2/SecondChanceExceptionTaskEntry: true  (default: true)
    dCDB2/SourcePaths:   (default: )
    dCDB2/SymbolPaths:   (default: )
    dCDB2/UsePythonDumper: true  (default: true)
    dDebugMode/AdjustBreakpointLocations: true  (default: true)
    dDebugMode/AllPluginBreakpoints: true  (default: true)
    dDebugMode/AlwaysAdjustColumnWidths: true  (default: true)
    dDebugMode/AutoDerefPointers: true  (default: true)
    dDebugMode/AutoEnrichParameters: true  (default: true)
    dDebugMode/AutoQuit: false  (default: false)
    dDebugMode/BreakOnAbort: false  (default: false)
    dDebugMode/BreakOnCatch: false  (default: false)
    dDebugMode/BreakOnFatal: false  (default: false)
    dDebugMode/BreakOnThrow: false  (default: false)
    dDebugMode/BreakOnWarning: false  (default: false)
    dDebugMode/BreakpointsFullPath: false  (default: false)
    dDebugMode/CloseBuffersOnExit: false  (default: false)
    dDebugMode/CloseMemoryBuffersOnExit: true  (default: true)
    dDebugMode/DisplayStringLimit: 100  (default: 100)
    dDebugMode/EnableReverseDebugging: false  (default: false)
    dDebugMode/ExtraDumperFile:   (default: )
    dDebugMode/FontSizeFollowsEditor: false  (default: false)
    dDebugMode/GdbCustomDumperCommands:   (default: )
    dDebugMode/GdbPostAttachCommands:   (default: )
    dDebugMode/GdbStartupCommands:   (default: )
    dDebugMode/IntelFlavor: false  (default: false)
    dDebugMode/LoadGdbDumpers2: false  (default: false)
    dDebugMode/LoadGdbInit: true  (default: true)
    dDebugMode/LogTimeStamps: false  (default: false)
    dDebugMode/MaximalStackDepth: 20  (default: 20)
    dDebugMode/MaximalStringLength: 10000  (default: 10000)
    dDebugMode/MultiInferior: false  (default: false)
    dDebugMode/NoPluginBreakpoints: false  (default: false)
    dDebugMode/RaiseOnInterrupt: true  (default: true)
    dDebugMode/RegisterForPostMortem: false  (default: false)
    dDebugMode/SelectedPluginBreakpoints: false  (default: false)
    dDebugMode/SelectedPluginBreakpointsPattern: .*  (default: .*)
    dDebugMode/ShowQObjectNames2: true  (default: true)
    dDebugMode/ShowQmlObjectTree: true  (default: true)
    dDebugMode/ShowQtNamespace: true  (default: true)
    dDebugMode/ShowStandardNamespace: true  (default: true)
    dDebugMode/ShowThreadNames: false  (default: false)
    dDebugMode/SkipKnownFrames: false  (default: false)
    dDebugMode/SortStructMembers: true  (default: true)
    dDebugMode/StationaryEditorWhileStepping: false  (default: false)
    dDebugMode/SwitchModeOnExit: false  (default: false)
    dDebugMode/TargetAsync: false  (default: false)
    dDebugMode/UseAlternatingRowColours: false  (default: false)
    dDebugMode/UseAnnotations: true  (default: true)
    dDebugMode/UseCodeModel: true  (default: true)
    dDebugMode/UseDebuggingHelper: true  (default: true)
    dDebugMode/UseDynamicType: true  (default: true)
    dDebugMode/UseMessageBoxForSignals: true  (default: true)
    dDebugMode/UsePseudoTracepoints: true  (default: true)
    dDebugMode/UseToolTips: true  (default: true)
    dDebugMode/UseToolTipsInBreakpointsView: false  (default: false)
    dDebugMode/UseToolTipsInLocalsView: false  (default: false)
    dDebugMode/UseToolTipsInStackView: true  (default: true)
    dDebugMode/WarnOnReleaseBuilds: true  (default: true)
    dDebugMode/WatchdogTimeout: 20  (default: 20)
    dQML.Inspector/QmlInspector.ShowAppOnTop: false  (default: false)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1)
    dCALL: SETUP ENGINE
     Launching C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe -aqtcreatorcdbext.dll -lines -G -c ".idle_cmd !qtcreatorcdbext.idle" -y ""\^"""\^""" C:\Users\mahdi\Documents\build-OpencvAppWithQT-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug\debug\OpencvAppWithQT.exe
     using C:\Qt\Qt5.12.11\Tools\QtCreator\lib\qtcreatorcdbext64\qtcreatorcdbext.dll of 14/02/1400 05:58 ق.ظ.
     C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe running as 4172
     Microsoft (R) Windows Debugger Version 10.0.17763.132 AMD64
     Using CDB based breakpoint correction.
     Copyright (c) Microsoft Corporation. All rights reserved.
     CommandLine: C:\Users\mahdi\Documents\build-OpencvAppWithQT-Desktop_Qt_5_12_11_MSVC2017_64bit-Debug\debug\OpencvAppWithQT.exe
    
     Error: Change all symbol paths attempts to access '""' failed: 0x7b - The filename, directory name, or volume label syntax is incorrect.
     ************* Path validation summary **************
     Response                         Time (ms)     Location
     Error                                          ""
     Symbol search path is: ""
     Executable search path is: 
     Module loaded: OpencvAppWithQT.exe
     Module loaded: ntdll.dll
     Module loaded: C:\Windows\System32\KERNEL32.DLL
     Module loaded: C:\Windows\System32\KERNELBASE.dll
     Module loaded: C:\Windows\System32\SHELL32.dll
     Module loaded: C:\Windows\System32\msvcp_win.dll
     Module loaded: C:\Windows\System32\ucrtbase.dll
     Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Multimediad.dll
     Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Widgetsd.dll
     Module loaded: C:\Windows\System32\USER32.dll
     Module loaded: C:\Windows\System32\win32u.dll
     Module loaded: C:\Windows\System32\GDI32.dll
     Module loaded: C:\Windows\System32\gdi32full.dll
     Module loaded: C:\Windows\SYSTEM32\MSVCP140D.dll
     Module loaded: C:\Windows\SYSTEM32\VCRUNTIME140D.dll
     Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Guid.dll
     Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Cored.dll
     Module loaded: C:\Windows\SYSTEM32\VCRUNTIME140_1D.dll
     Module loaded: C:\Windows\System32\ole32.dll
     Module loaded: C:\Windows\System32\WS2_32.dll
     Module loaded: C:\Windows\System32\RPCRT4.dll
     Module loaded: C:\Windows\System32\RPCRT4.dll
     Module loaded: C:\Windows\System32\combase.dll
     Module loaded: C:\Windows\System32\ADVAPI32.dll
     Module loaded: C:\Windows\System32\msvcrt.dll
     Module loaded: C:\Windows\System32\sechost.dll
     Module loaded: C:\Windows\SYSTEM32\ucrtbased.dll
     Module loaded: C:\Windows\SYSTEM32\ucrtbased.dll
     Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Networkd.dll
     Module loaded: C:\Windows\System32\CRYPT32.dll
     Module loaded: C:\Windows\SYSTEM32\UxTheme.dll
     Module loaded: C:\Windows\SYSTEM32\dwmapi.dll
     Module loaded: C:\Windows\SYSTEM32\MPR.dll
     Module loaded: C:\Windows\SYSTEM32\USERENV.dll
     Module loaded: C:\Windows\SYSTEM32\NETAPI32.dll
     Module loaded: C:\Windows\SYSTEM32\VERSION.dll
     Module loaded: C:\Windows\SYSTEM32\WINMM.dll
     Module loaded: C:\Windows\SYSTEM32\DNSAPI.dll
     Module loaded: C:\Windows\SYSTEM32\IPHLPAPI.DLL
     Module loaded: C:\Windows\SYSTEM32\NETUTILS.DLL
     Module loaded: C:\Windows\SYSTEM32\SRVCLI.DLL
     Module loaded: C:\Windows\SYSTEM32\CRYPTBASE.DLL
     Module loaded: F:\Windows\Programing\OpenCV\S.W\OpenCV\4.5.4\opencv\build_x64\install\x64\vc16\bin\opencv_world454d.dll
     Module loaded: C:\Windows\System32\SHLWAPI.dll
     Module loaded: C:\Windows\System32\OLEAUT32.dll
     Module loaded: C:\Qt\Qt5.12.11\5.12.11\msvc2017_64\bin\Qt5Testd.dll
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\atlmfc.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\concurrency.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\cpp_rest.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\stl.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Data.Json.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Devices.Geolocation.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Devices.Sensors.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\Windows.Media.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\windows.natvis'
     NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\Visualizers\winrt.natvis'
    eERROR: Process crashed
    dCDB PROCESS FINISHED, status 1, exit code -1073741515 (0xffffffffc0000135)
    dNOTE: INFERIOR ILL
    dState changed from EngineSetupRequested(1) to InferiorShutdownRequested(12)
    dCALL: SHUTDOWN INFERIOR
    dINFERIOR FINISHED SHUT DOWN
    dState changed from InferiorShutdownRequested(12) to InferiorShutdownFinished(13)
    dState changed from InferiorShutdownFinished(13) to EngineShutdownRequested(14)
    dCALL: SHUTDOWN ENGINE
    dNOTE: ENGINE SHUTDOWN FINISHED
    dState changed from EngineShutdownRequested(14) to EngineShutdownFinished(15)
     Debugger finished.
    dState changed from EngineShutdownFinished(15) to DebuggerFinished(16)
    

    how i can solve this problem?
    This problem was also shared by others, I also saw articles about it on the net, but they did not help me and my problem was not solved, so I created this post.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Nov 2021, 20:16 last edited by
      #2

      Hi and welcome to devnet,

      Did you check if the OpenCV dll has any dependency not found ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        md3848
        wrote on 25 Nov 2021, 21:04 last edited by
        #3

        last day i have no problem - but today.....
        i reinstall qt and visual-studio but my problem not solved

        I rebuilt opencv with new packages [source code->cmake->visual studio build->...], after that time, this problem occurred, I even used the default opencv in github, but my problem was not solved.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Nov 2021, 21:09 last edited by
          #4

          Which version of Visual Studio are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            md3848
            wrote on 25 Nov 2021, 22:27 last edited by
            #5

            vs 2019 v16.8.3

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 27 Nov 2021, 19:27 last edited by
              #6

              I am wondering whether there's some bad interaction between the 2017 build of Qt and your 2019 build of OpenCV. There should not as VS 2019 is backward compatible with 2017.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              5/6

              25 Nov 2021, 22:27

              • Login

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