GNOME Bugzilla – Bug 132884
App crashes after several mouseclicks
Last modified: 2004-12-22 21:47:04 UTC
I tried to use conglomerate but it repeatly crashes after several mouseclicks in the editor. I couldn't find a case in which it definitly crashes but after some seconds of work it crashes with the following errormessage in the console: ** ERROR **: file cong-location.c: line 139 (cong_location_set_node_and_char_offset): assertion failed: (cong_location_is_valid(loc)) Hope you can drag it. Jan
Yes, double-clicking on an section a couple spaces after the end of a sentence will recreate this crash. This bug can be traced to the cong_location_calc_word_extent function, which highlights a word when it is double clicked. If the cursor is placed after the sentence and the user double-clicks, the end_char_index is allowed to go beyond the end. Please see the attached patch to fix this problem. Cheers--
Created attachment 25188 [details] [review] patch for cong-location.c (from version 7.12 source)
*** Bug 133182 has been marked as a duplicate of this bug. ***
The bug was reproduceable by me and not any more after applying the provide patch ( in the withoutdave branch ).
Comment on attachment 25188 [details] [review] patch for cong-location.c (from version 7.12 source) Patch status set
Applied to CVS HEAD
*** Bug 158416 has been marked as a duplicate of this bug. ***