This change causes serious side effects, pls ignore it. Switching display mode won't work well.
Sent from my iPhone On Aug 9, 2010, at 1:53 PM, Huihong Luo <[email protected]> wrote: 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 <[email protected]> wrote: From: Huihong Luo <[email protected]> Subject: Re: [vbox-dev] savestate still hangs sometimes (reported before) To: [email protected] 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 <[email protected]> wrote: From: Huihong Luo <[email protected]> Subject: savestate still hangs sometimes (reported before) To: [email protected] 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 [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev _______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
