VirtualBox

Opened 7 years ago

Last modified 7 years ago

#17249 new defect

Opening VM Settings dialog can hang (infinite loop) if column is narrow

Reported by: projectgus Owned by:
Component: GUI Version: VirtualBox 5.2.0
Keywords: Cc:
Guest type: other Host type: other

Description

After upgrading to virtualbox 5.2.0-1 I found that opening Settings for any VM would hang the VirtualBox process (100% CPU usage). Deleting local settings, recreating VMs, etc, did not help with this.

After building the SVN trunk locally I found that it was infinite looping in SFTreeItemView::processColumn(). The "strOneString" variable had become an empty string (iTextWidth == 0) but as iIdentSize > cWidth, the loop condition was always true.

I believe this bug can always be triggered if the column has been resized to a low width (ie if cWidth has a low value) and if m_enmFormat == FormatType_EllipsisEnd. Possibly under other conditions as well.

Simple patch to break out of the loop if iTextWidth == 0 attached. This fixes the problem for me.

Attachments (1)

fix-zero-width-machine-settings.patch (680 bytes ) - added by projectgus 7 years ago.
Patch which fixes the infinite loop

Download all attachments as: .zip

Change History (3)

by projectgus, 7 years ago

Patch which fixes the infinite loop

comment:1 by projectgus, 7 years ago

Looks like this has been fixed in SVN now:


r69710 | vboxsync | 2017-11-16 22:12:36 +1100 (Thu, 16 Nov 2017) | 1 line

FE/Qt: VM settings: Shared Folders page: Fixing potential hang.

comment:2 by projectgus, 7 years ago

Confirmed fixed in 5.2.2.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette