GNOME Bugzilla – Bug 161748
gedit cannot select text after used some time
Last modified: 2010-02-13 13:50:00 UTC
open gedit, edit some file for a while, such as half an hour. then you cannot select text by Shift+Arrowkeys, or by Mouse drag. after re-open gedit, you can select text again. and after some time, it can not again. I really don't know what triger it on. but it always works when i edit things. when i use bluefish, it has the same problem, maybe it is a gtk bug? my locale set to GBK, a chinese locale. and search the web, found somebody using japan locale also has this question. maybe it is because of east-asia characters?
I have exactly the same problem under Redhat 9.0. I have asked the question on linuxforum.org and linuxquestion.org. It seems that western users doesn't have such a problem. Someone suggested that Redhat might have problem with with X11 and asked me to try with kate (a KDE editor), similar text selection problem didn't turn up. I originally suspect that this might cause by the bug in GNOME lib. But I found later on that it is caused by GTK because running bluefish without GNOME also has such a problem. I suspect there must be something with GtkText* Widget. But I am still doing hard to understand how all GTK widgets are related.
reassigning to GtkTextView
This does not happen to me when doing the following on FC4: open gedit type "bla bla bla" wait for an hour select text using Ctrl-Shift-Arrows or Mouse Dragging
I have been doing the same thing under the locale en_GB and no problem seems to arise after two hours. But when I switch to the locale zh_CN.GBK (Just set the following before starting GNOME export XMODIFIERS=@im=XSIM export LANG=zh_CN export LC_ALL=zh_CN.GBK ) and try using gedit or bluefish to edit chinese documents. I trust that some of you may not know chinese, but it is not difficult to visit a site having chinese (like the debian site) and copy and paste from the chinese site. Try deleting some words and put in some words in what ever language you are using. Try after a while, may half an hour or even hours, and then try the text selection using shift-select or mouse-select. I have confirmed this many times. It seems that some are experiencing the same think. I found that under English environment without any chinese text character, text selection problem seems to not happen.
This makes it sound a lot like some interaction with the input method you are using. Does the same happen in a GtkEntry ? (You can e.g. find a GtkEntry in the find dialog of gedit)
yes. i think it is the same. now i found this issue happened in gtranslator, i am using it to translate some localization work. and when gtranslator can not select text, I can not select text in its "goto" window - i think it is a GtkEntry. and there is some difference between the GtkEntry and the GtkTextView, in the Entry text field, i can see the highlight blue background when i draging the mouse, while the shift+arrowkey don't have. but i can not select anything and when the mouse button was released, blue background disappear too.
I found this problem too, i have to reopen gedit or use gvim instead. use Debian sarge, locale: zh_CN.UTF-8, input method: fcitx.
I also encountered this problem. I use RHEL4U1, gedit, and input method fcitx. I'm afraid the problem is hard to crack. Linux programmers using Chinese is limited. (sigh~)
does this still happen with newer versions?
NEEDINFO as per last question.
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!