VirtualBox

Ticket #5692 (new defect)

Opened 4 years ago

Last modified 4 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

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

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

Change History

Changed 4 years ago by fercarv

Changed 4 years ago by fercarv

Changed 4 years ago by fercarv

Changed 4 years ago by fercarv

comment:1 Changed 4 years ago by fercarv

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

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use