crash with Arithmetic exception in layout_buttons() at libgdl/gdl-switcher.c:315
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Alex Valavanis | ||
Bug Description
Forwarding crash reported on irc by houz:
Issue: in libgdl/
Steps to reproduce:
1) start inkscape,
2) open fill&stroke dialog,
3) open alignment dialog (both default to be docked over here),
4) drag the lower dialog up to the upper until the small rectangle in the middle of the upper dialog appears.
5) drop the dialog there.
6) click on the canvas.
-> crash:
Program received signal SIGFPE, Arithmetic exception.
0x087e09e3 in layout_buttons (switcher=
315 while (num_btns % btns_per_row > 1)
System info:
Inkscape 0.48+devel r10922
Debian Sid (32bit), GCC 4.6
GTK+ 2.24.8
Not reproduced with Inkscape 0.48.1 on the same system.
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Additional info:
The crash was reported after discussing recent changes in the dock behavior how multiple dialogs in the main dock are laid out:
Inkscape 0.48.2 and earlier builds from trunk (before the recent changes to 'src/libgdl') always add docked dialogs in a single column by default - expanding the dock vertically and displaying a scrollbar if the sum of their heights exceeds the max height of the dock in the current document window.
Recently, this behavior changed: multiple dialogs now are often laid out on top of each other with a row (or column) of switcher buttons below (e.g. if multiple docked dialogs had been minimized and then de-minimized again). This kind of layout can also be achieved intentionally (even in 0.48.x) by drag&dropping a docked dialog onto the center of another docked dialog.
It seems unclear (or somewhat random) what sequence of steps (open docked dialog, minimize, de-minimize) exactly triggers which dialog layout is used in the main dock.