After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 161748 - gedit cannot select text after used some time
gedit cannot select text after used some time
Status: RESOLVED INCOMPLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.6.x
Other Linux
: Normal normal
: Need diagnosis
Assigned To: gtk-bugs
gedit QA volunteers
Depends on:
Blocks:
 
 
Reported: 2004-12-20 03:26 UTC by qi
Modified: 2010-02-13 13:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description qi 2004-12-20 03:26:48 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?
Comment 1 Liao Haohui 2004-12-26 04:18:35 UTC
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.
Comment 2 Paolo Borelli 2004-12-26 09:41:01 UTC
reassigning to GtkTextView
Comment 3 Matthias Clasen 2004-12-27 06:38:09 UTC
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

Comment 4 Liao Haohui 2005-01-04 14:38:46 UTC
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.
Comment 5 Matthias Clasen 2005-01-05 05:21:13 UTC
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)
Comment 6 qi 2005-01-12 08:37:15 UTC
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. 
Comment 7 fiag 2005-03-05 03:35:17 UTC
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.
Comment 8 Ji Guang 2006-05-07 01:40:40 UTC
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~)
Comment 9 Paolo Borelli 2009-08-16 13:08:55 UTC
does this still happen with newer versions?
Comment 10 André Klapper 2009-11-08 13:53:40 UTC
NEEDINFO as per last question.
Comment 11 Tobias Mueller 2010-02-13 13:50:00 UTC
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!