NULL pointer When 3D acceleration is enable

Discussions related to using the OSE version of VirtualBox.
Post Reply
QH
Posts: 5
Joined: 3. Feb 2015, 09:22

NULL pointer When 3D acceleration is enable

Post by QH »

Hello, I compile the source code on Windows 7(32) system. I compile the source code follow the instruction on the websit of virtualbox.
The VirtualBox.exe runs ok when NO 3d acceleration config. When the 3D acceleration is on, start the vm cause the virtualbox.exe crash!

Code: Select all

int Display::crCtlSubmit(struct VBOXCRCMDCTL* pCmd, uint32_t cbCmd, PFNCRCTLCOMPLETION pfnCompletion, void *pvCompletion)
{
    return mpDrv->pVBVACallbacks->pfnCrCtlSubmit(mpDrv->pVBVACallbacks, pCmd, cbCmd, pfnCompletion, pvCompletion);
}
the mpDrv is NULL. The windbg shows mpDrv is NOT null.

Code: Select all

(aac.bac): Access violation - code c0000005 (!!! second chance !!!)
eax=00000000 ebx=002bbd44 ecx=002bb840 edx=02a097e8 esi=002bb820 edi=002bb8ac
eip=5694bcdf esp=002bb818 ebp=002bb828 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206
VBoxC!Display::crCtlSubmitSync+0x1f:
5694bcdf 8b4868          mov     ecx,dword ptr [eax+68h] ds:0023:00000068=????????
0:000> kv
ChildEBP RetAddr  Args to Child              
002bb828 569487b1 002bb840 00000060 002bba08 VBoxC!Display::crCtlSubmitSync+0x1f (FPO: [Non-Fpo]) (CONV: thiscall) [d:\virtualbox\src\vbox\main\src-client\displayimpl.cpp @ 4446]
002bb8ac 569479c4 0295e0b0 00000000 00000000 VBoxC!Display::crViewportNotify+0x91 (FPO: [Non-Fpo]) (CONV: thiscall) [d:\virtualbox\src\vbox\main\src-client\displayimpl.cpp @ 3639]
*** WARNING: Unable to verify checksum for d:\SourceCode\vbox-log\bin\VirtualBox.exe
002bb8e8 0170e221 02a0983c 00000000 00000000 VBoxC!Display::ViewportChanged+0x104 (FPO: [Non-Fpo]) (CONV: stdcall) [d:\virtualbox\src\vbox\main\src-client\displayimpl.cpp @ 3516]
002bb914 01436142 00000000 00000000 00000000 VirtualBox!CDisplay::ViewportChanged+0xa1 (FPO: [Non-Fpo]) (CONV: thiscall) [d:\virtualbox\out\win.x86\debug\obj\virtualbox\include\comwrappers.cpp @ 14158]
002bba14 01457b48 02a4a458 002bbd44 00000001 VirtualBox!UIMachineView::eventFilter+0x142 (FPO: [Non-Fpo]) (CONV: thiscall) [d:\virtualbox\src\vbox\frontends\virtualbox\src\runtime\uimachineview.cpp @ 1008]
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for d:\SourceCode\vbox-log\bin\QtCore4.dll - 
002bba3c 57a2c277 02a4a458 002bbd44 002bbd44 VirtualBox!UIMachineViewNormal::eventFilter+0x148 (FPO: [Non-Fpo]) (CONV: thiscall) [d:\virtualbox\src\vbox\frontends\virtualbox\src\runtime\normal\uimachineviewnormal.cpp @ 112]
WARNING: Stack unwind information not available. Following frames may be wrong.
002bbc8c 57a2c15d 02a4a458 002bbd44 d6c2fcaa QtCore4!QCoreApplicationPrivate::sendThroughObjectEventFilters+0x57
002bbccc 57a2c976 02111740 002bbd44 5717c129 QtCore4!QCoreApplication::notifyInternal+0x8d
00000000 00000000 00000000 00000000 00000000 QtCore4!QCoreApplication::sendEvent+0x26
0:000> dt this
Local var @ 0x1ab464 Type Display*
0x0288da80 
   +0x000 __VFN_table : 0x58b5b6a8 
   +0x008 m_dwRef          : 0n3
   +0x008 m_pOuterUnknown  : 0x00000003 IUnknown
   +0x00c m_critsec        : ATL::CComAutoDeleteCriticalSection
   +0x004 __VFN_table : 0x58b5b694 
   +0x028 m_pUnkMarshaler  : ATL::CComPtr<IUnknown> { 003b2418 } 
   +0x02c mState           : 1 ( Ready )
   +0x030 mStateChangeThread : 0x021ee450 RTTHREADINT
   +0x034 mCallers         : 0
   +0x038 mZeroCallersSem  : (null) 
   +0x03c mInitUninitSem   : (null) 
   +0x040 mInitUninitWaiters : 0
   +0x044 mStateLock       : util::WriteLockHandle
   +0x04c mObjectLock      : 0x028bd450 util::RWLockHandle
   +0x050 __VFN_table : 0x58b5b670 
   =58bd26b0 ATL::IDispatchImpl<IEventListener,&IID_IEventListener,&LIBID_VirtualBox,1,3,ATL::CComTypeInfoHolder>::_tih : ATL::CComTypeInfoHolder
   +0x054 __VFN_table : 0x58b5b61c 
   =58bd3810 ATL::IDispatchImpl<IDisplay,&IID_IDisplay,&LIBID_VirtualBox,1,3,ATL::CComTypeInfoHolder>::_tih : ATL::CComTypeInfoHolder
   +0x058 __VFN_table : 0x58b5b60c 
   =58b63ea8 Display::DrvReg  : PDMDRVREG
   +0x05c mParent          : 0x021ee9e8 Console
   +0x060 mpDrv            : 0x028f10f0 DRVMAINDISPLAY
   +0x064 mpVMMDev         : (null) 
   +0x068 mfVMMDevInited   : 0
   +0x06c mcMonitors       : 1
   +0x070 maFramebuffers   : [64] _DISPLAYFBINFO
   +0x2a70 mLastAddress     : (null) 
   +0x2a74 mLastBytesPerLine : 0
   +0x2a78 mLastBitsPerPixel : 0
   +0x2a7c mLastWidth       : 0
   +0x2a80 mLastHeight      : 0
   +0x2a84 mLastFlags       : 0
   +0x2a88 mpVbvaMemory     : (null) 
   +0x2a8c mfVideoAccelEnabled : 0
   +0x2a8d mfVideoAccelVRDP : 0
   +0x2a90 mfu32SupportedOrders : 0
   +0x2a94 mcVideoAccelVRDPRefs : 0n0
   +0x2a98 mpPendingVbvaMemory : (null) 
   +0x2a9c mfPendingVideoAccelEnable : 0
   +0x2a9d mfMachineRunning : 0
   +0x2a9e mfCrOglDataHidden : 0
   +0x2aa0 mpu8VbvaPartial  : (null) 
   +0x2aa4 mcbVbvaPartial   : 0
   +0x2aa8 mhCrOglSvc       : 0x0211e818 Void
   +0x2aac mCrOglCallbacks  : CR_MAIN_INTERFACE
   +0x2ab0 mfCrOglVideoRecState : 0
   +0x2ab4 mCrOglScreenshotData : CRVBOXHGCMTAKESCREENSHOT
   +0x2ad8 mCrOglScreenshotCtl : VBOXCRCMDCTL_HGCM
   +0x2af8 mVBVALock        : RTCRITSECT
   +0x2b18 mfu32PendingVideoAccelDisable : 0
   +0x2b1c mSaveSeamlessRectLock : RTCRITSECT
   +0x2b3c mu32UpdateVBVAFlags : 0
The Display::mpDrv initialize in the Display::drvConstruct.
1. Is the initialization is after the crCtlSubmit call???
2. When the Display::drvConstruct is called???

I suppose that some dll's version is NOT correct??[/size]
Attachments
AutoConfig.kmk.txt
Config file
(1.99 KiB) Downloaded 42 times
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: NULL pointer When 3D acceleration is enable

Post by frank »

Which version of the source code tarball did you use?
bird
Oracle Corporation
Posts: 127
Joined: 10. May 2007, 10:27

Re: NULL pointer When 3D acceleration is enable

Post by bird »

I think the problem you're seeing was addressed about 10 months ago.
-bird
Knut St. Osmundsen
Oracle Corporation
QH
Posts: 5
Joined: 3. Feb 2015, 09:22

Re: NULL pointer When 3D acceleration is enable

Post by QH »

Frank Mehnert wrote:Which version of the source code tarball did you use?
The source version is: 4.8.3
I'll update the source and have a try! Thanks!
QH
Posts: 5
Joined: 3. Feb 2015, 09:22

Re: NULL pointer When 3D acceleration is enable

Post by QH »

bird wrote:I think the problem you're seeing was addressed about 10 months ago.
-bird
The source date is 2014.4
Post Reply