Crushes after deploying!



  • Hello,

    My app crushes after deployment process because of runtime problem under windows 7 x64

    Using Dependency Walker I get these errors:

    [D? ]  API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL         Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL         Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-L1-1-0.DLL               Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL      Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL        Error opening file. The system cannot find the file specified (2).
    [D? ]  API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL           Error opening file. The system cannot find the file specified (2).
    [D? ]  DCOMP.DLL                                      Error opening file. The system cannot find the file specified (2).
    [D? ]  GPSVC.DLL                                      Error opening file. The system cannot find the file specified (2).
    [D? ]  IESHIMS.DLL                                    Error opening file. The system cannot find the file specified (2).
    

    So I installed Visual C++ Redistributable for Visual Studio 2015 (shipped with Qt 5.9.1) but it didn't fix the issue.
    I tried to install Visual C++ Redistributable for Visual Studio 2017 (vc_redist.x86). Once again it didn't fix the issue :(

    May you please help me for creating a valid deployment.

    NOTE:

    • You can find full Dependency Walker log in this link
    • My app run perfectly just in case I run it in a machine has installed Qt!


  • I forgot to post my deployed package:

    .
    ├── audio
    │   └── qtaudio_windows.dll
    ├── bearer
    │   ├── qgenericbearer.dll
    │   └── qnativewifibearer.dll
    ├── canbus
    │   ├── qtpeakcanbus.dll
    │   ├── qtsysteccanbus.dll
    │   ├── qttinycanbus.dll
    │   └── qtvectorcanbus.dll
    ├── designer
    │   ├── qaxwidget.dll
    │   └── qquickwidget.dll
    ├── gamepads
    ├── generic
    │   └── qtuiotouchplugin.dll
    ├── geometryloaders
    │   ├── defaultgeometryloader.dll
    │   └── gltfgeometryloader.dll
    ├── geoservices
    │   ├── qtgeoservices_esri.dll
    │   ├── qtgeoservices_itemsoverlay.dll
    │   ├── qtgeoservices_mapbox.dll
    │   ├── qtgeoservices_mapboxgl.dll
    │   ├── qtgeoservices_nokia.dll
    │   └── qtgeoservices_osm.dll
    ├── iconengines
    │   └── qsvgicon.dll
    ├── imageformats
    │   ├── qgif.dll
    │   ├── qicns.dll
    │   ├── qico.dll
    │   ├── qjpeg.dll
    │   ├── qsvg.dll
    │   ├── qtga.dll
    │   ├── qtiff.dll
    │   ├── qwbmp.dll
    │   └── qwebp.dll
    ├── libEGL.dll
    ├── libgcc_s_dw2-1.dll
    ├── libGLESv2.dll
    ├── libmysql.dll
    ├── libstdc++-6.dll
    ├── libwinpthread-1.dll
    ├── mediaservice
    │   ├── dsengine.dll
    │   └── qtmedia_audioengine.dll
    ├── opengl32sw.dll
    ├── platforminputcontexts
    │   └── qtvirtualkeyboardplugin.dll
    ├── platforms
    │   ├── qminimal.dll
    │   ├── qoffscreen.dll
    │   └── qwindows.dll
    ├── playlistformats
    │   └── qtmultimedia_m3u.dll
    ├── position
    │   ├── qtposition_geoclue.dll
    │   ├── qtposition_positionpoll.dll
    │   └── qtposition_serialnmea.dll
    ├── Chekcer.exe
    ├── printsupport
    │   └── windowsprintersupport.dll
    ├── qmltooling
    │   ├── qmldbg_debugger.dll
    │   ├── qmldbg_inspector.dll
    │   ├── qmldbg_local.dll
    │   ├── qmldbg_messages.dll
    │   ├── qmldbg_nativedebugger.dll
    │   ├── qmldbg_native.dll
    │   ├── qmldbg_profiler.dll
    │   ├── qmldbg_quickprofiler.dll
    │   ├── qmldbg_server.dll
    │   └── qmldbg_tcp.dll
    ├── Qt53DAnimation.dll
    ├── Qt53DCore.dll
    ├── Qt53DExtras.dll
    ├── Qt53DInput.dll
    ├── Qt53DLogic.dll
    ├── Qt53DQuickAnimation.dll
    ├── Qt53DQuick.dll
    ├── Qt53DQuickExtras.dll
    ├── Qt53DQuickInput.dll
    ├── Qt53DQuickRender.dll
    ├── Qt53DRender.dll
    ├── Qt5Bluetooth.dll
    ├── Qt5Charts.dll
    ├── Qt5Concurrent.dll
    ├── Qt5Core.dll
    ├── Qt5DataVisualization.dll
    ├── Qt5DBus.dll
    ├── Qt5DesignerComponents.dll
    ├── Qt5Designer.dll
    ├── Qt5Gui.dll
    ├── Qt5Help.dll
    ├── Qt5Location.dll
    ├── Qt5Multimedia.dll
    ├── Qt5MultimediaQuick_p.dll
    ├── Qt5MultimediaWidgets.dll
    ├── Qt5NetworkAuth.dll
    ├── Qt5Network.dll
    ├── Qt5Nfc.dll
    ├── Qt5OpenGL.dll
    ├── Qt5Positioning.dll
    ├── Qt5PrintSupport.dll
    ├── Qt5Purchasing.dll
    ├── Qt5Qml.dll
    ├── Qt5QuickControls2.dll
    ├── Qt5Quick.dll
    ├── Qt5QuickParticles.dll
    ├── Qt5QuickTemplates2.dll
    ├── Qt5QuickTest.dll
    ├── Qt5QuickWidgets.dll
    ├── Qt5RemoteObjects.dll
    ├── Qt5Scxml.dll
    ├── Qt5Sensors.dll
    ├── Qt5SerialBus.dll
    ├── Qt5SerialPort.dll
    ├── Qt5Sql.dll
    ├── Qt5Svg.dll
    ├── Qt5Test.dll
    ├── Qt5TextToSpeech.dll
    ├── Qt5WebChannel.dll
    ├── Qt5WebSockets.dll
    ├── Qt5Widgets.dll
    ├── Qt5WinExtras.dll
    ├── Qt5Xml.dll
    ├── Qt5XmlPatterns.dll
    ├── renderplugins
    ├── sceneparsers
    │   ├── assimpsceneimport.dll
    │   ├── gltfsceneexport.dll
    │   └── gltfsceneimport.dll
    ├── sensorgestures
    │   ├── qtsensorgestures_plugin.dll
    │   └── qtsensorgestures_shakeplugin.dll
    ├── sensors
    │   └── qtsensors_generic.dll
    ├── sqldrivers
    │   ├── qsqlite.dll
    │   ├── qsqlmysql.dll
    │   ├── qsqlodbc.dll
    │   └── qsqlpsql.dll
    ├── texttospeech
    │   └── qtexttospeech_sapi.dll
    └── vcredist_msvc2015_x86.exe
    
    23 directories, 123 files
    

  • Moderators

    @tansgumus

    Is your development OS also Windows 7 64 bit?



  • @koahnig said in Crushes after deploying!:

    @tansgumus

    Is your development OS also Windows 7 64 bit?

    yes


  • Moderators

    @tansgumus

    In general I would recommend to install the redistributable dlls for the same MSVC version as you used for compilation and linking.

    Other than that, did you install these dlls in the same folder as the .exe?

    Since I am not using msvc anymore, I am probably of no further help here.



  • @koahnig said in Crushes after deploying!:

    @tansgumus

    In general I would recommend to install the redistributable dlls for the same MSVC version as you used for compilation and linking.

    I don't use MSVC. I use Qt open source version which means I use MinGW (already shipped with Qt for Windows)


  • Moderators

    @tansgumus

    Ah, sorry. My fault.

    Did you check out with dependency walker on your development machine?
    I guess you see the same error messages.

    Those seem to be the standard error messages nowadays for dependency walker.

    Do you see another error message?
    Or does your app simply crash?



  • @koahnig said in Crushes after deploying!:

    Do you see another error message?

    No

    Or does your app simply crash?

    Simply crashes



  • Hi, googling finds many with the same problem, for example here
    Just guessing, but perhaps you could try some of the suggestions in there...



  • @hskoglund said in Crushes after deploying!:

    Hi, googling finds many with the same problem, for example here
    Just guessing, but perhaps you could try some of the suggestions in there...

    Thanks for the link.
    It seems this issue doesn't even solved in Stack Overflow :(

    Any way, I did some of the suggestions mentioned in it.

    1. Installed all redistributable package of x86 (cuz I built my app using Qt mingw53_32) for 2012 - 2013 - 2015 - 2017 (I tested my app after each vcredist)
    2. Installed all redistributable package of x64 for 2012 - 2013 - 2015 - 2017 (I tested my app after each vcredist)

    Nothing changed still see my app crashes without any logical reason!

    Now I'm very sad because I can run my app only if I installed Qt on my machine which is impractical solution for deploying my app.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.