ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Qt sample code crashes imediately
Posted by brandon on Feb-22-2017 01:02
Hello,

I'm completely new to ChartDirector. I've downloaded the trial version to test the code to see if it will work for a test application I'm writing.

I'm using Qt version 5.8 and Visual studios 2015 compiler (x64).

I started at "helloworld" project per the documentation suggestion, but am unable to get the code to run. It crashes instantly with no compile errors, just a simple, "The program has unexpectedly finished." So then I ran it debug mode and instantly got a popup that stated "The CDB process terminated". Here is the log output:

-------------------------------------------------------------------------------
sStarting debugger "CdbEngine" for ABI "x86-windows-msvc2015-pe-64bit"...
dStart parameters: 'helloworld' mode: 1
dABI: x86-windows-msvc2015-pe-64bit
dLanguages: c++
dExecutable: C:DevelopmentChartDirectorqtdemobuild-helloworld-Desktop_Qt_5_8_0_MSVC2015_64bit-Debugdebughelloworld.exe
dDirectory: C:DevelopmentChartDirectorqtdemobuild-helloworld-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug
dDebugger: C:Program Files (x86)Windows Kits8.1Debuggersx64cdb.exe
dProject: C:DevelopmentChartDirectorqtdemohelloworldAddtional Search Directories:
dRemote: :0
dSysroot:
dDebug Source Location:
dDebugger settings:
dLoadGdbDumpers2: false  (default: false)
dAttemptQuickStart: false  (default: false)
dGdbStartupCommands:   (default: )
dGdbPostAttachCommands:   (default: )
dCDB_Console: false  (default: false)
dBreakpointCorrection: true  (default: true)
dIgnoreFirstChanceAccessViolation: false  (default: false)
dLoadGdbInit: true  (default: true)
dWarnOnReleaseBuilds: true  (default: true)
dMultiInferior: false  (default: false)
dIntelFlavor: false  (default: false)
dIdentifyDebugInfoPackages: false  (default: false)
dWatchdogTimeout: 20  (default: 20)
dAutoEnrichParameters: true  (default: true)
dUseDynamicType: true  (default: true)
dTargetAsync: false  (default: false)
dUseToolTipsInBreakpointsView: false  (default: true)  ***
dUseAddressInBreakpointsView: false  (default: false)
dUseAddressInStackView: false  (default: false)
dRegisterForPostMortem: false  (default: false)
dShowThreadNames: false  (default: false)
dUseToolTips: true  (default: true)
dUseToolTipsInLocalsView: false  (default: false)
dUseToolTipsInBreakpointsView: false  (default: false)
dSymbolPaths:   (default: )
dSourcePaths:   (default: )
dBreakEvent:   (default: )
dBreakOnCrtDbgReport: false  (default: false)
dAlwaysAdjustColumnWidths: true  (default: true)
dExtraDumperFile:   (default: )
dGdbCustomDumperCommands:   (default: )
dAdditionalArguments:   (default: )
dAutoQuit: false  (default: false)
dLogTimeStamps: false  (default: false)
dUseAlternatingRowColours: false  (default: false)
dFontSizeFollowsEditor: false  (default: false)
dUseMessageBoxForSignals: true  (default: true)
dRaiseOnInterrupt: true  (default: true)
dStationaryEditorWhileStepping: false  (default: false)
dUseDebuggingHelper: true  (default: true)
dUseCodeModel: true  (default: true)
dCloseBuffersOnExit: false  (default: false)
dCloseMemoryBuffersOnExit: true  (default: true)
dSwitchModeOnExit: false  (default: false)
dBreakpointsFullPath: false  (default: false)
dBreakOnWarning: false  (default: false)
dBreakOnFatal: false  (default: false)
dBreakOnAbort: false  (default: false)
dShowQmlObjectTree: true  (default: true)
dNoPluginBreakpoints: false  (default: false)
dSelectedPluginBreakpointsPattern: .*  (default: .*)
dBreakOnThrow: false  (default: false)
dBreakOnCatch: false  (default: false)
dQmlInspector.ShowAppOnTop: false  (default: false)
dShowQtNamespace: true  (default: true)
dShowQObjectNames2: true  (default: true)
dSortStructMembers: true  (default: true)
dAutoDerefPointers: true  (default: true)
dMaximalStackDepth: 20  (default: 20)
dShowStandardNamespace: true  (default: true)
dAllPluginBreakpoints: true  (default: true)
dSelectedPluginBreakpoints: false  (default: false)
dAdjustBreakpointLocations: true  (default: true)
dMaximalStringLength: 10000  (default: 10000)
dDisplayStringLimit: 100  (default: 100)
dSkipKnownFrames: false  (default: false)
dEnableReverseDebugging: false  (default: false)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
dQUEUE: SETUP ENGINE
dCALL: SETUP ENGINE
Launching C:Program Files (x86)Windows Kits8.1Debuggersx64cdb.exe -aqtcreatorcdbext.dll -lines -G -c .idle_cmd !qtcreatorcdbext.idle -y cache*C:UsersbmarzolfAppDataLocalTempsymbolcache;srv*http://msdl.microsoft.com/download/symbols C:DevelopmentChartDirectorqtdemobuild-helloworld-Desktop_Qt_5_8_0_MSVC2015_64bit-Debugdebughelloworld.exe
using C:QtQt5.8.0ToolsQtCreatorlibqtcreatorcdbext64qtcreatorcdbext.dll of 1/19/17 18:51.
C:Program Files (x86)Windows Kits8.1Debuggersx64cdb.exe running as 18672
Microsoft (R) Windows Debugger Version 6.3.9600.17336 AMD64
Using CDB based breakpoint correction.
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: C:DevelopmentChartDirectorqtdemobuild-helloworld-Desktop_Qt_5_8_0_MSVC2015_64bit-Debugdebughelloworld.exe
************* Symbol Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       cache*C:UsersbmarzolfAppDataLocalTempsymbolcache
Deferred                                       srv*http://msdl.microsoft.com/download/symbols
Symbol search path is: cache*C:UsersbmarzolfAppDataLocalTempsymbolcache;srv*http://msdl.microsoft.com/download/symbols
Executable search path is:
sModule loaded: helloworld.exe
sModule loaded: ntdll.dll
sModule loaded: C:Windowssystem32kernel32.dll
sModule loaded: C:Windowssystem32KERNELBASE.dll
sModule loaded: C:WindowsSystem32SYSFER.DLL
sModule loaded: C:DevelopmentChartDirectorqtdemobuild-helloworld-Desktop_Qt_5_8_0_MSVC2015_64bit-Debugdebugchartdir60.dll
sModule loaded: C:QtQt5.8.05.8msvc2015_64binQt5Widgetsd.dll
sModule loaded: C:Windowssystem32GDI32.dll
sModule loaded: C:Windowssystem32USER32.dll
sModule loaded: C:Windowssystem32LPK.dll
sModule loaded: C:Windowssystem32USP10.dll
sModule loaded: C:Windowssystem32msvcrt.dll
sModule loaded: C:QtQt5.8.05.8msvc2015_64binQt5Guid.dll
sModule loaded: C:Windowssystem32ole32.dll
sModule loaded: C:Windowssystem32RPCRT4.dll
sModule loaded: C:QtQt5.8.05.8msvc2015_64binQt5Cored.dll
sModule loaded: C:Windowssystem32SHELL32.dll
sModule loaded: C:Windowssystem32SHLWAPI.dll
sModule loaded: C:Windowssystem32ADVAPI32.dll
sModule loaded: C:WindowsSYSTEM32sechost.dll
sModule loaded: C:Windowssystem32WS2_32.dll
sModule loaded: C:Windowssystem32NSI.dll
sModule loaded: C:Windowssystem32MPR.dll
sModule loaded: C:Windowssystem32WINMM.dll
sModule loaded: C:Windowssystem32MSVCP140D.dll
sModule loaded: C:Windowssystem32VCRUNTIME140D.dll
eERROR: Process crashed
dCDB PROCESS FINISHED, status 1, exit code -1073741515
dNOTE: ENGINE ILL ******
dState changed from EngineSetupRequested(1) to EngineShutdownRequested(19) [master]
dQUEUE: SHUTDOWN ENGINE
dCALL: SHUTDOWN ENGINE
dNOTE: ENGINE SHUTDOWN OK
dState changed from EngineShutdownRequested(19) to EngineShutdownOk(21) [master]
dState changed from EngineShutdownOk(21) to DebuggerFinished(22) [master]
dQUEUE: FINISH DEBUGGER
dNOTE: FINISH DEBUGGER
dHANDLE RUNCONTROL FINISHED
sDebugger finished.
------------------------------------------------------------------------------------

I don't understand why this is crashing instantly. I'm using the same environment as I've used to create several other successful Qt based applications. What am I missing?

  Re: Qt sample code crashes imediately
Posted by Peter Kwan on Feb-22-2017 18:24
Attachments:
Hi Brandon,

I have just tried myself with QT 5.8 and Visual Studio 2015, and it works normally in my case. I have attached some screen shots for your reference.

scrshot1.png: Download "QT 5.8.0 for Windows 64-bit (VS 2015, 1.0GB)

scrshot2.png: After installing QT, it should ask you to open the QT Creator.

scrshot3.png: In the QT Creator, you can open the project file "ChartDirectorqtdemohelloworldhelloworld.pro". It should prompt you to use the
"Desktop QT 5.8.0 MSVC2015_64bit" kit. (NOTE: After downloading ChartDirector, remember to "unblock" it before "unzipping" it. See "http://www.advsofteng.com/unblock_zip.html".)

scrshot4.png: After that, it should open the helloworld project.

scrshot5.png: When the run button is processed, the code should compile and run normally.

If the above still does not solve the problem, would you mind to clarify how did not compile and run the program, and obtain the debugger output? Are you using QT Creator as the IDE and the Visual Studio 2015 C++ compiler, or using other IDE or using the command line?

I have checked your debug message. There is a line "dCDB PROCESS FINISHED, status 1, exit code -1073741515". The exit code -1073741515 is a Windows error code. It means "The program cannot be executed because a file is missing." It should report which file is missing but apparently the debugger does not print that out. May be you can try to go to the directory that contains "helloworld.exe", and check if the file "chartdir60.dll" is in the same directory (if not, please copy it manually to that directory), and try to double click on "helloworld.exe" to see if it can run.

Regards
Peter Kwan
scrshot1.png
scrshot2.png
scrshot3.png
scrshot4.png
scrshot5.png