GNOME Bugzilla – Bug 604078
Crash when pressing Backspace with Free Select Tool
Last modified: 2009-12-09 21:42:25 UTC
this report has been filed here: "while the selecting the crop tool application hang." ".
+ Trace 219499
Thread 1 (process 5472)
Could you update to GIMP 2.6.7 and check if the problem can still be reproduced?
No need ,the bug is still there. gimp_free_select_tool_remove_last_segment() doesn't check if priv->n_segment_indices is already 0 before it decrements the number of indices. Thus it ends up calling gimp_free_select_tool_revert_to_last_segment() with n_segment_indices set to -1. And why the heck is this code reimplementing GArray?
Indeed, the step-by-step to reproduce is very easy: 1. Select the Free Select Tool 2. Press backspace Amazing how no one reported this yes, thanks a lot Pedro. I don't think I had a good reason not to use GArray, the code just evolved in that direction. No point in changing that now though.
Created attachment 149370 [details] [review] 0001-Bug-604078-Crash-when-pressing-Backspace-with-Free-S.patch
Committed to both branches. Closing as FIXED.