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 238937 - Editor displays empty editor panel
Summary: Editor displays empty editor panel
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 15:20 UTC by arataj
Modified: 2014-01-15 09:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot - blank editor (111.27 KB, image/png)
2013-11-28 15:20 UTC, arataj
Details
Netbeans log (217.21 KB, text/x-log)
2013-11-28 15:27 UTC, arataj
Details
thread dump of running IDE experiencing the issue (33.71 KB, text/plain)
2014-01-15 00:15 UTC, idclaar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arataj 2013-11-28 15:20:31 UTC
Created attachment 142686 [details]
Screen shot - blank editor

All of a sudden, the editor panel is empty.

Not sending this to Bug 231614, because that bug's owner told me to file a new bug.

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.5.0-17-generic running on i386; UTF-8; en_US (nb)


My comment from Bug 231614:

The bug shows randomly in a small project with *.java sources only. The navigator shows the content of the invisible file just fine. There is even a balloon help with the *.java file name when the cursors hoovers over the blank panel.

The empty panel shows if the "Source" view is selected. Selecting "History" shows the history of the file, but clicking on a revision caused the IDE to freeze. No CVS is used by the project.
Comment 1 arataj 2013-11-28 15:27:41 UTC
Created attachment 142688 [details]
Netbeans log
Comment 2 arataj 2013-11-28 15:44:25 UTC
When searching for a class in an affected file (CTRL+O), a message shows "Lengthy operation in progress, calculating declaration position". The operation does not seem to complete.

Different files are affected after IDE restart.
Comment 3 arataj 2013-11-29 14:31:51 UTC
I downgraded to 7.3.1 with 7.4's copylibs, and the editor works ok on the same projects.
Comment 4 Stanislav Aubrecht 2013-12-09 15:05:09 UTC
Reporter, please attach a thread dump when the editor window is empty.
Also, are there any exact steps to reproduce this problem?
Comment 5 idclaar 2014-01-15 00:14:27 UTC
I've been experiencing this exact issue, with the same NetBeans version and Java, but with Windows 7 64 bit.

Product Version: NetBeans IDE 7.4 (Build nbms-and-javadoc-910-on-20131119)
Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

Please see the attached thread dump.
Comment 6 idclaar 2014-01-15 00:15:21 UTC
Created attachment 143969 [details]
thread dump of running IDE experiencing the issue
Comment 7 idclaar 2014-01-15 00:28:37 UTC
Forgot to add some notes on this as per reproducibility: it seems to happen randomly.  The only thing I've noticed is that it happens on a fresh startup of the IDE, never while the IDE is in use, though I've also noticed that if the IDE seems to be responding strangely slow (strange in the sense that it isn't taking up much or any cpu and memory resources are not running low) and I restart the IDE to see if that will clear it up, this issue seems to happen.

One workaround that I've found it to just use an earlier version of the IDE for a while.  Version 7.3 works fine while this is occurring with 7.4.  This is good for my productivity, but also means I haven't spent much time looking deeper into this.  Sorry...
Comment 8 idclaar 2014-01-15 00:59:33 UTC
Shutting down the affected IDE and clearing its Cache has fixed the issue for me twice now.
Comment 9 Stanislav Aubrecht 2014-01-15 09:43:06 UTC
Editor initialization seems to be stuck in org.openide.text.DocumentOpenClose.open(DocumentOpenClose.java:256)