<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">this application crashes happens when there is only one virtual disk<BR><BR>--- On <B>Sun, 8/16/09, Huihong Luo <I><huisinro@yahoo.com></I></B> wrote:<BR>
<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: a process crash bug<BR>To: vbox-dev@virtualbox.org<BR>Date: Sunday, August 16, 2009, 11:04 PM<BR><BR>
<DIV id=yiv1557743639>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Sometimes, the virtualbox gui crashes when a hard disk is deleted from media dialog.</DIV>
<DIV>see the following call stack. (in amd64 host), happens also on 32-bit host</DIV>
<DIV> </DIV>
<DIV>seems crashed from VBoxMediaManagerDLg.cpp line 1441, </DIV>
<DIV> </DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2>
<DIV>Unhandled exception at 0x6709d624 in VirtualBox.exe: 0xC0000005: Access violation reading location 0x0000000000000000.</DIV></FONT></FONT>
<DIV> </DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2>
<DIV></FONT></FONT><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2>if</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2> (item)</DIV>
<DIV>{</DIV>
<DIV>QString usage = item->usage().isNull() ?</DIV>
<DIV>formatPaneText (tr (</FONT></FONT><FONT face="Courier New" color=#a31515 size=2><FONT face="Courier New" color=#a31515 size=2><FONT face="Courier New" color=#a31515 size=2>"<i>Not Attached</i>"</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2>), </FONT></FONT><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2>false</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2>) :</DIV>
<DIV>formatPaneText (item->usage());</DIV>
<DIV></FONT></FONT><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2>if</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2> (item->treeWidget() == mHardDiskView)</DIV>
<DIV>{</DIV>
<DIV>mHdsPane1->setText (formatPaneText (item->location(), </FONT></FONT><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2>true</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2>, </FONT></FONT><FONT face="Courier New" color=#a31515 size=2><FONT face="Courier New" color=#a31515 size=2><FONT face="Courier New" color=#a31515 size=2>"end"</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2>));</DIV>
<DIV>mHdsPane2->setText (formatPaneText (QString (</FONT></FONT><FONT face="Courier New" color=#a31515 size=2><FONT face="Courier New" color=#a31515 size=2><FONT face="Courier New" color=#a31515 size=2>"%1 (%2)"</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2>).arg (item->hardDiskType())</DIV>
<DIV>.arg (item->hardDiskFormat()), </FONT></FONT><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2><FONT face="Courier New" color=#0000ff size=2>false</FONT></FONT></FONT><FONT face="Courier New" size=2><FONT face="Courier New" size=2>)); <======== line 1441</DIV>
<DIV>mHdsPane3->setText (usage);</DIV>
<DIV>}</DIV></FONT></FONT>
<DIV> </DIV>
<DIV>call stack:</DIV>
<DIV> </DIV>
<DIV> QtCore4.dll!000000006709d624() <BR> [Frames below may be incorrect and/or missing, no symbols loaded for QtCore4.dll] <BR> QtCore4.dll!000000006709d7a5() <BR>> VirtualBox.exe!VBoxMediaManagerDlg::processCurrentChanged(QTreeWidgetItem * aItem=0x0000000000000020, QTreeWidgetItem * aPrevItem=0x00000000007b4a70) Line 1441 + 0x189 bytes C++<BR> VirtualBox.exe!VBoxMediaManagerDlg::qt_metacall(QMetaObject::Call _c=9135792, int _id=1219528, void * * _a=0x0000000000000067) Line 121 + 0x16 bytes C++<BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!000000006718436f() <BR> QtGui4.dll!0000000065606761() <BR> QtGui4.dll!00000000656167d2() <BR> VirtualBox.exe!QITreeWidget::qt_metacall(QMetaObject::Call _c=43623440, int _id=1219992, void * * _a=0x0000000002a25aa0) Line
63 C++<BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!000000006718436f() <BR> QtGui4.dll!00000000655d4a4a() <BR> QtGui4.dll!000000006557a605() <BR> QtGui4.dll!000000006560ba72() <BR> VirtualBox.exe!VBoxMediaManagerDlg::processCurrentChanged(QTreeWidgetItem * aItem=0x0000000000000000, QTreeWidgetItem * aPrevItem=0x00000000007b4a70) Line 1399 + 0x7e bytes C++<BR> VirtualBox.exe!VBoxMediaManagerDlg::qt_metacall(QMetaObject::Call _c=9135792, int _id=1221352, void * * _a=0x0000000000000067) Line 121 + 0x16 bytes C++<BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!000000006718436f() <BR> QtGui4.dll!0000000065606761() <BR> QtGui4.dll!00000000656167d2() <BR> VirtualBox.exe!QITreeWidget::qt_metacall(QMetaObject::Call _c=InvokeMetaMethod, int
_id=0, void * * _a=0x0000000002a25aa0) Line 63 C++<BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!000000006718436f() <BR> QtGui4.dll!00000000655dd4d5() <BR> QtGui4.dll!00000000655e08ac() <BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!000000006718436f() <BR> QtCore4.dll!00000000671c6d63() <BR> QtCore4.dll!000000006715ed5b() <BR> QtGui4.dll!000000006560ac1d() <BR> QtGui4.dll!000000006560b30d() <BR> VirtualBox.exe!MediaItem::`scalar deleting destructor'() + 0x30 bytes C++<BR> VirtualBox.exe!VBoxMediaManagerDlg::mediumRemoved(VBoxDefs::MediaType aType=1221552, const QString & aId={...}) Line 914 C++<BR> VirtualBox.exe!VBoxMediaManagerDlg::qt_metacall(QMetaObject::Call _c=1079203984, int _id=1222568, void * *
_a=0x0000000000000009) Line 109 + 0x12 bytes C++<BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!000000006718436f() <BR> VirtualBox.exe!VBoxGlobal::mediumRemoved(VBoxDefs::MediaType _t1=MediaType_HardDisk, const QString & _t2={...}) Line 215 C++<BR> VirtualBox.exe!VBoxGlobal::removeMedium(VBoxDefs::MediaType aType=MediaType_HardDisk, const QString & aId={...}) Line 2611 C++<BR> VirtualBox.exe!VBoxMediaManagerDlg::doRemoveMedium() Line 1117 C++<BR> VirtualBox.exe!VBoxMediaManagerDlg::qt_metacall(QMetaObject::Call _c=9160240, int _id=0, void * * _a=0x0000000000000006) Line 115 + 0x8 bytes C++<BR> QtCore4.dll!0000000067183fef() <BR> QtCore4.dll!0000000067184402() <BR> QtGui4.dll!000000006500be6d() <BR> QtGui4.dll!00000000653da539()
<BR> QtGui4.dll!00000000653da897() <BR> QtGui4.dll!00000000654c997f() <BR> QtGui4.dll!0000000065086d45() <BR> QtGui4.dll!0000000065020d66() <BR> QtGui4.dll!0000000065025e71() <BR> QtCore4.dll!0000000067167376() <BR> QtGui4.dll!0000000065025288() <BR> QtGui4.dll!000000006509495f() <BR> QtGui4.dll!0000000065097ac6() <BR> user32.dll!0000000077c439fc() <BR> user32.dll!0000000077c43e9c() <BR> QtCore4.dll!000000006719ca00() <BR> QtGui4.dll!0000000065096cd5() <BR> QtCore4.dll!0000000067166fd1() <BR> QtCore4.dll!000000006716bc09() <BR> VirtualBox.exe!TrustedMain(int argc=1, char * * argv=0x0000000000000000, char * * __formal=0x00000000007e7e60) Line 554 + 0x6
bytes C++<BR> VirtualBox.exe!main(int argc=1, char * * argv=0x0000000000000001, char * * envp=0x0000000000000001) Line 647 C++<BR> VirtualBox.exe!WinMain() + 0x236 bytes C++<BR> VirtualBox.exe!__tmainCRTStartup() Line 589 + 0x26 bytes C<BR> kernel32.dll!0000000077d596cc() <BR></DIV></TD></TR></TBODY></TABLE></DIV></BLOCKQUOTE></td></tr></table>