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 231614 - Editor displays empty editor panel
Summary: Editor displays empty editor panel
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 09:29 UTC by bolsover
Modified: 2013-11-19 13:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot - blank editor (50.39 KB, image/jpeg)
2013-06-21 09:29 UTC, bolsover
Details
ide.log (429.30 KB, application/octet-stream)
2013-06-21 09:32 UTC, bolsover
Details
Screen cast - blank output (4.78 MB, video/ogg)
2013-06-25 10:29 UTC, infonaut
Details
dev Settings (1.57 MB, application/octet-stream)
2013-06-26 08:11 UTC, bolsover
Details
Screen grab of editor probems (1.36 MB, video/x-ms-wmv)
2013-06-26 11:28 UTC, bolsover
Details
Video showing issue in 201306262301. (2.57 MB, video/avi)
2013-06-27 18:36 UTC, ecerichter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bolsover 2013-06-21 09:29:25 UTC
Created attachment 136121 [details]
Screen shot - blank editor

Windows 7 Intel i7-2720QM, 2.2Ghz, 16Gb RAM
NB 7.4 Dev 201306191709

All of a sudden, the editor panel is empty; no design tab and no code visible.

Attached screenshot and IDE Log

There is a very old bug report 39108 - but that one fixed - is this related?
Comment 1 bolsover 2013-06-21 09:32:28 UTC
Created attachment 136124 [details]
ide.log
Comment 2 bolsover 2013-06-21 10:26:15 UTC
I can now reproduce this...

Start new project with default settings
Add new JFrameForm NewJFrame.java
Add second new JFrameForm NewJFrame1.java
Add new html file newhtml.html
Close all files 
Re-open files in following sequence:
NewJFrame
newhtml.html
NewJFrame1
Select source tab on  NewJFrame1.java
Close newhtml.html tab

Code view on NewJFrame1.java shows blank editor

The sequence of opening files is important!!
Comment 3 ecerichter 2013-06-21 10:49:18 UTC
I saw exactly same issue with web.xml editing.
I'll try to reproduce it in a reproducible way.
Comment 4 David Strupl 2013-06-21 11:22:21 UTC
Please check the exceptions in your messages.log file --> seems like this is caused by HTML editor. Anyone who can reproduce please specify which file types you are using. And also check the messages.log file whether the exceptions are the same.
Comment 5 Marek Fukala 2013-06-21 12:16:53 UTC
I've fixed the incorrect getNodeDelegate() call which caused the INFO level exception. I seriously doubt this logged exception is the cause of the problem. It seems much more likely it is just a side effect. Passing back to editor for further evaluation.

changeset:   256432:15860a52948f
summary:     fixed java.lang.IllegalStateException: The data object XXX is invalid; you may not call getNodeDelegate on it any more; see #17020 and please fix your code.
Comment 6 Jiri Kovalsky 2013-06-21 14:02:30 UTC
I have seen this as well with Java file. Cannot reproduce it though.
Comment 7 infonaut 2013-06-21 14:45:24 UTC
may be it helps,

I have seen this as well in the Output window, but after restart of NB i cant reproduce it.
And i recorded this in a screencast(a 5MB ogv file).
Comment 8 bolsover 2013-06-21 15:32:05 UTC
Done some more testing with clean installs, no plugins but with updates...


Windows 7 Intel i7-2720QM, 2.2Ghz, 16Gb RAM
NB 7.4 Dev 201306191709 'All' distribution 
JDK 1.7.25
Could not reproduce with the steps detailed earlier


Windows 8 Intel i7 Q740, 1.73Ghz, 8Gb RAM
NB 7.4 Dev 201306202301 'All' distribution 
JDK 1.7.25
Could not reproduce with the steps detailed earlier

I'll work further with NB 7.4 Dev 201306191709 on Windows 7 and try to establish if some plugin or other project is somehow contributing to the problem.
Comment 9 bolsover 2013-06-23 20:41:51 UTC
More tests done:

Windows 7 Intel i7-2720QM, 2.2Ghz, 16Gb RAM
NB 7.4 Dev 201306191709 'All' distribution 
JDK 1.7.25
Previous test were done without importing settings from previous version; if I do import settings then I can reproduce the defect using the steps provided previously.

Also tested  NB 7.4 Dev 201306222301 'All' distribution on same platform both before  and after importing settings from 7.3.1. - Results: 

Before importing settings, I could not reproduce the defect. After importing settings, I could reproduce the defect - and the editor window seemed decidedly 'laggy' in general screen update.

Unsure where to go from here; clearly there is a problem - I'd welcome advice on how to find.

db
Comment 10 bolsover 2013-06-25 08:08:39 UTC
Bug is still there...

Product Version: NetBeans IDE Dev (Build 201306242301)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_GB (nb)

Bug is only apparent after I import settings from my 'live' 7.3.1 install.

db
Comment 11 infonaut 2013-06-25 10:29:05 UTC
Created attachment 136264 [details]
Screen cast - blank output
Comment 12 Milutin Kristofic 2013-06-25 12:05:00 UTC
Can you upload your settings, that you are importing?
Comment 13 bolsover 2013-06-26 08:07:49 UTC
Uploading problem settings - see attached dev.zip
Comment 14 bolsover 2013-06-26 08:11:08 UTC
Created attachment 136312 [details]
dev Settings

Zipped directory: C:\Users\DBolsover\AppData\Roaming\NetBeans\dev
Comment 15 bolsover 2013-06-26 11:28:50 UTC
Created attachment 136329 [details]
Screen grab of editor probems

I thought it might be useful to add a screen capture of the problems I'm seeing.
The video does not capture - but all files are opened/closed using mouse gestures.
You'll note that the vid ends with NewJFrame1.java selected but showing text from newhtml.html.

Interestingly, if I attempt to copy the htlm text from the editor, further screen corruption occurs and a class cast exception is thrown:

java.lang.ClassCastException: com.sun.java.swing.plaf.windows.WindowsEditorPaneUI cannot be cast to org.netbeans.editor.BaseTextUI
	at org.netbeans.editor.BaseAction.updateComponent(BaseAction.java:483)
	at org.netbeans.editor.BaseAction.updateComponent(BaseAction.java:436)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:305)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1664)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2879)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2926)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2842)
	at java.awt.Component.processEvent(Component.java:6282)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)...

HTH
Comment 16 bolsover 2013-06-26 11:52:30 UTC
I've been looking at the messages.log files generated when I see the screen corruption; the most notable thing (to me) is for each time I see the problem, there are the following entries in the log:

Coupling error:
class file: jar:file:/C:/Program%20Files/Java/jdk1.7.0_25/lib/ct.sym!/META-INF/sym/rt.jar/java/awt/Window.class
source file: jar:file:/C:/Program%20Files/Java/jdk1.7.0_25/src.zip!/java/awt/Window.java
VARIABLE: allWindows
METHOD: getAllWindows
METHOD: getAllUnblockedWindows

If I attempt to produce the error on my (well behaved) 7.3.1 install on the same machine with the same VM, I do not see these errors.

Note also that for each time I see the problem, a Windows.class.dump file is saved in the dev/var/log directory.  At the foot of the .dump is the following:

----- Trees: -------------------------------------------------------
VARIABLE: allWindows
METHOD: getAllWindows
METHOD: getAllUnblockedWindows
----- Stack trace: ---------------------------------------------
com.sun.tools.javac.util.CouplingAbort
	at org.netbeans.modules.java.source.TreeLoader.loadTreeFor(TreeLoader.java:218)
	at com.sun.tools.javac.code.Symbol$ParamSymbol.getSimpleName(Symbol.java:1161)
	at com.sun.tools.javac.code.Symbol$ParamSymbol.getSimpleName(Symbol.java:1128)
	at org.netbeans.modules.java.navigation.ElementScanningTask.createHtmlHeader(ElementScanningTask.java:317)
	at org.netbeans.modules.java.navigation.ElementScanningTask.element2description(ElementScanningTask.java:260)
	at org.netbeans.modules.java.navigation.ElementScanningTask.addMembers(ElementScanningTask.java:228)
	at org.netbeans.modules.java.navigation.ElementScanningTask.runImpl(ElementScanningTask.java:147)
	at org.netbeans.modules.java.navigation.ElementScanningTask.run(ElementScanningTask.java:105)
	at org.netbeans.modules.java.navigation.ElementScanningTask.run(ElementScanningTask.java:84)
	at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:568)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:744)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 17 Milutin Kristofic 2013-06-26 12:47:57 UTC
The problem is with multirow.

1, enable multirow
2, open html file
3, open jframe
4, close html file by cross icon.

Assigning to window component, probably problem with focus. Assign back, if there is problem in editor. Thank you.
Comment 18 Stanislav Aubrecht 2013-06-26 14:30:34 UTC
core-main 2dc2a482966c
Comment 19 Quality Engineering 2013-06-27 02:18:00 UTC
Integrated into 'main-golden', will be available in build *201306262301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2dc2a482966c
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #231614 - no selection change when clicking into close button
Comment 20 ecerichter 2013-06-27 18:36:31 UTC
Created attachment 136426 [details]
Video showing issue in 201306262301.

Still reproducible in 201306262301.
See attached video for reference.

Edson Richter
Comment 21 ecerichter 2013-06-27 18:37:54 UTC
Seems there is still a case not covered by the fix.
I can reproduce the problem while editing XML files.
The order of opening/closing the files is important.
If I close the right file first, then problem doesn't happen.
Comment 22 Stanislav Aubrecht 2013-06-28 09:15:07 UTC
core-main e14909a2084c
Comment 23 Quality Engineering 2013-07-01 15:57:09 UTC
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e14909a2084c
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #231614 - TabContainer needs update even when the selection index didn't change
Comment 24 arataj 2013-11-19 13:31:05 UTC
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.

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)
Comment 25 Stanislav Aubrecht 2013-11-19 13:48:37 UTC
(In reply to arataj from comment #24)
> 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.
> 
> 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)

Please open a new bug and attach some screen shots and your IDE log, thanks.