Project
IntelliJ IDEA
Priority
Major
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Kirill Kalishev
Subsystem
Editor. Editing Text
Affected versions
No Affected versions
Fixed in build
94.342  
  • Created by   Anil Gangolli
    4 years ago (19 Oct 2007 23:28)
  • Updated by   Kirill Kalishev
    23 months ago (18 Feb 2010 18:43)
  • Jira: IDEADEV-23079
    (history, comments)
 
IDEA-41749 IDEA 7 final: Loss of all keyboard input
11
Issue is visible to: All Users
  The issue is visible to the selected user group only
Recently upgraded from IDEA 6.x to IDEA 7.0 final.

At times I lose the ability to use the keyboard at all.
I haven't been able to correlate it to any specific activity that I do.
Mouse inputs continue to work fine. I have to exit and restart.

Any suggestions for working around this?





Environment: IDEA 7 final (build 7361)
Sun JDK 1.6.0_03
Ubuntu 7.04 / GNOME with AWT_TOOLKIT=MToolkit
Comments (18)
 
History
 
Linked Issues (?)
 
Anil Gangolli
  Anil Gangolli
29 Oct 2007 22:05
4 years ago
Still occurring on Ubuntu 7.10
This makes IDEA 7 unusable for me. Unfortunately I've already purchased the license.
I have to revert to 6.0.5. Can you provide any suggestions?




There is a spot workaround: I've found that viewing the TODO pane and then closing it sometimes restores things to working.
However this happens so frequently that IDEA 7 is pretty much unusable for me.
Anil Gangolli
  Anil Gangolli
31 Oct 2007 18:43
4 years ago
See also this forum posting: http://www.intellij.net/forums/thread.jspa?messageID=5200926

Stopped using AWT_TOOLKIT="MToolkit". Problem is gone or much more rare. Without this environment setting I do see a blank window problem occasionally but not frequently.

Additional environmental factors that should be mentioned: I am using Compiz Fusion as window/desktop manager (a.k.a "Advanced Desktop Effects" enabled in Ubuntu 7.10). I have the "Java Window Fix" workaround enabled in my Compiz settings.
Amir Langer
  Amir Langer
14 Nov 2007 20:03
4 years ago
Also happens to me by using Idea 7.0.1 build #7364, AWT_TOOLKIT="MToolkit", Ubuntu 7.04 with Beryl window manager.

It must be something with the number of open windows.
I found out that if you close all open editor windows + ant build + project etc.
and leave just the bare minimum, it takes slightly longer for the keyboard to stop working.

Even though This happens only in Idea.


The workaround that I found is to use the metacity (Gnome) window manager without AWT_TOOLKIT="MToolkit".
But that's not really a nice window manager to use.
Amir Langer
  Amir Langer
14 Nov 2007 20:06
4 years ago
Sorry - In the last comment, some of sentence got deleted:

Even though this sounds like a window manager issue, It happens only in Idea. No other application.
Aksel Hilde
  Aksel Hilde
10 Dec 2007 16:34
4 years ago
I am having the same problem on build 7364, Kubuntu 7.10 (with Compiz). This problem should be fixed asap.
M.Milicevic
  M.Milicevic
11 Jan 2008 21:14
4 years ago
same problems here. Netbeans for example doesn't have those problems..
Can someone form JetBrains at least say what status of this bug is.
Right now to get keyboard working again, you must switch tabs which is very distracting.
Miho
  Miho
03 Mar 2008 03:59
3 years ago

Same issue here as well.

Symptom:
Suddenly and frequently Idea seems to ignore any kind of keyboard input. Not even shortcut keys, just can't type at all. Actions before this behavior seems to be random. Nothing particular action that I can see triggers this behavior :(

Idea : IDEA-7590
OS : Fedora Core release 6
Java : jdk1.6.0_03

Current (pathetic) solutions :
– Switch tabs
– Restart Idea
M.Milicevic
  M.Milicevic
03 Mar 2008 05:07
3 years ago
Hi Miho,
in my case nightly builds of 1.6 helped, see:

http://www.jetbrains.net/jira/browse/IDEADEV-2359


(copy paste from above link:)



M.J.Milicevic - 28 Jan 08 20:05
ok. it seems all problems are gone with:

http://download.java.net/jdk6/6u10/promoted/b11/binaries/jdk-6u10-ea-bin-b11-linux-i586-24_jan_2008.bin

even ctrl + e focus works. Now lets hope this finally gets fixed with next JDK update.

[ Permlink | « Hide ]
M.J.Milicevic - 06 Feb 08 21:07
just one glitch when using above jdk:
some popups doesn't alway render (it seems like it happens randomly,
but reopening it few times it renders well.
Miho
  Miho
05 Mar 2008 04:05
3 years ago
Thank you for your help, M.J.Milicevic.

Unfortunately the problem does not get fixed.
I have installed higher version of java (jdk1.6.0_10) as you suggested and set IDEA_JDK to it.

The good news is that the symptom is less harsh than before. No longer needs to restart IDEA, just by changing the tab, keyboard input comes back so far. So that's nicer than before yet still not acceptable...
Miho
  Miho
05 Mar 2008 06:36
3 years ago
Not sure if it's related at all, but I'm keep getting following Exception from iea.sh output.

[162080064] ERROR - pplication.impl.LaterInvocator -
java.lang.IndexOutOfBoundsException: Wrong offset: 37858
java.lang.IndexOutOfBoundsException: Wrong offset: 37858
 at com.intellij.openapi.editor.ex.util.SegmentArray.findSegmentIndex(SegmentArray.java:49)
 at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:143)
 at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:281)
 at com.intellij.usages.UsageInfo2UsageAdapter$MyUsagePresentation.getPlainText(UsageInfo2UsageAdapter.java:322)
 at com.intellij.usages.impl.UsageNode.getText(UsageNode.java:85)
 at com.intellij.usages.impl.Node.update(Node.java:66)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:737)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:735)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:735)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:735)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:735)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:735)
 at com.intellij.usages.impl.UsageViewImpl.checkNodeValidity(UsageViewImpl.java:735)
 at com.intellij.usages.impl.UsageViewImpl.updateImmediately(UsageViewImpl.java:726)
 at com.intellij.usages.impl.UsageViewImpl.access$2000(UsageViewImpl.java:71)
 at com.intellij.usages.impl.UsageViewImpl$18.run(UsageViewImpl.java:747)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:12)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
 at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:10)
 at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:87)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:188)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
[162080065] ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 7.0.2 Build #7590
[162080065] ERROR - pplication.impl.LaterInvocator - JDK: 1.6.0_10-ea
[162080065] ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) Client VM
[162080065] ERROR - pplication.impl.LaterInvocator - Vendor: Sun Microsystems Inc.
[162080065] ERROR - pplication.impl.LaterInvocator - OS: Linux
[162080065] ERROR - pplication.impl.LaterInvocator - Last Action: EditorUp
Ryan Vanderwerf
  Ryan Vanderwerf
02 Apr 2008 01:40
3 years ago
same problem here, ubuntu 7.10 32 bit, tried turning off desktop effects, installed the jdk 1.6_10 beta, etc. Still have to switch between tabs to get my keyboard back.
Miho
  Miho
02 Apr 2008 21:11
3 years ago
I have changed the environment and this issue was resolved for me.

Idea : idea-7757
OS : Fedora release 8
Java : jdk1.6.0_05

Also this time I purchased the license, not that I think it was an issue... or maybe? :)
Anil Gangolli
  Anil Gangolli
02 Jun 2008 00:14
3 years ago
[I was the original reporter.]

I finally found relief from both the blank window problem and the loss of keyboard input problem by:
(1) unsetting (i.e. NOT setting) AWT_TOOLKIT="MToolkit"
(2) Adding -Didea.no.jdk.check=true in idea.vmoptions to tell IDEA to accept JDK 1.7.0
(3) running IDEA under current early access versions of JDK 1.7.0 (e.g. b26, b27) [Earlier may work, but haven't tried.]

Despite reports from Miho to the contrary, with recent versions of JDK 1.6.0 (even 1.6.0_05 and Update 10 beta), I could not simultaneously get relief from both the blank window issue and the loss of keyboard input issue.

Note: I am now on Ubuntu 8.04 (not 7.10), still with Compiz Fusion and lots of effects.

Hope this helps others.

Cheers,
--a.
Jacques Morel
  Jacques Morel
14 Jul 2008 01:34
3 years ago
Anil,

Where do you download JDK 1.7 for ubuntu (I am on gutsy 32bit still)

Thanks

Jacques
Anil Gangolli
  Anil Gangolli
14 Jul 2008 22:52
3 years ago

JDK 1.7 is still in beta. You can get the latest snapshots here:

http://download.java.net/jdk7/binaries/

Pick the Linux self-extracting file with a .bin extension. Download and then chmod +x the file to make it executable by you. When you run it, it will ask you to accept the license and then extract the contents to a subdir of the working directory.

It should run fine on Gutsy.
Will Jordan
  Will Jordan
07 Jul 2009 01:26
2 years ago
I would be interested in hearing how many users affected by this bug are running SCIM (Smart Common Input Method platform).

It seems that this issue may be caused by a 3-year old Sun Java bug (#20 highest voted open bug):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6506617

I tried everything else mentioned in this thread, and uninstalling SCIM seemed to be the only truly successful workaround for me so far.
James Ravn
  James Ravn
08 Jul 2009 19:16
2 years ago
Just to add that I too see this problem. However it only happens with recent IntelliJ builds for me (9.0M1 is where it is now occurring). Like others, I get blank/grey screens unless I run "wmname LG3D" which I believe is the same as exporting AWT_TOOLKIT.

I think this bug needs some status update, even if it's a "Will not fix" java bug.
Anil Gangolli
  Anil Gangolli
08 Jul 2009 20:56
2 years ago
[original filer]

I stopped seeing this in Idea 7 after starting to run it on JDK 1.7 (beta builds). See earlier comments.

Currently I am running the following and NOT seeing any issues:

Idea 8.1.3
Sun JDK 1.6.0_13 (stock linux distro)
Ubuntu 9.04 (32bit) with Compiz / effects
NOT setting AWT_TOOLIT

I have not tried any 9.0 EA releases (and won't be).