VirtualBox

Opened 14 years ago

Closed 9 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 Frank Mehnert)

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)

Vbox1.log (48.7 KB ) - added by Fernando 14 years ago.
Vbox1.2.log (48.7 KB ) - added by Fernando 14 years ago.
VBox2.log (54.1 KB ) - added by Fernando 14 years ago.
VS2008 Output.txt (2.8 KB ) - added by Fernando 14 years ago.

Download all attachments as: .zip

Change History (6)

by Fernando, 14 years ago

Attachment: Vbox1.log added

by Fernando, 14 years ago

Attachment: Vbox1.2.log added

by Fernando, 14 years ago

Attachment: VBox2.log added

by Fernando, 14 years ago

Attachment: VS2008 Output.txt added

comment:1 by Fernando, 14 years ago

Please ignore attachment Vbox1.2.log (it's the same Vbox1.log)

comment:2 by Frank Mehnert, 9 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use