Ticket #5692 (closed defect: obsolete)

Opened 8 years ago

Last modified 3 years ago

OpenGL - ChoosePixelFormat Deadlock

Reported by: fercarv Owned by:
Priority: major Component: 3D support
Version: VirtualBox 3.1.0 Keywords: ChoosePixelFormat Deadlock
Cc: Guest type: Windows
Host type: Windows

Description (last modified by frank) (diff)

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
   ZeroMemory(&pfd, sizeof pfd);

   pfd.nSize = sizeof pfd;
   pfd.nVersion = 1;
   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


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.


Vbox1.log Download (48.7 KB) - added by fercarv 8 years ago.
Vbox1.2.log Download (48.7 KB) - added by fercarv 8 years ago.
VBox2.log Download (54.1 KB) - added by fercarv 8 years ago.
VS2008 Output.txt Download (2.8 KB) - added by fercarv 8 years ago.

Change History

Changed 8 years ago by fercarv

Changed 8 years ago by fercarv

Changed 8 years ago by fercarv

Changed 8 years ago by fercarv

comment:1 Changed 8 years ago by fercarv

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

comment:2 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to obsolete
  • Description modified (diff)
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use