Ticket #6379 (closed defect: fixed)
VBoxManage crashes when saving state in the headless mode => Fixed in SVN/3.1.6
|Reported by:||decke||Owned by:|
|Version:||VirtualBox 3.1.4||Keywords:||vboxheadless savestate|
This Bug was reported by Alexander Zagrebin during a FreeBSD call for testers and only forwarded by me. This happened on FreeBSD with VirtualBox 3.1.4 and i could also reproduce that on Linux with VirtualBox 3.1.4.
Try these commands to reproduce the bug:
$ VBoxHeadless -s Test & $ VBoxManage controlvm Test savestate Sun VirtualBox Command Line Management Interface Version 3.1.4_OSE (C) 2005-2010 Sun Microsystems, Inc. All rights reserved. 0%...10%...20%... Error: failed to save machine state. No error message available!
The reason is an arithmetic exception (division by zero) in the displayMakeThumbnail (src/VBox/Main/DisplayImpl.cpp, line 161) due to cx and cy are set to 0.
cxThumbnail = (kMaxSizeThumbnail * cx) / cy;
One possible solution would be to not generate the thumbnail. Patches for this are attached.
- Summary changed from VBoxManage crashes when saving state in the headless mode to VBoxManage crashes when saving state in the headless mode => Fixed in SVN/3.1.6