<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>I did some more investigation, the hang is caused by this call:</DIV>
<DIV> </DIV><FONT size=2>
<DIV>DECLCALLBACK(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2>) Console::saveStateThread(RTTHREAD Thread, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>void</FONT></FONT><FONT size=2> *pvUser)</DIV>
<DIV>{</DIV>
<DIV> </DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>int</FONT></FONT><FONT size=2> vrc = VMR3Save(that->mpVM,</DIV>
<DIV>task->mSavedStateFile.c_str(),</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>false</FONT></FONT><FONT size=2>, </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>/*fContinueAfterwards*/</DIV></FONT></FONT><FONT size=2>
<DIV>Console::stateProgressCallback,</DIV>
<DIV></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>static_cast</FONT></FONT><FONT size=2><VMProgressTask*>(task.get()),</DIV>
<DIV>&fSuspenededBySave);                      <====</DIV></FONT>
<DIV></FONT> </DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>after 0% was printed out, VMR3Save() never returns.</DIV>
<DIV> </DIV>
<DIV>Interestingly, the freeze might to do with 2D accleration, because if I disble 2D acceleration, it does not occur that often. </DIV>
<DIV> </DIV>
<DIV>The freeze won't occur if doing saving state from the vm GUI console, the Close button.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><BR>--- On <B>Fri, 7/23/10, Huihong Luo <I><huisinro@yahoo.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Huihong Luo <huisinro@yahoo.com><BR>Subject: savestate still hangs sometimes (reported before)<BR>To: vbox-dev@virtualbox.org<BR>Date: Friday, July 23, 2010, 6:53 PM<BR><BR>
<DIV id=yiv60347997>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>when 2D acceleration is enabled</DIV>
<DIV> </DIV>
<DIV>c:\virtualbox-dev\vbox\out\win.x86\release\bin>VBoxManage.exe controlvm vm1 savestate<BR>0%...</DIV>
<DIV> </DIV>
<DIV>hangs after 0% is displayed.</DIV>
<DIV> </DIV>
<DIV>If doing from the Close menu, after dialog box is displayed, then choose Save State, then works well.</DIV>
<DIV> </DIV>
<DIV>I tried to break the code, it seems stop inside some Windows message loop.</DIV>
<DIV> </DIV>
<DIV>renderspu_init.c<BR>renderSPUWindowThreadProc()</DIV>
<DIV>{</DIV>
<DIV>...</DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<DIV>else</DIV></FONT></FONT><FONT size=2>
<DIV>{</DIV>
<DIV>TranslateMessage(&msg);</DIV>
<DIV>DispatchMessage(&msg);</DIV>
<DIV>}</DIV>
<DIV>...</DIV></FONT>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>This is very annoying. need to fix these crash bugs when vm is shutting down.</DIV></TD></TR></TBODY></TABLE></DIV></BLOCKQUOTE></td></tr></table>