#2548 closed defect (fixed)
Saved state is discarded after VERR_NO_MEMORY
回報者: | Konstantin Vlasov | 負責人: | |
---|---|---|---|
元件: | other | 版本: | VirtualBox 2.0.4 |
關鍵字: | 副本: | ||
Guest type: | other | Host type: | Windows |
描述
Host OS: WinXP SP3 Guest OS: any
I tried to load a VM which was in saved state, but there was not enough memory on my host machine (many programs loaded), so I got VERR_NO_MEMORY. After that the saved state of this VM silently disappeared: in VB Manager it was shown in "Powered Off" state, and when I tried to open it again, it started loading from scratch, as if I discarded the saved state (which of course I did not). Log file of this VM is attached.
附加檔案 (3)
更動歷史 (6)
comment:1 16 年 前 由 編輯
i have the same here. i've raised memory used by my VM and it discard all my data and changes.
comment:2 16 年 前 由 編輯
I'm from #2611 I've got 1GB of host memory in Windows, I think 384MB of RAM in my Guest OS.
I really don't get why Windows would give you an error: at that moment my swapfile was barely used, so it should've just swapped bits of Eclipse/Firefox/Outlook/whatever away. Another indication might be that I closed outlook (200MB), started my virtual machine, and started outlook (again 200MB after loading), and then everything works fine. Maybe you use a different API to register memory, one that's guaranteed to be semi-realtime (which wouldn't give Windows the time to swap applications away). I can imagine that that's a good thing while running the virtual machine, but not while loading the virtual machine.
However, the real problem here is not that the out-of-memory-error appears, it is that the state of the machine is discarded. Can't you just ask if the user would like to try again later, after freeing memory? If it happens while the virtual machine isn't running, that's almost what happens: the machine is paused, and after closing Outlook/Eclipse/Firefox I can start it up again.
Log file of the VM