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 245932 - Tab stripe bug
Summary: Tab stripe bug
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: PC Windows 8
: P4 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-24 07:18 UTC by sevstar
Modified: 2014-07-28 05:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Bug itself (34.80 KB, image/png)
2014-07-24 07:18 UTC, sevstar
Details
Tabs configuration (12.92 KB, image/png)
2014-07-24 07:19 UTC, sevstar
Details
Assign issue (57.68 KB, image/png)
2014-07-24 12:17 UTC, sevstar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sevstar 2014-07-24 07:18:42 UTC
Created attachment 148252 [details]
Bug itself

I got issue with tab stripe after IDE restart.

Sometimes when i launch IDE, some tabs (usually one or two) can be outside of projet row.
As you see on screenshot bug.png after restart, the tab "WebMain" is not in green project row.

And sometimes whole project row may change position, for example: first green row, after restart can be in the bottom with different color.

I don't know how to reproduce this bug.
It happens not often usually on first IDE launch, seems like some sort of race condition or something.

---
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-1931-on-20140722)
Java: 1.7.0_51; Java HotSpot(TM) Client VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 8 version 6.2 running on x86; Cp1251; en_US (nb)
Comment 1 sevstar 2014-07-24 07:19:21 UTC
Created attachment 148253 [details]
Tabs configuration
Comment 2 Stanislav Aubrecht 2014-07-24 10:08:07 UTC
I can't reproduce the problem with un-assigned document tab in the same build.

The project row position/color may change with the project was renamed or moved to a new location.
Comment 3 sevstar 2014-07-24 10:58:31 UTC
(In reply to Stanislav Aubrecht from comment #2)
> I can't reproduce the problem with un-assigned document tab in the same
> build.
>
It happens not often as i said, just 1 launch of 10. And also my pc is not fast, first ide launch takes about 2 minutes, maybe it affects.

> The project row position/color may change with the project was renamed or
> moved to a new location.
I understand, but it changing just after IDE restart. I mean no files was changed or renamed, i just close netbeans and launch it again.
Comment 4 sevstar 2014-07-24 12:17:36 UTC
Created attachment 148278 [details]
Assign issue

More information:

See screenshot tabassign.png:
1) I have made first screenshot and exited from netbeans IDE
2) I have run 100% cpu load program (for each 2 cores) and launch netbeans again. As you can see bug was reproduced: 3 un-assigned document tabs on top.
3) I have clicked on first tab (WMain.java) to open document. Tab was activated, document was opened, all fine.
4) I have clicked on second tab (NotifyMgr.java) and as you see, the first tab (WMain.java) was marked by yellow color, so as i understand it was binded with project when tab was activated.
5) I have click on last tab MNotify.java. Same thing document was marked. Then i closed this last tab by clicking on X button.
6) And as you see, all un-assigned tabs was automatically assigned to projects. Tabs was moved into project row.

Maybe it because of 100% CPU load and many opened documents, i don't know.
I hope this can helps.
And sorry for my bad english.
Comment 5 Stanislav Aubrecht 2014-07-24 13:15:24 UTC
Thanks for the extra info, I tried to fix it in core-main aad489df7bb2
Comment 6 Quality Engineering 2014-07-28 05:22:31 UTC
Integrated into 'main-silver', will be available in build *201407280405* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/aad489df7bb2
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #245932 - weak hash map might be too weak