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 209628 - The IDE opens just a small, empty windows
Summary: The IDE opens just a small, empty windows
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XDM (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 213211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-15 17:12 UTC by puce
Modified: 2012-09-12 02:08 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans IDE after start (4.47 KB, image/png)
2012-03-29 10:22 UTC, puce
Details
NetBeans IDE after start - then resized window (15.63 KB, image/png)
2012-03-29 10:23 UTC, puce
Details
messages.log (44.21 KB, text/x-log)
2012-03-29 10:40 UTC, puce
Details

Note You need to log in before you can comment on or make changes to this bug.
Description puce 2012-03-15 17:12:56 UTC
For the second time in just a few days, the IDE just opened a small, empty window.

Deleting var/cache in the user dir did not help.

Removing the whole user dir helps, but then I loose all configurations (->P1 data loss)
Comment 1 Marian Mirilovic 2012-03-22 11:30:51 UTC
Please read : 
http://wiki.netbeans.org/IssueReportingGuidelines

We would expect at least :
NetBeans version/build number, JDK version/build number, OS, messages.log file (as attachment!), ... and in this case also screenshot might be helpful ... thanks in advance.
Comment 2 puce 2012-03-28 13:44:18 UTC
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 2.6.38-13-generic-pae running on i386; UTF-8; de_CH (nb)

I will get you the other info if the issue pops up again and I remember.
Comment 3 puce 2012-03-29 10:22:27 UTC
Created attachment 117456 [details]
NetBeans IDE after start

NetBeans IDE after start
Comment 4 puce 2012-03-29 10:23:34 UTC
Created attachment 117457 [details]
NetBeans IDE after start - then resized window

NetBeans IDE after start - then resized window
Comment 5 Marian Mirilovic 2012-03-29 10:25:07 UTC
What window manager are you using on Lin ? What is the Lin distribution name (Ubuntu, Debian, RH, ...) ?

Thanks in advance.
Comment 6 puce 2012-03-29 10:40:54 UTC
Created attachment 117459 [details]
messages.log
Comment 7 puce 2012-03-29 10:43:54 UTC
(In reply to comment #5)
- Kubuntu 11.04 (natty)
- KDE
Comment 8 puce 2012-03-29 10:47:22 UTC
Is there a workaround/ something I can delete without loosing all my configurations? (which will happen if I delete <user-home>/.netbeans/7.1)
Comment 9 Stanislav Aubrecht 2012-03-29 10:52:17 UTC
(In reply to comment #8)
> Is there a workaround/ something I can delete without loosing all my
> configurations? (which will happen if I delete <user-home>/.netbeans/7.1)

Try deleting <user-home>/.netbeans/7.1/config/Windows2Local only.
Comment 10 puce 2012-03-29 11:02:00 UTC
(In reply to comment #9)
It worked! Thanks a lot!

The data loss seems now to be minimal (but the issue is still annoying).

Feel free to reprioritize this issue.
Comment 11 Stanislav Aubrecht 2012-03-29 11:22:22 UTC
The problem is that Local History is attaching its TopComponent listener too soon. When the window system loads it fires TC_OPENED events which end up in that listener where the editor component is instantiated. 
When an exception is thrown at that time (probably because some bug in Maven module), the whole window system falls over...

Versioning team will postpone the listener to some later step in the startup process.
Comment 12 Tomas Stupka 2012-03-29 11:42:01 UTC
> Versioning team will postpone the listener to some later step in the startup
> process.
core-main #d16f358e1f0a
Comment 13 Stanislav Aubrecht 2012-03-29 13:15:49 UTC
The root exception seems to be Maven-related (feel free to reassign).
But I'm not sure if it will be still reproducible after the fix in versioning...
Comment 14 Milos Kleint 2012-03-29 13:24:59 UTC
are we talking about this stacktrace?

java.lang.IndexOutOfBoundsException: Index: 0
	at java.util.Collections$EmptyList.get(Collections.java:3204)
	at org.netbeans.modules.xml.xdm.nodes.XMLSyntaxParser.parse(XMLSyntaxParser.java:152)
	at org.netbeans.modules.xml.xdm.XDMModel.prepareSync(XDMModel.java:179)
	at org.netbeans.modules.xml.xdm.XDMModel.sync(XDMModel.java:159)
	at org.netbeans.modules.xml.xdm.xam.XDMAccess.sync(XDMAccess.java:139)
	at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:283)
	at org.netbeans.modules.xml.xam.AbstractModelFactory.getModel(AbstractModelFactory.java:140)
	at org.netbeans.modules.maven.model.pom.POMModelFactory.getModel(POMModelFactory.java:82)
	at org.netbeans.modules.maven.hints.pom.StatusProvider$StatusProviderImpl.initializeModel(StatusProvider.java:234)
	at org.netbeans.modules.maven.hints.pom.StatusProvider$StatusProviderImpl.<init>(StatusProvider.java:144)
	at org.netbeans.modules.maven.hints.pom.StatusProvider.createUpToDateStatusProvider(StatusProvider.java:121)
	at org.netbeans.modules.editor.errorstripe.AnnotationViewDataImpl.createStatusProviders(AnnotationViewDataImpl.java:226)
Comment 15 Milos Kleint 2012-04-03 12:04:46 UTC
reassigning to xml/xdm, exception thrown out of the model sync method
Comment 16 Svata Dedic 2012-09-11 10:40:37 UTC
OK, reproduced on sample:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

</project>
</eee>

(when typing / closing the 'eee' unmatched tag)
Comment 17 Svata Dedic 2012-09-11 11:06:22 UTC
Changeset: e6b1c285ec3e
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-09-11 13:06
Message:   Issue #209628 - The IDE opens just a small, empty windows: fixed
Covered case of empty (no tokens) parent elements, i.e. closing unmatched tag in Document without any PIs
Comment 18 Svata Dedic 2012-09-11 13:26:53 UTC
*** Bug 213211 has been marked as a duplicate of this bug. ***
Comment 19 Quality Engineering 2012-09-12 02:08:19 UTC
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e6b1c285ec3e
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #209628 - The IDE opens just a small, empty windows: fixed
Covered case of empty (no tokens) parent elements, i.e. closing unmatched tag in Document without any PIs