From: SourceForge.net <no...@so...> - 2006-11-28 02:05:50
|
Bugs item #1600910, was opened at 2006-11-22 12:46 Message generated for change (Comment added) made by juhp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=650539&aid=1600910&group_id=108454 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: FrontEnd: GTK IMModule Group: 1.4.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jens-Ulrik Petersen (juhp) Assigned to: James Su (suzhe) Summary: clicking with gtk preedit can cause crash Initial Comment: [original report is https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=213796] To reproduce: 1. run "GTK_IM_MODULE=scim gtk-demo" and select Text Widget -> Hypertext (or Multiple Views) (alternatively gedit can also be used) 2. input one or more CJK character(s) at the end of the buffer and commit 4. enter again one or more CJK character(s) on the same line as above but do not commit 5. then click below the line with button-1 (left mouse button) and preedit will be reset 6. enter some CJK input again and do not commit 7. click below the line again with button-1 several times: the preedit will move to the beginning of the line and then the application crashes with output: Gtk-ERROR **: file gtktextsegment.c: line 196 (_gtk_char_segment_new): assertion failed: (gtk_text_byte_begins_utf8_char (text)) aborting... This happens with scim-1.4.5 but not with scim-bridge. ---------------------------------------------------------------------- >Comment By: Jens-Ulrik Petersen (juhp) Date: 2006-11-28 11:05 Message: Logged In: YES user_id=139853 Originator: YES Perhaps you are right, it could be a GtkTextView bug say: the gdb backtrace is certainly in gtk. But turning off the key snooper avoids the crashing at least. Also with the snooper the resetting of preedit is not consistent: it resets on an initial mouse click but not subsequent ones for me. Whereas without it always resets on a click consistently. ---------------------------------------------------------------------- Comment By: James Su (suzhe) Date: 2006-11-27 21:22 Message: Logged In: YES user_id=13130 Originator: NO I don't know why key snooper will cause this issue. Reset is not called by scim gtkimm itself, it's called by application. the snooper config key works for me. And it seems that it crashed in gtk rather than scim gtkimm. I'll investigate this issue further. However it'll be best if you could help me solve it. ---------------------------------------------------------------------- Comment By: Jens-Ulrik Petersen (juhp) Date: 2006-11-27 15:01 Message: Logged In: YES user_id=139853 Originator: YES A workaround seems to be to disable the key snooper in the scim gtkimm. BTW the snooper config key does not seem to work. ---------------------------------------------------------------------- Comment By: Jens-Ulrik Petersen (juhp) Date: 2006-11-22 14:36 Message: Logged In: YES user_id=139853 Originator: YES Should scim gtkimm always reset preedit on a mouse-click? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=650539&aid=1600910&group_id=108454 |