Glade closes unexpectedly with right-click cut and paste operations
Submitted by Dave Buchan
Created attachment 245556 Tarball containing glade file and screenshots of Ubuntu error dialog.
Operating System: Ubuntu 13.04 (Raring Ringtail) Glade 3.14.2
This issue manifested while converting a Glade 2 file containing GtkTables, GtkHBoxes, and GtkVBoxes, into a Glade 3 file which would use only GtkGrids.
When I right-click to cut items from the layout portion (the center panel) of the Glade screen and subsequently paste back into the layout portion somewhere else, Glade sometimes closes unexpectedly. Looking at log files, it appears to be a segmentation fault.
Actually, what I see is that it doesn't crash on the cut, but on the subsequent paste. I always paste into the layout area (center) with a right-click, and if I do all my cuts from the thingy on the right (is that a tree view?), I don't have any problems. I still paste into the layout area with right-click. I've done hundreds of cut-paste operations in this manner with no problems.
Based on that, it would seem that right-click cutting widgets from the layout (center) portion of Glade is doing something incorrectly such that a subsequent right-click paste into the layout portion of Glade will cause a buffer over-run.
So if I just do my right-click cuts from the treeview thingy (the right-hand panel) and right-click paste as usual into the layout portion, I'll have no problems.
I also tried to repeat this issue with just a GtkGrid and moving various labels and entries around. For some reason that worked fine, so maybe the issue only arises with GtkGrids placed within GtkTables?
After Glade unexpectedly closes, an Ubuntu error message dialog pops-up with details of the problem. Unfortunately, Ubuntu developers didn't make it so the user can select the info from this dialog and save it to a text file. It does ask if you wish to send the error report, but when I do so Wireshark shows no traffic, so who knows what goes on there. It's all very Microsoft-esque.
Since I can't select and copy the error messages, I've been forced to do some screen captures, which I have included here. Hopefully I grabbed some of the important bits.
To re-create the error:
Add one row to Table 3.
Put a grid of dimension 15 rows x 2 cols into the new bottom-left cell of Table 3.
Start cutting labels and entries from Table 3, and paste them into the grid. You can do all labels first and entries next, or mix it up - the crash should still occur. The important point here is, MAKE ALL CUTS FROM THE CENTER PANEL WITH RIGHT-CLICK, and then paste to the GTKGrid, also using right-clicks in the center panel.
The failure appears to be a seg-fault.
Attachment 245556, "Tarball containing glade file and screenshots of Ubuntu error dialog.":