This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 129928 - Key strokes ignored (was: Cannot write into document)
Summary: Key strokes ignored (was: Cannot write into document)
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords: JDK_SPECIFIC, RANDOM
: 138315 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-12 16:16 UTC by Lukas Hasik
Modified: 2011-06-09 09:57 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-03-12 16:16:52 UTC
Product Version: NetBeans IDE 6.0.1 (Build 200801291616)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)
Userdir: /space/netbeans/userdirs/nb601-HO

-I'm writing an html document in IDE. I'm also editing a java source code. And using copy/paste frequently
-after a while (hours) the editor (but the whole IDE as well) doesn't accept any key. I can select a text by mouse, I
can use menus with mouse. But keaybord is dead.
-restart helps
Comment 1 Vitezslav Stejskal 2008-03-13 09:54:30 UTC
If it affects the whole IDE the editor is unlikely to be at fault.
Comment 2 Lukas Hasik 2008-03-19 17:32:52 UTC
Jara found reproducible scenario on Ubuntu 8.04 with latest builds

-be in a document in editor
-press CTRL+SHIFT+N and the quickly ESC
->keyboard doesn't work in the whole IDE. User have to restart to be able to use it again

reassigning to AWT/Swing however I'm not sure about the category at all.
Comment 3 Jaromir Uhrik 2008-03-19 17:52:53 UTC
This issue seems to be OS specific - I cannot reproduce on Win XP nor Mac OS X.
Comment 4 David Simonek 2008-03-19 17:55:09 UTC
I saw similar error in the past - and it always turned to be JDK error. I'm getting tired as nearly all Swing bugs are
assigned to me. That's nothing personal, we just have poor system here and I feel like victim. I raised this issue
several times but nothing changed.

I don't know what to do with such error - if I enter it as JDK bug with such info, it will get closed immediately with
request for ten lines test case. So perhaps I could be starring at it in IZ and we will have NO-GO for 6.1.
Comment 5 David Simonek 2008-03-25 16:17:52 UTC
Of course I can't reproduce on my Ubuntu 7.10.
Comment 6 David Simonek 2008-03-26 11:29:48 UTC
lhasik, please run netbeans with:

-J-Dorg.netbeans.core.windows.ShortcutAndMenuKeyEventProcessor.level=0

which will enable logging of key presses. Do some typing in the editor and watch how logs are being printed. Then
reproduce error and try to type more. I would bet that nothing will be printed after bug appears - that would prove that
error is in JDK, because key events simply stop coming. And then you can file JDK bug.

passing to mslama, who has ubuntu 8.04 and can try to reproduce.
Comment 7 David Simonek 2008-03-27 16:48:00 UTC
We did some tests with lhasik with following results:

lhasik can successfully reproduce issue after say 30-50 repeats of steps mentioned above. We had logging enabled and it
stopped to log as soon as bug occurred - which proves that bug is in JDK, not in NetBeans, as all key events simply
stopped coming from JDK.

Issue is similar as http://www.netbeans.org/issues/show_bug.cgi?id=97249 with some important exceptions:
- it is *not* about MToolkit here
- only restart helps, no additional window opening neither window system reset helps.

related JDK bugs
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6598651
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6465038

I suggest to close as wontfix, because there is no chance to fix or workaround this on Netbeans side IMHO. However it
would be great to have it fixed on JDK side, so more often reproducible scenario is badly wanted...
Comment 8 mslama 2008-03-27 17:12:57 UTC
Lukas do you have compiz enabled or not? (Desktop effects.)
Comment 9 Lukas Hasik 2008-03-27 18:08:08 UTC
System > Preferences > Appearance > Visual Effects are set to None
Comment 10 Milan Kubec 2008-03-28 08:43:09 UTC
Reproducible for me on Ubuntu 7.10, no visual effects, JDK 1.6.0_05.
Comment 11 David Simonek 2008-03-28 09:18:58 UTC
mkubec, how frequently? If you can reproduce frequently, it would be good to enable JDK logging to send Oleg some info
what happens when bug occurs. I think info about logging is attached in 97249, thanks.
Comment 12 Milan Kubec 2008-03-28 09:35:28 UTC
Well, I thought it's more frequently than it really is :-) I will try to reproduce and possibly provide some logging info.
Comment 13 Milan Kubec 2008-03-31 08:48:01 UTC
I cannot find a way to reliably reproduce the problem, but it happens couple times in a day and it's very annoying - you
need to restart IDE to continue in your work.
Comment 14 mslama 2008-04-07 13:30:01 UTC
Closing as WONTFIX as it is JDK issue. Any additional info is welcome esp. how to reproduce in less steps.
Comment 15 Milan Kubec 2008-04-08 14:46:16 UTC
Workaround that works for me is to click another tab in editor and back, then it works again.
Comment 16 Jiri Prox 2008-06-26 09:38:38 UTC
*** Issue 138315 has been marked as a duplicate of this issue. ***
Comment 17 Marian Mirilovic 2011-06-09 09:57:01 UTC
v/c