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.
Summary: | Editor displays empty editor panel | ||
---|---|---|---|
Product: | platform | Reporter: | bolsover <bolsover> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ecerichter |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screen shot - blank editor
ide.log Screen cast - blank output dev Settings Screen grab of editor probems Video showing issue in 201306262301. |
Created attachment 136124 [details]
ide.log
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!! I saw exactly same issue with web.xml editing. I'll try to reproduce it in a reproducible way. 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. 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. I have seen this as well with Java file. Cannot reproduce it though. 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). 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. 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 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 Created attachment 136264 [details]
Screen cast - blank output
Can you upload your settings, that you are importing? Uploading problem settings - see attached dev.zip Created attachment 136312 [details]
dev Settings
Zipped directory: C:\Users\DBolsover\AppData\Roaming\NetBeans\dev
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
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) 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. core-main 2dc2a482966c 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 Created attachment 136426 [details]
Video showing issue in 201306262301.
Still reproducible in 201306262301.
See attached video for reference.
Edson Richter
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. core-main e14909a2084c 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 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) (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. |
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?