[solved]this application requested the runtime to terminate it in an unusual way
-
@JKSH
I don't think the problem is with deployment. I flowed instruction step by step.
here is my .exe file folder and the way I deploy files :@Hamed said:
@JKSH
I don't think the problem is with deployment. I flowed instruction step by step.
here is my .exe file folder and the way I deploy files :- What version of Qt did you use?
- What compiler did you use?
- What is MapGraphics.dll?
- Why do you have both MSVC and MinGW DLLs in your folder?
- Did you rename your Qt folder to something like C:\QtHidden\ ?
- The wiki asked you to copy all DLLs from the <Qt>\bin\ folder. You don't have all of them.
- You shouldn't need system DLLs (glu32.dll, kernel32.dll, opengl32.dll, shell32.dll)
-
- Qt 5.4.1
- mingw
- this is map view costume library, It's needed
- I copied just mingw dll and I faced this problem. in some topics I read you need msvc dll and I copied it and it's not changed anything as I expect!
- No I thought renaming to QtHidden is for simulating your system with a system that don't have Qt! I have Qt and I have problem!
- I copied the dlls that dependency walker told it's needed! should I copy all of them?
- those dlls also recomended by dependency walker.
suggest anything that you think might help me I will do that.
-
- Qt 5.4.1
- mingw
- this is map view costume library, It's needed
- I copied just mingw dll and I faced this problem. in some topics I read you need msvc dll and I copied it and it's not changed anything as I expect!
- No I thought renaming to QtHidden is for simulating your system with a system that don't have Qt! I have Qt and I have problem!
- I copied the dlls that dependency walker told it's needed! should I copy all of them?
- those dlls also recomended by dependency walker.
suggest anything that you think might help me I will do that.
- Ok
- Ok
- Where did you download this from? Did you build this DLL yourself?
- To clarify: Do you mean you copied the MinGW DLL and it crashed? (Also, remove the MSVC DLL)
- No, renaming it will temporarily "remove" Qt from your system PATH. Try it.
- Dependency Walker does not show all the required DLLs by default. Please follow the Wiki instructions, and copy all of them. If you don't, it's difficult to help you.
- Windows system DLLs can always be found. You don't need to copy them. Remove them from your folder.
If it still doesn't work, please post:
- Your .pro file
- The full path to where you got your Qt DLLs from? (for example, "C:\Qt\5.2.1\mingw48_32\bin")
- Answers to my questions above
-
- I download It from github and it's work properly! it's ran as an application by itself and I don't think that is the problem.
- no minGW was needed and lik other dlls I add it! at the end of adding all dlls this error happens.
- did it, Nothing changed
- did it, Nothing changed
- did it, Nothing changed :(
1.how to post my .pro?
2.C:\Qt\Qt5.4.1\5.4\mingw491_32\bin
3.done -
- I download It from github and it's work properly! it's ran as an application by itself and I don't think that is the problem.
- no minGW was needed and lik other dlls I add it! at the end of adding all dlls this error happens.
- did it, Nothing changed
- did it, Nothing changed
- did it, Nothing changed :(
1.how to post my .pro?
2.C:\Qt\Qt5.4.1\5.4\mingw491_32\bin
3.done@Hamed said:
- I download It from github and it's work properly! it's ran as an application by itself and I don't think that is the problem.
What's the github link?
- no minGW was needed and lik other dlls I add it! at the end of adding all dlls this error happens.
I meant remove MSVC, not MinGW
- did it, Nothing changed
- did it, Nothing changed
- did it, Nothing changed :(
:(
1.how to post my .pro?
Open it in Qt Creator. Copy the text in the file, and paste it here.
2.C:\Qt\Qt5.4.1\5.4\mingw491_32\bin
Ok, that's correct
-
- github link : https://github.com/raptorswing/MapGraphics
- no, nothing changes when I delete msvc dll
- by .pro you mean my root project .pro or subdirs .pro s? I have two subdirs and both have .pro file
-
- github link : https://github.com/raptorswing/MapGraphics
- no, nothing changes when I delete msvc dll
- by .pro you mean my root project .pro or subdirs .pro s? I have two subdirs and both have .pro file
-
- root .pro :
TEMPLATE = subdirs SUBDIRS += \ Planner \ MapGraphics Planner.depends += MapGraphics2.mapgraphics .pro :
#------------------------------------------------- # # Project created by QtCreator 2012-03-03T10:50:47 # #------------------------------------------------- QT += network sql greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = MapGraphics TEMPLATE = lib DEFINES += MAPGRAPHICS_LIBRARY INCLUDEPATH += . SOURCES += MapGraphicsScene.cpp \ MapGraphicsObject.cpp \ MapGraphicsView.cpp \ guts/PrivateQGraphicsScene.cpp \ guts/PrivateQGraphicsObject.cpp \ guts/Conversions.cpp \ MapTileSource.cpp \ tileSources/GridTileSource.cpp \ guts/MapTileGraphicsObject.cpp \ guts/PrivateQGraphicsView.cpp \ tileSources/OSMTileSource.cpp \ guts/MapGraphicsNetwork.cpp \ tileSources/CompositeTileSource.cpp \ guts/MapTileLayerListModel.cpp \ guts/MapTileSourceDelegate.cpp \ guts/CompositeTileSourceConfigurationWidget.cpp \ CircleObject.cpp \ guts/PrivateQGraphicsInfoSource.cpp \ PolygonObject.cpp \ Position.cpp \ LineObject.cpp \ PlaneObject.cpp HEADERS += MapGraphicsScene.h\ MapGraphics_global.h \ MapGraphicsObject.h \ MapGraphicsView.h \ guts/PrivateQGraphicsScene.h \ guts/PrivateQGraphicsObject.h \ guts/Conversions.h \ MapTileSource.h \ tileSources/GridTileSource.h \ guts/MapTileGraphicsObject.h \ guts/PrivateQGraphicsView.h \ tileSources/OSMTileSource.h \ guts/MapGraphicsNetwork.h \ tileSources/CompositeTileSource.h \ guts/MapTileLayerListModel.h \ guts/MapTileSourceDelegate.h \ guts/CompositeTileSourceConfigurationWidget.h \ CircleObject.h \ guts/PrivateQGraphicsInfoSource.h \ PolygonObject.h \ Position.h \ LineObject.h \ PlaneObject.h symbian { MMP_RULES += EXPORTUNFROZEN TARGET.UID3 = 0xE4F7F973 TARGET.CAPABILITY = TARGET.EPOCALLOWDLLDATA = 1 addFiles.sources = MapGraphics.dll addFiles.path = !:/sys/bin DEPLOYMENT += addFiles } unix:!symbian { maemo5 { target.path = /opt/usr/lib } else { target.path = /usr/lib } INSTALLS += target } FORMS += \ guts/CompositeTileSourceConfigurationWidget.ui RESOURCES += \ resources.qrc- planner .pro file :
#------------------------------------------------- # # Project created by QtCreator 2015-03-01T12:21:14 # #------------------------------------------------- QT += core gui serialport QT += core gui opengl QT += core gui network sql greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = Planner TEMPLATE = app #LIBS += -lGLU #LIBS += -lSDL CONFIG += debug_and_release SOURCES += main.cpp\ Mainwindow.cpp \ readerthread.cpp \ plane3d.cpp \ clicklabel.cpp \ chart.cpp \ ahrsscene.cpp \ mavlinkcrc.cpp HEADERS += Mainwindow.h \ readerthread.h \ plane3d.h \ clicklabel.h \ chart.h \ ahrsscene.h \ ../ardupilotmega/mavlink.h \ ../MAVLink/dowranpilot/mavlink.h \ mavlinkcrc.h \ ../MAVLink/mavlink_types.h FORMS += \ MainWindow.ui #Linkage for MapGraphics shared library win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../MapGraphics/release/ -lMapGraphics else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../MapGraphics/debug/ -lMapGraphics else:unix:!symbian: LIBS += -L$$OUT_PWD/../MapGraphics/ -lMapGraphics INCLUDEPATH += $$PWD/../MapGraphics DEPENDPATH += $$PWD/../MapGraphics RESOURCES = mresources.qrc -
- Did you copy the Debug build or Release build of MapGraphics.dll?
- Did you build a Debug build or Release build of your Planner app?
-
@Hamed said:
I didn't build them seprately. I build root project in release mode.
Yes, but MapGraphics.dll is built in a different folder from Planner.exe. Did you copy debug\MapGraphics.dll or release\MapGraphics.dll? Make sure you copied the release version, and not the debug version.
Anyway, before continuing this path, I want to check: Are you able to run TestApp.exe outside of Qt Creator?
-
Based on the image of your deployment directory you need to remove some of the DLL files you put there. Specifically:
- kernal32.dll
- shell32.dll
- glu32.dll
- libegl.dll
- libglesv2.dllrn
- msvcrt.dll
- opengl32.dll
The operating system has files such as kernel32.dll. Your copy of this will be different then that of the target OS in most cases.
When using dependency viewer stick to items specific to Qt and Mingw.
-
The Win7 message can be vauge. Maybe something like this can help http://www.nirsoft.net/utils/application_crash_report.html
-
@Hamed said:
both are built in release mode!
yes I ran a test application just now!Can you please post a screenshot of your TestApp.exe folder?
Ok, I'm running out of ideas. Here's my last DLL-related one:
- Download and extract https://technet.microsoft.com/en-us/sysinternals/bb896656.aspx
- Run the Release build of your Planner app from inside Qt Creator
- Interact with your app, make sure it doesn't crash
- Open the command prompt, and navigate to the ListDLL folder
- In the command prompt, type
ListDLLs.exe Planner.exe > output.log - Open output.log, and make sure you have all the DLLs, but ignore anything from C:\Windows (notice that you have DLLs that Dependency Walker didn't detect)
- Post the contents of the log here
If that still doesn't work, then I suggest doing debugging the old-fashioned way: Start commenting out code in your Planner app until it stops crashing.
-
my test app directory:
https://www.imageupload.co.uk/images/2015/04/19/6516.jpgI will do this steps and let you know the result.
thank you so much -
I did this as you said but I think I'm doing something wrong.
the log contents :ListDLLs v3.1 - List loaded DLLs
Copyright (C) 1997-2011 Mark Russinovich
Sysinternals - www.sysinternals.comNo matching processes were found.
-
I did this as you said but I think I'm doing something wrong.
the log contents :ListDLLs v3.1 - List loaded DLLs
Copyright (C) 1997-2011 Mark Russinovich
Sysinternals - www.sysinternals.comNo matching processes were found.
@Hamed said:
I did this as you said but I think I'm doing something wrong.
the log contents :ListDLLs v3.1 - List loaded DLLs
Copyright (C) 1997-2011 Mark Russinovich
Sysinternals - www.sysinternals.comNo matching processes were found.
When you do steps #4 and #5, make sure that Planner.exe is still running inside Qt Creator
-
My bad!
this is the contents of log file :ListDLLs v3.1 - List loaded DLLs Copyright (C) 1997-2011 Mark Russinovich Sysinternals - www.sysinternals.com ------------------------------------------------------------------------------ Planner.exe pid: 2496 Command line: C:\Users\Hamed\Desktop\build-DowranPlanner-Desktop_Qt_5_4_1_MinGW_32bit-Release\Planner\release\Planner.exe Base Size Path 0x0000000000400000 0x2e5000 C:\Users\Hamed\Desktop\build-DowranPlanner-Desktop_Qt_5_4_1_MinGW_32bit-Release\Planner\release\Planner.exe 0x0000000076d20000 0x1a9000 C:\Windows\SYSTEM32\ntdll.dll 0x0000000071ee0000 0x3f000 C:\Windows\SYSTEM32\wow64.dll 0x0000000071e80000 0x5c000 C:\Windows\SYSTEM32\wow64win.dll 0x0000000071e70000 0x8000 C:\Windows\SYSTEM32\wow64cpu.dll 0x0000000000400000 0x2e5000 C:\Users\Hamed\Desktop\build-DowranPlanner-Desktop_Qt_5_4_1_MinGW_32bit-Release\Planner\release\Planner.exe 0x0000000076f00000 0x180000 C:\Windows\SysWOW64\ntdll.dll 0x0000000076430000 0x110000 C:\Windows\syswow64\kernel32.dll 0x0000000075220000 0x46000 C:\Windows\syswow64\KERNELBASE.dll 0x0000000068880000 0x4a6000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5Core.dll 0x0000000075170000 0xa0000 C:\Windows\syswow64\ADVAPI32.dll 0x0000000075310000 0xac000 C:\Windows\syswow64\msvcrt.dll 0x0000000075150000 0x19000 C:\Windows\SysWOW64\sechost.dll 0x0000000074640000 0xf0000 C:\Windows\syswow64\RPCRT4.dll 0x00000000745e0000 0x60000 C:\Windows\syswow64\SspiCli.dll 0x00000000745d0000 0xc000 C:\Windows\syswow64\CRYPTBASE.dll 0x000000006e940000 0x24000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\libgcc_s_dw2-1.dll 0x0000000064940000 0x14000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\libwinpthread-1.dll 0x000000006d890000 0x12000 C:\Windows\SysWOW64\MPR.DLL 0x0000000074d40000 0x15c000 C:\Windows\syswow64\ole32.dll 0x0000000075270000 0x90000 C:\Windows\syswow64\GDI32.dll 0x0000000074870000 0x100000 C:\Windows\syswow64\USER32.dll 0x0000000074fd0000 0xa000 C:\Windows\syswow64\LPK.dll 0x0000000074b80000 0x9d000 C:\Windows\syswow64\USP10.dll 0x0000000075750000 0xc4a000 C:\Windows\syswow64\SHELL32.dll 0x0000000074fe0000 0x57000 C:\Windows\syswow64\SHLWAPI.dll 0x0000000074f90000 0x35000 C:\Windows\syswow64\WS2_32.dll 0x0000000076ed0000 0x6000 C:\Windows\syswow64\NSI.dll 0x000000006fc40000 0x101000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\libstdc++-6.dll 0x0000000061a40000 0x2ad000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\icuin53.dll 0x0000000068f80000 0x1b3000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\icuuc53.dll 0x0000000066500000 0x1499000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\icudt53.dll 0x0000000000b10000 0x505000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5Gui.dll 0x0000000000320000 0xc8000 C:\Windows\SysWOW64\OPENGL32.DLL 0x0000000061cf0000 0x22000 C:\Windows\SysWOW64\GLU32.dll 0x00000000006f0000 0xe7000 C:\Windows\SysWOW64\DDRAW.dll 0x0000000000020000 0x6000 C:\Windows\SysWOW64\DCIMAN32.dll 0x00000000755b0000 0x19d000 C:\Windows\syswow64\SETUPAPI.dll 0x00000000753c0000 0x27000 C:\Windows\syswow64\CFGMGR32.dll 0x0000000074eb0000 0x8f000 C:\Windows\syswow64\OLEAUT32.dll 0x0000000074730000 0x12000 C:\Windows\syswow64\DEVOBJ.dll 0x000000006f6c0000 0x13000 C:\Windows\SysWOW64\dwmapi.dll 0x00000000007e0000 0x5a000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5OpenGL.dll 0x0000000061dc0000 0x633000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5Widgets.dll 0x0000000065880000 0x1f000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5SerialPort.dll 0x0000000064480000 0x4e000 C:\Users\Hamed\Desktop\build-DowranPlanner-Desktop_Qt_5_4_1_MinGW_32bit-Release\MapGraphics\release\MapGraphics.dll 0x0000000069700000 0x17c000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5Network.dll 0x0000000074c20000 0x11d000 C:\Windows\syswow64\CRYPT32.dll 0x0000000074ea0000 0xc000 C:\Windows\syswow64\MSASN1.dll 0x000000006f1e0000 0x44000 C:\Windows\SysWOW64\DNSAPI.DLL 0x0000000074b20000 0x60000 C:\Windows\SysWOW64\IMM32.DLL 0x0000000076570000 0xcc000 C:\Windows\syswow64\MSCTF.dll 0x0000000071e00000 0x2c000 C:\Windows\SysWOW64\nvinit.dll 0x000000000f000000 0x6000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\detoured.dll 0x000000006f780000 0x2b000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll 0x000000006f760000 0x1f000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll 0x000000006a880000 0x14e000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\platforms\qwindows.dll 0x0000000071fd0000 0x32000 C:\Windows\SysWOW64\WINMM.DLL 0x000000006f6e0000 0x80000 C:\Windows\SysWOW64\uxtheme.dll 0x0000000010000000 0xdc0000 C:\Windows\SysWOW64\ig4icd32.dll 0x0000000072220000 0x16000 C:\Windows\SysWOW64\CRYPTSP.dll 0x00000000721e0000 0x3b000 C:\Windows\SysWOW64\rsaenh.dll 0x0000000071fc0000 0xe000 C:\Windows\SysWOW64\RpcRtRemote.dll 0x0000000071e40000 0x17000 C:\Windows\SysWOW64\userenv.dll 0x0000000071e30000 0xb000 C:\Windows\SysWOW64\profapi.dll 0x0000000070a00000 0x18000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qdds.dll 0x0000000003bd0000 0x11000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qgif.dll 0x000000006c600000 0x15000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qicns.dll 0x000000006e840000 0x12000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qico.dll 0x000000006d440000 0x8d000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qjp2.dll 0x00000000626c0000 0x45000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qjpeg.dll 0x0000000069240000 0x64000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qmng.dll 0x0000000000a00000 0x10000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qsvg.dll 0x0000000003bf0000 0x58000 C:\Qt\Qt5.4.1\5.4\mingw491_32\bin\Qt5Svg.dll 0x000000006b640000 0x10000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qtga.dll 0x000000006cf00000 0x72000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qtiff.dll 0x0000000002bd0000 0x10000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qwbmp.dll 0x0000000003c50000 0x5f000 C:\Qt\Qt5.4.1\5.4\mingw491_32\plugins\imageformats\qwebp.dll 0x0000000003220000 0x7000 C:\Program Files (x86)\Internet Download Manager\idmmkb.dll 0x0000000072010000 0x9000 C:\Windows\SysWOW64\VERSION.dll