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 218335 - [73cat] Sometimes in project view big spaces is exists.
Summary: [73cat] Sometimes in project view big spaces is exists.
Status: CLOSED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 7.2
Hardware: PC Windows 8
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 218742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-14 04:24 UTC by kosmonaffft
Modified: 2013-05-30 15:36 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Spaces in project view. (27.85 KB, image/png)
2012-09-14 04:24 UTC, kosmonaffft
Details
Misbehaving "set project configuration" combo box (4.24 KB, image/png)
2012-10-10 14:28 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kosmonaffft 2012-09-14 04:24:44 UTC
Created attachment 124342 [details]
Spaces in project view.

Sometimes, usually after code reformatting via Alt+Shift+F, in project view i see big empty spaces, which looks like invisible project elements. Problem reproduces on WIndows 7 x64 and Windows 8 x64 Release Preview, with JDK 1.7.0_07 and 1.7.0_04. After collapsing and expanding some nodes in project view spaces is removed. See attachment.
Comment 1 Stanislav Aubrecht 2012-09-25 10:57:15 UTC
*** Bug 218742 has been marked as a duplicate of this bug. ***
Comment 2 Stanislav Aubrecht 2012-09-25 10:59:01 UTC
I've moved all tree events to EDT, hopefully it'll help.

core-main 42c0df6eb40f
Comment 3 Jaroslav Tulach 2012-09-27 11:11:50 UTC
Have you ever observed such misbehaviour? There is VisualizerNode.QUEUE that is supposed to guarantee that all events from (Visualizer)Nodes are delivered in EDT. 

Simple assert EventQueue.isDispatchThread() might be more valuable...
Comment 4 Stanislav Aubrecht 2012-09-27 13:39:22 UTC
(In reply to comment #3)
> Have you ever observed such misbehaviour? There is VisualizerNode.QUEUE that is
> supposed to guarantee that all events from (Visualizer)Nodes are delivered in
> EDT. 
> 
No, it's just a wild shot.

> Simple assert EventQueue.isDispatchThread() might be more valuable...
That would be lost in release builds anyway.
Comment 5 Quality Engineering 2012-10-01 12:07:43 UTC
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/42c0df6eb40f
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #218335 - attempt to fix broken tree layout
Comment 6 kosmonaffft 2012-10-09 12:46:46 UTC
Bug is still exist in dev build

Product Version: NetBeans IDE Dev (Build 201210070002)
Updates: Updates available
Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01
System: Windows 8 version 6.2 running on amd64; Cp1251; en_US (nb)
User directory: C:\Users\anton\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\anton\AppData\Local\NetBeans\Cache\dev

Also if i click on the empty space, NullReferenceException was occured.
See report http://statistics.netbeans.org/analytics/detail.do?id=193286
Comment 7 Stanislav Aubrecht 2012-10-09 12:59:47 UTC
(In reply to comment #6)
> Bug is still exist in dev build
Do you connect to running IDE using Remote Desktop by any chance?
Comment 8 kosmonaffft 2012-10-09 13:16:37 UTC
Last time i've seen this bug after end RDP session (i connect to my notebook via RDP, do some work, and after i start work directly, i seen this bug).

(In reply to comment #7)
> (In reply to comment #6)
> > Bug is still exist in dev build
> Do you connect to running IDE using Remote Desktop by any chance?
Comment 9 Stanislav Aubrecht 2012-10-10 10:22:49 UTC
Then it's probably similar to issue #208060
RDP changes some desktop property which updates UI for the whole component hierarchy. If the tree layout is being recalculated at that moment there might be some problems as renderers and other stuff may get reset.
I suggest decreasing priority to P4 unless someone can reproduce without accessing the IDE through remote desktop in Windows.
Comment 10 mienamoo 2012-10-10 14:27:34 UTC
I had it happen to me today on Windows 7, and I was not connecting remotely. In fact, it happened just after I modified one of my Maven-based projects' pom.xml.

At the same time, the project configuration combo box on the toolbar also started misbehaving. And I do seem to recall that this was also the case when it happened before. Screenshot to follow.
Comment 11 mienamoo 2012-10-10 14:28:25 UTC
Created attachment 125703 [details]
Misbehaving "set project configuration" combo box
Comment 12 Stanislav Aubrecht 2012-10-10 14:34:05 UTC
(In reply to comment #10)
> I had it happen to me today on Windows 7, and I was not connecting remotely. In
> fact, it happened just after I modified one of my Maven-based projects'
> pom.xml.
> 
> At the same time, the project configuration combo box on the toolbar also
> started misbehaving. And I do seem to recall that this was also the case when
> it happened before. Screenshot to follow.

Did you change your screen resolution or color depth or desktop size or anything like at that time?
Comment 13 mienamoo 2012-10-10 14:35:40 UTC
No, I didn't make any display changes.
Comment 14 Stanislav Aubrecht 2012-10-10 15:10:09 UTC
(In reply to comment #10)
> I had it happen to me today on Windows 7, and I was not connecting remotely. In
> fact, it happened just after I modified one of my Maven-based projects'
> pom.xml.
> 
> At the same time, the project configuration combo box on the toolbar also
> started misbehaving. And I do seem to recall that this was also the case when
> it happened before. Screenshot to follow.

If project combo box is broken then it's most likely because some desktop property has changed, as in issue #208060
No idea what it could be though...
Comment 15 Quality Engineering 2012-10-13 02:12:27 UTC
Integrated into 'main-golden', will be available in build *201210130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ac488bb0d9c6
User: S. Aubrecht <saubrecht@netbeans.org>
Log: reverting fix for #218335 as it isn't working
Comment 16 Jaroslav Tulach 2012-11-05 11:45:30 UTC
I am not sure what is the connection of broken combo to spaces in project view. Can anyone explain that to me?