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 134867 - Keyboard not responding when NetBeans writes any code in editor
Summary: Keyboard not responding when NetBeans writes any code in editor
Status: CLOSED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Sun Linux
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2008-05-12 15:53 UTC by redent
Modified: 2011-06-09 09:57 UTC (History)
0 users

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 redent 2008-05-12 15:53:11 UTC
I just started to reproduce an error everytime that NetBeans writes some code (like organize imports, refactor, ...) or
by simply pressing Ctrl+Space for auto completion. The keyboard stops responding (cursors, letters, hotkeys), the only
thing i can do to recover the control of the keyboard over the editor is  When i just installed NetBeans this error was
never happening, it started when i executed first:

export AWT_TOOLKIT=MToolkit

to solve the issue 117172 ( http://www.netbeans.org/issues/show_bug.cgi?id=117172 ). Once done that the issue 117172 is
solved for me, but it's then when the editor windows starts freezing.

Setting the variable to "" and restarting NetBeans solves this issue, but i see wrong sized or blank windows again.

The thing is that the error is reproducible 100% or 0% in the same circumstances by simply setting or unsetting the
environment variable. So i have to choose to see some blank (or wrong sized) windows or to see frozen windows.

OS: Ubuntu 8.04 (100% reproducible on 7.10 too)
Java Environment: Sun Java 1.6.0.06 JDK (100% reproducible on 1.5.15 too)
NetBeans 6.1 final (100% reproducible on 6.0 and 6.1rc1 too)
Comment 1 redent 2008-05-12 17:31:30 UTC
I think this may be the same, so probably not a NetBeans bug. Seems like a AWT or Java one.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6598651
Comment 2 redent 2008-05-14 12:05:01 UTC
I downloaded the latest JDK (1.6.0.10-b23) and it does the very same thing that it does with 1.6.0.06. I tried few
things more with 1.5.0.15 with the default AWT_TOOLKIT and i was only seeing grey windows (even the main window wasn't
displaying correctly), but when i set the AWT_TOOLKIT to MToolkit i got it to work perfectly (well, without the starting
splash screen and ugly appearence). No grey windows or keyboard freezing has been happening since then.

Sadly i need JDK 6 to work, but it seems like an error introduced in AWT with Java 6.
Comment 3 redent 2008-05-14 12:19:53 UTC
Sorry for multi-posting.

As i've read that it's a Sun's Java trouble i just tried with OpenJDK 1.6 and it works perfectly (well, ugly appearance
again) without setting MToolkit as the AWT_TOOLKIT, and it doesn't work at all with it. Also i've noticed that no error
or warning messages are shown during the execution of NetBeans, opposited to all tries that i did before.
Comment 4 Vitezslav Stejskal 2008-05-18 18:32:41 UTC
Well, if this is AWT/Swing problem I don't think there is much we could do about it in Netbeans. The JDK issue that you
attached was apparently fixed in JDK6 Update4, but that does not seem to be the case for you. Or maybe you are
experiencing a different problem. Please reopen the JDK issue or file a new one. Thanks
Comment 5 Marian Mirilovic 2011-06-09 09:57:05 UTC
v/c