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.
Time to time, the editor starts to behave weird: a gray line appears between the folding marks (see attachment) and the text and certain keys do not work (e.g. Backspace) or work differently (arrows don't move through the text but scroll the window). Closing all documents and reopening them fixes the problem (for a while, restarting netbeans "fixes" it for a longer time). I am running NB on jdk1.6.0_02
Created attachment 74363 [details] Screenshot showing the gray line appears between the folding marks and the text
The gray line is where normally diff-sidebar is. Could you attach here your log file; it's in <userdir>/var/log/messages.log. Thanks
Created attachment 74766 [details] ThreadDump (via StackTrace)
Created attachment 74768 [details] messages.log - there are some exceptions, not sure if they are related to the issue
Created attachment 74939 [details] Annother message.log when the problem happened again
Created attachment 74940 [details] Annother thread dump when the problem happened again
Is there anything else I can do to help this getting fixed? It happens every-day, some times several times. SHould it help if I post more logs/dumps?
Priority to P2 per http://wiki.netbeans.org/BugPriorityGuidelines.
Hi, I have absolutely no idea what's wrong, but as I said the gray bar is where normally the diff sidebar resides. So, if this is somehow related to the diff sidebar or the version control plugin for your VCS it could help to disable the diff sidebar (eg. uncheck View -> Show Diff Sidebar). If disabling it eliminates the problem we can track it down further looking at what's wrong with your VCS integration. There are exceptions in the log files, but they don't seem to be related to the editor - some of them were from Junit plugin, various others complained about unparsable build.xml and inaccessible utils.jar (probably something wrong with your project setup, but you might have already fixed that).
Created attachment 75479 [details] The original picture, this time with correct mimetype
Disabling the side bar does not help if it is done after the problem occurs. I will see if it prevents it from occurring. Yes, those exceptions are not a problem (I moved the projects around, thus the project dependency problems and I am using ant to build non-java projects, hence the unparsable build.xml). Is it possible to read something from the dumps? Would it make sense if I collected dumps/logs each time it happens and posted a bunch of them? Or any other way to provide some useful info?
Threaddumps are not of much use, because the IDE is not frozen (in deadlock) and so they show no activity. The logs are more useful to see if there are any exceptions that could cause the problem. There is also the <ide-userdir>/var/log/uiguestures file, which shows actions that have been done in the IDE. Next time this happens please attach both the log and the uiguestures file. Hopefully we will be able to see what exactly happened in the IDE before it got corrupted. Thanks
So it does happen even with the diff-sidebar disabled. There are few more things that are unusual except the keys and diff-sidebar: - Edit | Find/Replace commands in the main menu are grayed (Ctrl+F/H does not work either) - the editor context menu does not work - suggestion side bar is not there (but the yellow underlines in the code and their tooltips do work) - line numbers on the side are not there - Alt Insert for code insert does not work - Ctrl+Click for navigating to the source does work (and if the file with source has not been opened and is open, that particular editor tab works normally!)
Created attachment 75640 [details] zipped uigestures as requested
Created attachment 75641 [details] message log (from the same incident as uigestures above)
I thought I was experiencing 119617, but it seems I'm mostly experiencing this issue. I added some comments etc on the other issue. Anyways, the next time this happens I'll also attach a screen shot where the projects view JTree has a long vertical gap where the Nodes are. Seems someone may be accessing some Swing logic from the wrong thread or something and there is a concurrency issue taking place. I'm not sure yet, but something is definitely messing up more than one place. The cause may very well be related to 119617 just the same.
I wrote the following in the other issue. It seems they are both related, at least in my experience: More information. It happened again, but this time I couldn't even get a cursor in the editor. This was on a local laptop running Windows XP SP3. This was on a project using Mercurial. I was working on https://hg.netbeans.org/platformx. I had build scripts and some Java files opened. I changed them in a text editor, TextPad, outside of the IDE; I was checking on some things, opened them, and just worked on them there...spontaneous I guess. Anyways, I changed back to NB, tried to click in the editor, and nothing. I had to close the files and reopen them. Is anyone else noticing this as being their issue? Are you editing files outside of the IDE and then switching back and roughly then it is losing focus? Every time this or the other issue has happened to me I have been using something else to edit files and switching between the other editor and NB. This has happened to me in Ant, Java, and JSP files now. Too, this doesn't happen always. It is sporadic. I can edit files quite regularly at times back and forth, and it doesn't happen. Other days it happens a whole lot. In all cases it seems to have been when changing files outside the IDE. Maybe some of you others have not been using another editor, but maybe you have been using svn or hg to update files and ones you have opened in the editor are reloaded perhaps? Anyways, I'm just noticing this as a pattern from my end on more than one system now.
Yes, I often edit files outside of IDE (The reason is that NB is really bad for having several files with the same name - it does not display the full path anywhere so it always takes forever to find the right file). I switch there and back. I also use TortoiseSvn, because unfortunately the svn support in NB is not that great. I will try to see if it happens when moving back to the IDE.
So no. Yesterday it happened without me editing anything outside. But it does seem that it always happens when switching back to the document (regardless whether from some other app or some other editor tab within NB), I don't think it ever happened in the middle of editing a document.
Any chance that you guys are using VNC? See issue #156648 that complains about the same symptoms, but in relation to accepting/closing VNC connections.
On one system I use GoToMyPC, but none of my others use a VNC related technology. It has happened both ways. Definitely a problem while switching focus it seems. This from one application to another or tabs in the editor. I notice that when I do this from another application it sometimes will mess up all the ones I have opened and not just the one with the cursor. All times it is related to switching focus though for me I have only ever seen it occur while switching from one application to the next.
No I am not using VNC.
Is this still happening in recent dev builds or 6.7M3? This is one of those mysterious defects that for sure are very annoying when they happen, but they only happen randomly and only to a few people. Which makes them extremely hard to investigate and fix. If this is no longer troubling you guys please close this issue. I'm leaving it open as P3 for others to add their comments, should there be more people experiencing the same problem. But realistically I don't think we can fix this without having a reproducible testcase.
There are no new reports from 6.7m3 and 6.7beta, so I'm closing this issue as works for me for now, if it still happens, please reopen it. Thanks