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.
Product Version: NetBeans IDE Dev (Build 201111130600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 3.0.0-12-generic running on i386; UTF-8; en_US (nb) 1. Run IDE with clean userdir. 2. Disable the File item in main menu View | Toolbars (that means disable all items in main menu View | Toolbars). 3. Restart IDE. And now two Toolbars menu appears in main menu View. The upper one is not synchronised with popup Toolbar menu.
can't reproduce in Product Version: NetBeans IDE Dev (Build 20111114-f322158ab118) Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02 System: Linux version 2.6.38-8-generic running on i386; UTF-8; en_US (nb)
Product Version: NetBeans IDE Dev (Build 201111140600) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) It's reproducible. I've tried this on Linux Ubuntu 11.10 and on Windows 7. And I increase the priority to P2, because it's too visible and maybe too often bug.
in some cases there are two 'toolbars' sub-menu instance even after startup with a clean user dir.
jardo, could this be related to some of your changes in menu/actions?
to reproduce: - start IDE - press ALT+V to show 'View' submenu immediately after the main window is shown this is probably a side-effect of fix #201494. the task which creates menu item is still running while the org.openide.awt.MenuBar$LazyMenu.setPopupMenuVisible(true) is called. that fires another task which creates the second instance of toolbars submenu. see attached log file.
Created attachment 113329 [details] log
(reverting the fix for #201494 fixes this problem) maybe we can also downgrade this to P3. if the user waits 2 or 3 seconds before showing the view menu everything is fine. so the problem is that much visible...
(In reply to comment #7) > (reverting the fix for #201494 fixes this problem) ... so this is regression caused by the fix of 201494 ... to me (& based on priority guidelines) P1
The difference between the two stacktraces is: --- a 2011-12-05 13:05:54.318084519 +0100 +++ b 2011-12-05 13:09:06.082084553 +0100 @@ -8,20 +8,6 @@ at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:734) at org.openide.util.Task.run(Task.java:248) at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:75) - at org.netbeans.modules.openide.loaders.AWTTask$Processor.run(AWTTask.java:150) - at org.netbeans.modules.openide.loaders.AWTTask.waitFor(AWTTask.java:118) - at org.openide.loaders.FolderInstance.waitFinished(FolderInstance.java:341) - at org.openide.awt.ToolbarPool.waitFinished(ToolbarPool.java:200) - at org.openide.awt.ToolbarPool.getToolbars(ToolbarPool.java:360) - at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.fillToolbarsMenu(ToolbarConfiguration.java:176) - at org.netbeans.core.windows.view.ui.toolbars.ToolbarConfiguration.getToolbarsMenu(ToolbarConfiguration.java:421) - at org.netbeans.core.windows.actions.ToolbarsListAction.getMenuPresenter(ToolbarsListAction.java:88) - at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:99) - at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:767) - at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:889) - at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:734) - at org.openide.util.Task.run(Task.java:248) - at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:75) at org.netbeans.modules.openide.loaders.AWTTask.waitFinished(AWTTask.java:99) at org.openide.loaders.FolderInstance$1R.waitFinished(FolderInstance.java:760) at org.netbeans.modules.openide.loaders.AWTTask.waitFor(AWTTask.java:124)
ergonomics#d8831f1fd257
Integrated into 'main-golden', will be available in build *201202260400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d8831f1fd257 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #205137: Remove the task from list of pending ones once it is executed directly
Verified, thanks.