#2548 closed defect (fixed)
Saved state is discarded after VERR_NO_MEMORY
Reported by: | Konstantin Vlasov | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 2.0.4 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Windows |
Description
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.
Attachments (3)
Change History (6)
by , 16 years ago
comment:1 by , 16 years ago
i have the same here. i've raised memory used by my VM and it discard all my data and changes.
by , 16 years ago
Attachment: | debian-2008-11-27-17-23-09.log added |
---|
after.. system discard all changes
comment:2 by , 16 years ago
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.
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 2.1. An out of memory error could always occur, but your saved state will be kept around.
Log file of the VM