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.
Totally unreproducibly, in 040610 (1.5.0 b54, GTK), one time, something caused there to be a hole where the Edit menu had been. Repainting the main window did not help. Could even use the menus - confirm that the Edit menu exactly matches the shape of the hole - but after closing them, the hole is still there. Nothing painted inside the hole, and could not get rid of it except by restarting the IDE.
Created attachment 15663 [details] The obligatory screenshot
...that stops my mind from wanderin', where it will go... Had the menu ever been shown when this occurred? I'd hazard a guess the bug is in whatever GTK L&F uses for PopupFactory (no idea if they replace it or use the standard Swing one). In other words, there is an empty lightweight popup component sitting on top of everything, that was somehow forgotten about after the popup was hidden. The default impl of PopupFactory recycles components, so this shouldn't happen, but it wouldn't surprise me if some kind of race condition could cause it to forget about one and leave it behind. Certainly the things we do with menus are strange enough to make something like this possible.
"Had the menu ever been shown when this occurred?" - unfortunately can't remember now. Feel free to close this as WORKSFORME if you have no idea what, if any, NB code might cause it. Just felt it would be better brought to someone's attention.
Passing to Tim.
Happened to me again in 040615. Edit menu again. Again, no particular steps to reproduce, but I will note that earlier in the IDE session, a couple of times I had posted the Edit menu (trying to confirm a bug reported on nbusers that Find is sometimes enabled when Go To Line is not) and gotten unexplained NPEs from Swing code, which I will attach. Apparently the menuItem field is null for some reason.
Created attachment 15719 [details] Example of earlier stack trace
Note that Actions.SubMenu extends JMenuPlus, which could cause this sort of weird problem I guess.
Might be interesting to manually remove PasteAction from the Edit menu (just put it somewhere else) and see if the problem moves to the new menu or goes away in the Edit menu. Just a hunch - I could imagine what we do with that confusing the heck out of a look and feel.
Yeah, that's my guess too.
GTK not supported for promo D -> future
Re-assigning Tim's issues to Dafe.
Passing to Martin to distribute bugs evenly. Thanks Martine :-)
*** Issue 56422 has been marked as a duplicate of this issue. ***
Good, we have more information - see issue 56422. Not GTK specific, however still random.
I haven't seen this in a long time, BTW.
Jesse, is it still reproducible ? (It's summer so probably not so rainy ;)
Never saw it again. Doubt we can do anything unless it is reproduced.
verified