[vbox-dev] savestate still hangs sometimes (reported before)

Huihong Luo huisinro at yahoo.com
Mon Aug 9 20:53:09 GMT 2010


did more debugging, and I found adding QCoreApplication::processEvents() might help to solve the freeze problems when powering off with saving state. Add "QCoreApplication::processEvents();" as first line to the following two methods.
 
if there is no other side effects, pls check in the changes:
 
UIMachineLogic.cpp:
 
void UIMachineLogic::sltMachineStateChanged()
{
// this is extremely import, freezes when hibernating otherwise
QCoreApplication::processEvents();
 
...
 
}
 
UIMachineView.cpp:
void UIMachineView::sltMachineStateChanged()
{
// this is extremely import, freezes when hibernating otherwise
QCoreApplication::processEvents();
...
}

--- On Mon, 8/9/10, Huihong Luo <huisinro at yahoo.com> wrote:


From: Huihong Luo <huisinro at yahoo.com>
Subject: Re: [vbox-dev] savestate still hangs sometimes (reported before)
To: vbox-dev at virtualbox.org
Date: Monday, August 9, 2010, 10:12 AM







I did some more investigation, the hang is caused by this call:
 
DECLCALLBACK(int) Console::saveStateThread(RTTHREAD Thread, void *pvUser)
{
 
int vrc = VMR3Save(that->mpVM,
task->mSavedStateFile.c_str(),
false, /*fContinueAfterwards*/
Console::stateProgressCallback,
static_cast<VMProgressTask*>(task.get()),
&fSuspenededBySave);                      <====
 
}
 
after 0% was printed out, VMR3Save() never returns.
 
Interestingly, the freeze might to do with 2D accleration, because if I disble 2D acceleration, it does not occur that often. 
 
The freeze won't occur if doing saving state from the vm GUI console, the Close button.
 
 


--- On Fri, 7/23/10, Huihong Luo <huisinro at yahoo.com> wrote:


From: Huihong Luo <huisinro at yahoo.com>
Subject: savestate still hangs sometimes (reported before)
To: vbox-dev at virtualbox.org
Date: Friday, July 23, 2010, 6:53 PM







when 2D acceleration is enabled
 
c:\virtualbox-dev\vbox\out\win.x86\release\bin>VBoxManage.exe controlvm vm1 savestate
0%...
 
hangs after 0% is displayed.
 
If doing from the Close menu, after dialog box is displayed, then choose Save State, then works well.
 
I tried to break the code, it seems stop inside some Windows message loop.
 
renderspu_init.c
renderSPUWindowThreadProc()
{
...
else
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
...
}
 
This is very annoying. need to fix these crash bugs when vm is shutting down.
-----Inline Attachment Follows-----


_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20100809/41633e2c/attachment.html>


More information about the vbox-dev mailing list