Partition graph disappears after a swap partition has been deleted

Bug #583746 reported by fabiengb
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gparted

On Ubuntu 10.04
GParted 0.5.1-1ubuntu2

A disk include a swap partition that is wanted to be deleted : http://img8.imageshack.us/img8/4827/capturedevsdagparted.png

After having deleted the swap partition, the partition table graph disappeared : http://img535.imageshack.us/img535/7806/capturedevsdagparted1.png

The graph can be retrieved by selecting another disk, and selecting back the disk we were working on.

Revision history for this message
Curtis Gedak (gedakc) wrote :

Thank you for reporting this problem.

The visual display of the disk seems to consistently disappear when enough operations have been added to the queue so that a scrollbar is required (about 4 operations).

I have been able to prevent this from happening if I comment out the following lines in HBoxOperations.cc::load_operations:

 //make scrollwindow focus on the last operation in the list
 if ( liststore_operations ->children() .size() > 0 )
  treeview_operations .set_cursor( static_cast<Gtk::TreePath>( static_cast<Gtk::TreeRow>(
     *(--liststore_operations ->children() .end()) ) ) ) ;

Currently in the git respository these can be seen at the following link:
http://git.gnome.org/browse/gparted/tree/src/HBoxOperations.cc#n76

Interestingly, if I change the "set_cursor" method to a "scroll_to_row" method, then this problem does not occur for an additional 2 operations (about 6 operations total).

The exact cause of this problem is still a mystery.

As a side note, a similar problem can occur when undoing many operations.

Revision history for this message
Curtis Gedak (gedakc) wrote :

A fix to prevent the visual disk display area from disappearing has been committed in the upstream GParted project.

The relevant git commit can be viewed at the following link:
http://git.gnome.org/browse/gparted/commit/?id=ec876448b4539a1e25272fe3f9ebb44552d3df53

This enhancement is planned for inclusion in the next upstream release of GParted (0.8.0).

In the meantime, a work around is to click on the missing virtual disk display area so that the display is redrawn.

Revision history for this message
Curtis Gedak (gedakc) wrote :

GParted 0.8.0 is planned for upstream release on Feb 15, 2011.

For more details on this release, see:

Development Plans for the Next Release of GParted (0.8.0)
http://gparted-forum.surf4.info/viewtopic.php?id=14391

Revision history for this message
Curtis Gedak (gedakc) wrote :

GParted 0.8.0 was released on Feb 15, 2011.

Revision history for this message
Phillip Susi (psusi) wrote :

Marking as fix released as we are running 0.8.1 now.

Changed in gparted (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.