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 270487 - java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
Summary: java.awt.IllegalComponentStateException: component must be showing on the scr...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-26 01:46 UTC by aplatypus
Modified: 2018-05-12 20:03 UTC (History)
170 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228297


Attachments
stacktrace (1.97 KB, text/plain)
2017-04-26 01:46 UTC, aplatypus
Details
stacktrace (1.97 KB, text/plain)
2017-05-17 08:31 UTC, muellermi
Details
stacktrace (1.97 KB, text/plain)
2017-05-29 08:37 UTC, stefan79
Details
stacktrace (1.97 KB, text/plain)
2017-05-29 10:07 UTC, stefan79
Details
stacktrace (1.97 KB, text/plain)
2017-05-30 05:46 UTC, stefan79
Details
stacktrace (1.97 KB, text/plain)
2017-06-02 10:19 UTC, Maksim Khramov
Details
stacktrace (1.97 KB, text/plain)
2017-06-14 12:34 UTC, skygo
Details
stacktrace (1.97 KB, text/plain)
2017-09-18 12:26 UTC, muellermi
Details
stacktrace (1.97 KB, text/plain)
2017-09-18 12:29 UTC, muellermi
Details
stacktrace (1.97 KB, text/plain)
2017-09-20 08:29 UTC, vanob
Details
stacktrace (1.97 KB, text/plain)
2017-11-22 07:56 UTC, simpatico
Details
stacktrace (1.97 KB, text/plain)
2017-11-22 07:59 UTC, simpatico
Details
stacktrace (1.97 KB, text/plain)
2017-11-22 10:38 UTC, simpatico
Details
stacktrace (1.97 KB, text/plain)
2018-03-21 09:38 UTC, vanob
Details
stacktrace (1.97 KB, text/plain)
2018-03-21 09:50 UTC, vanob
Details
stacktrace (1.97 KB, text/plain)
2018-03-29 20:02 UTC, jyeary
Details
stacktrace (1.97 KB, text/plain)
2018-04-27 14:14 UTC, giorgio42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aplatypus 2017-04-26 01:46:29 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11
OS: Windows 10

User Comments:
GUEST: Please check this

GUEST: editing

GUEST: Youo  are idjits

GUEST: compiling

GUEST: You are an idjit

GUEST: Opened NetBeans and then double clicked on a Java source in the Projects panel. After a long pause it opened. Not sure exactly when the excepion occurred.

GUEST: Opening a file

aplatypus: editing a Java file just after resuming work - relogged in from Windows lock-screen




Stacktrace: 
java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location
   at java.awt.Component.getLocationOnScreen_NoTreeLock(Component.java:2062)
   at java.awt.Component.getLocationOnScreen(Component.java:2036)
   at javax.swing.text.JTextComponent$InputMethodRequestsHandler.getTextLocation(JTextComponent.java:4643)
   at sun.awt.im.InputMethodContext.getTextLocation(InputMethodContext.java:278)
   at sun.awt.windows.WInputMethod$1.run(WInputMethod.java:588)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
Comment 1 aplatypus 2017-04-26 01:46:31 UTC
Created attachment 164183 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-04-26 06:34:13 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 3 Exceptions Reporter 2017-05-02 03:13:15 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 4 Exceptions Reporter 2017-05-14 16:07:18 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 5 Jiri Sedlacek 2017-05-15 11:26:19 UTC
Looks like this regression in JDK 8u131 / JDK 9b124: https://bugs.openjdk.java.net/browse/JDK-8179665 .
Comment 6 muellermi 2017-05-17 08:31:18 UTC
Created attachment 164333 [details]
stacktrace

debugging
Comment 7 stefan79 2017-05-29 08:37:52 UTC
Created attachment 164424 [details]
stacktrace

Exception occured while switching between NetBeans and the Java-Debug-Program.
Comment 8 stefan79 2017-05-29 10:07:52 UTC
Created attachment 164425 [details]
stacktrace

...
Comment 9 stefan79 2017-05-30 05:46:52 UTC
Created attachment 164434 [details]
stacktrace

Started a Debug-Session.
Comment 10 Maksim Khramov 2017-06-02 10:19:55 UTC
Created attachment 164454 [details]
stacktrace

Open java class by clicking on class name
Comment 11 skygo 2017-06-14 12:34:17 UTC
Created attachment 164538 [details]
stacktrace

no sure what was going on but margin tool from editor disappears
Comment 12 zian 2017-07-23 04:22:11 UTC
(In reply to Exceptions Reporter from comment #4)
> This bug already has 50 duplicates 
> see http://statistics.netbeans.org/exceptions/detail.do?id=228297

It seems that the bug persists even in JDK version 1.8.0_141 on Windows 64-bit.
Comment 13 Rohaan427 2017-08-29 19:33:20 UTC
It persists in JDK version 1.8.0_144 as well.

Over 400 duplicates now. It happens to me multiple times per hour and makes debugging my application VERY difficult as sometimes I have to restart the IDE.
Comment 14 muellermi 2017-09-18 12:26:32 UTC
Created attachment 165142 [details]
stacktrace

stop on breakpoint
Comment 15 muellermi 2017-09-18 12:29:32 UTC
Created attachment 165143 [details]
stacktrace

hit breakpoint
Comment 16 vanob 2017-09-20 08:29:33 UTC
Created attachment 165151 [details]
stacktrace

I don't know
Comment 17 simpatico 2017-11-22 07:56:14 UTC
Created attachment 165481 [details]
stacktrace

Just seen
Comment 18 simpatico 2017-11-22 07:59:12 UTC
Created attachment 165482 [details]
stacktrace

debugging
Comment 19 simpatico 2017-11-22 10:38:16 UTC
Created attachment 165484 [details]
stacktrace

debugging
Comment 20 Exceptions Reporter 2017-12-20 04:42:17 UTC
This bug already has 800 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 21 Exceptions Reporter 2018-01-28 08:23:15 UTC
This bug already has 1000 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 22 Exceptions Reporter 2018-02-23 16:38:42 UTC
This bug already has 1450 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 23 Exceptions Reporter 2018-02-23 16:47:42 UTC
This bug already has 1450 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 24 Exceptions Reporter 2018-02-23 16:56:45 UTC
This bug already has 1450 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 25 vanob 2018-03-21 09:38:44 UTC
Created attachment 165680 [details]
stacktrace

I don't know what happened
Comment 26 vanob 2018-03-21 09:50:45 UTC
Created attachment 165681 [details]
stacktrace

Exception during redeploy
Comment 27 jyeary 2018-03-29 20:02:47 UTC
Created attachment 165695 [details]
stacktrace

Examinig ant build files.
Comment 28 Exceptions Reporter 2018-04-26 02:23:53 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 29 Exceptions Reporter 2018-04-26 02:32:52 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 30 Exceptions Reporter 2018-04-26 02:41:53 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 31 Exceptions Reporter 2018-04-26 02:50:53 UTC
This bug already has 2550 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=228297
Comment 32 giorgio42 2018-04-27 14:14:53 UTC
Created attachment 165709 [details]
stacktrace

Alt-tabbed to another application for some time