Opened 15 years ago
Closed 10 years ago
#5692 closed defect (obsolete)
OpenGL - ChoosePixelFormat Deadlock
Reported by: | Fernando | Owned by: | |
---|---|---|---|
Component: | 3D support | Version: | VirtualBox 3.1.0 |
Keywords: | ChoosePixelFormat Deadlock | Cc: | |
Guest type: | Windows | Host type: | Windows |
Description (last modified by )
I'm running a program that hangs with the following c++ code:
bool initopengl(int win) { int i; // get the device context (DC) hdc[win] = GetDC(hwdraw[win]); if (hdc[win] == NULL) return false; char xstr[MAX_PATH]; // set the pixel format for the DC PIXELFORMATDESCRIPTOR pfd; ZeroMemory(&pfd, sizeof pfd); pfd.nSize = sizeof pfd; pfd.nVersion = 1; pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; pfd.iPixelType = PFD_TYPE_RGBA; int format = ChoosePixelFormat(hdc[win], &pfd);//hangs in here ....
As mentioned it hangs (or enters in a deadlock)when calling ChoosePixelFormat function. This code runs on the host.
I'm using VS 2008 (not with sp1)
The host is MS Windows XP SP3 updated. The guest is MS Windows XP SP3 (didn't make yet the updates).
I'm using VB 3.1.0 with the associated GA installed, and with the following configuration for the VM: System:
RAM: 1500MB CPU: 1 VT-x/AMD-V: Enabled Nested Paging: Disabled
Display:
Graphic Memory: 128 MB 3D Acceleration: Enabled 2D Video Acceleration: Enabled
My video card is an ATI Radeon HD 3870 with the driver version 8.650.0.0
Another consequence of this situation is that the VM hangs when shutdown, whether i stop debugging or if i'm running the generated .exe kill the process.
I attached 3 files: 1 with the VB log until the moment that hangs when calling ChoosePixelFormat(VBoxlog1), the second with the log when shutting down (Vboxlog2) and other with the result in the Output window of VS2008.
Attachments (4)
Change History (6)
by , 15 years ago
by , 15 years ago
Attachment: | Vbox1.2.log added |
---|
by , 15 years ago
by , 15 years ago
Attachment: | VS2008 Output.txt added |
---|
comment:1 by , 15 years ago
comment:2 by , 10 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | new → closed |
Please ignore attachment Vbox1.2.log (it's the same Vbox1.log)