TestExecute freezes when closing out AUT
When closing our application under test, either with the .Close() command or clicking the 'close' button, the TestComplete Shutdown Hook seems involved in a crash. This results in TestExecute not responding at all until it is killed. The final screenshot made is of our AUT screen 'fading', its screen having partially shut down.
Initially the issue seemed to be with the WaitProcess() call, but having removed this from our script, the issue still takes place. If helpful I can share a full error log with support. Here is an excerpt:
--------------- T H R E A D ---------------
Current thread (0x2706c400): JavaThread "TestComplete Shutdown Hook" [_thread_in_vm, id=9076, stack(0x29bd0000,0x29c20000)]
Stack: [0x29bd0000,0x29c20000], sp=0x29c1f9ec, free space=318k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x948b]
V [jvm.dll+0x27a73d]
V [jvm.dll+0x27a6da]
V [jvm.dll+0x1bd8a3]
V [jvm.dll+0x19e13d]
C [tcJavaHook.dll+0xc6be2]
C [tcJavaHook.dll+0xb7446]
j com.automatedqa.testcomplete015_011.ShutdownHook.run0(J)V+0
j com.automatedqa.testcomplete015_011.ShutdownHook.run()V+18
v ~StubRoutines::call_stub
V [jvm.dll+0x169b89]
V [jvm.dll+0x287b6b]
V [jvm.dll+0x16a218]
V [jvm.dll+0x16a3a8]
V [jvm.dll+0x1bfe7b]
V [jvm.dll+0x34305a]
V [jvm.dll+0x33d45a]
C [ucrtbase.dll+0x46403]
C [KERNEL32.DLL+0x167f9]
C [ntdll.dll+0x67f4d]
C [ntdll.dll+0x67f1b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.automatedqa.testcomplete015_011.ShutdownHook.run0(J)V+0
j com.automatedqa.testcomplete015_011.ShutdownHook.run()V+18
v ~StubRoutines::call_stub
siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), writing address 0x0000009c
Since this is specifically to do with TestComplete and your AUT, I suggest you open a ticket via https://support.smartbear.com/testcomplete/message/. As it will require SmartBear to debug/diagnose the issue with you.