Jump to content

[SOLVED] A potential bug?


photo

Recommended Posts

Recently our test team found a bug during closing the program. It occurs very infrequently but does appear. We found the program will be deadlocked when sometimes it is closed during shutdown. I was able to reproduce the error and traced the bug and found it was not able to free the OpenAL dll and stopped over there therefore the program was deadlocked. We doublt if it was our problem so we also test with the original Unigine suite and the bug was able to be reproduced. It would happen if you repeatedly start and close the program for about 15-20mins. We tested on a Windows x86 machine, and our test program is similar as below:

 

 

PROCESS_INFORMATION pInfoChild;
memset(&pInfoChild,0x0,sizeof(pInfoChild));
STARTUPINFO stInfo;
memset(&stInfo,0x0,sizeof(stInfo));
stInfo.cb = sizeof(stInfo);
 
while (1) {
BOOL result = CreateProcess("D:\\Editor.exe",
NULL, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &stInfo, &pInfoChild);
 
//Sleep(5000);
HWND hWnd = NULL;
while (NULL == hWnd)
hWnd = FindWindow(NULL, "Unigine ");
 
while (!IsZoomed(hWnd))
Sleep(200);
 
PostMessage(hWnd, WM_CLOSE, 0, 0);
 
WaitForSingleObject(pInfoChild.hProcess, INFINITE);
}
 
Any clue?

 

Link to comment
  • 2 weeks later...
×
×
  • Create New...