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.
Summary: | Form Files Sometimes Show in Projects Window | ||
---|---|---|---|
Product: | platform | Reporter: | MackSix |
Component: | Data Systems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | anebuzelsky, javydreamercsw, jbecicka, jmborer, MackSix, mienamoo, mmirilovic, musilt2, pquiring, rov63rus, tpavek |
Priority: | P3 | Keywords: | RANDOM |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 208589 | ||
Bug Blocks: | |||
Attachments: |
Form files showing in Projects Window.
Log File New screenshot of bug. Log File Screenshot of problem. Screenshot log file Screenshot Project to use for reproduction. 2nd Project to use for reproduction. log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject Screenshot - form files showing & one java file has wrong icon Logfile - form files showing & one java file has wrong icon Screenshot, log file, thread dump Java SE Deactivated But Java SE Works And Form Files Show messages.log (NetBeans 8.0.1) |
Is not this only temporary? E.g. the .form files should disappear after a while. If not, run with -J-Dorg.openide.loaders.FolderChildren.level=FINE and provide logs when the error happens again. Created attachment 113390 [details]
Log File
Log file when error happened.
Created attachment 113391 [details]
New screenshot of bug.
1) Create a java project with some form files. 2) Create a project with a Master/Detail form per instructions here: http://wiki.netbeans.org/TS_68_FormAndSupportSanity#Test_suite:_Database_connection 3) Open up project node in project from step #1 and see if form files are showing. If not goto step #4 4) Delete project with Master/Detail form. 5) Create another java project with some form files. 6) Do step #2 and then check files in packages of the 2 java projects and see if the form files are showing. See attached log and new screenshot of error. Product Version: NetBeans IDE 7.1 RC1 (Build 201111171527) Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) I used -J-Dorg.openide.loaders.FolderChildren.level=FINE when this happened, so the log file reflects this setting. this deserves attention for at least p3 level. OK, what file has remained visible .form? Package, file name. The log is good, but there seems to be many .form files. I need to know which of them was broken. My screenshot attachment show the form files that showed. It is what goes along with the log file attachment. Here they are: NewMaterDetailForm.form NewJFrame.form NewJPanel.form The log seems to indicate everything is OK on the FolderChildren side. Probably something is wrong with nodes. Please reproduce again also with -J-Dorg.openide.nodes.level=FINE Thanks. *** Bug 202698 has been marked as a duplicate of this bug. *** *** Bug 207220 has been marked as a duplicate of this bug. *** Used: -J-Dorg.openide.loaders.FolderChildren.level=FINE and -J-Dorg.openide.nodes.level=FINE form files open: NewJFrame.form and NewJPanel.form See attached log file. See attached screenshot. Product Version: NetBeans IDE 7.1 (Build 201112071828) Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Created attachment 115479 [details]
Log File
Log File from February 05 2012
Created attachment 115480 [details]
Screenshot of problem.
New Screenshot form February 05 2012
I would hope this problem gets fixed due to changes made for bug 208589. (In reply to comment #17) > I would hope this problem gets fixed due to changes made for bug 208589. I had Dev 201206010001 running on my computer with a simple project open. The computer was in standby all night and I woke it up this morning and was browsing the Internet for a few hours and then I looked at NetBeans and the project that was open is now showing the form file. I will set the switches in the config and see if I can catch it again. See new screenshot. Product Version: NetBeans IDE Dev (Build 201206010001) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) User directory: C:\Users\Mark\AppData\Roaming\NetBeans\dev20120601 Cache directory: C:\Users\Mark\AppData\Local\NetBeans\Cache\dev20120601 Created attachment 120240 [details]
Screenshot
Created attachment 120707 [details]
log file
Caught form files showing in project with -J-Dorg.openide.loaders.FolderChildren.level=FINE and -J-Dorg.openide.nodes.level=FINE
Product Version: NetBeans IDE Dev (Build 201206110001)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Form files showing are:
MainView.form
OpenFileView.form
SaveFileView.form
See attached messages.log and screenshot.
Created attachment 120709 [details]
Screenshot
I can repeat this using these steps: Use Netbeans IDE with C/C++ module and Qt SDK installed and MinGW toolkit from Qt SDK installed. Use make from MinGW MYSYS "\MinGW\msys\1.0\bin\make.exe" 1) Delete all files in Netbeans cache directory. 2) Run Netbeans. 3) Open attached project in Illuminator_1.zip and wait for scanning to finish. 4) Open up Illuminator_1 tree in Project window and view source files. Observe no files with "form" extension are showing. Close tree in reverse order, but leave project open. 5) Open attached project in Qt_Application_1.zip and wait for scanning and initializing toolkit to finish. 6) Clean and Build Qt_Application_1 and wait until it finishes. 7) Run Qt_Application_1 from Project context menu and then click OK button on dialog box to close it. 8) Open up Illuminator_1 tree to view source files again. The files with "form" extension are now showing. Product Version: NetBeans IDE Dev (Build 201206110001) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Created attachment 120711 [details]
Project to use for reproduction.
Created attachment 120712 [details]
2nd Project to use for reproduction.
*** Bug 217849 has been marked as a duplicate of this bug. *** *** Bug 219161 has been marked as a duplicate of this bug. *** Reproduced. Thanks for the testcase with sample projects. Too much excitement. I've seen it once, but not since then. If anyone can reproduce it might be interesting to see the thread dump. (In reply to comment #28) > Too much excitement. I've seen it once, but not since then. If anyone can > reproduce it might be interesting to see the thread dump. P3 -> P2 -> P4 ??? P2 would be appropriate if there was a reproducible testcase. Can anyone try to produce the log files with -J-Dorg.openide.loaders.FolderChildren.level=FINE while reproducing the case? Btw. most recent changes to address bug 221279#c14 may schedule additional refresh of not disappeared nodes or at least provide more detailed logging. (In reply to Jaroslav Tulach from comment #31) > Can anyone try to produce the log files with > > -J-Dorg.openide.loaders.FolderChildren.level=FINE > > while reproducing the case? Btw. most recent changes to address bug > 221279#c14 may schedule additional refresh of not disappeared nodes or at > least provide more detailed logging. It happens all the time. I have it happen after renaming a project. I just had it happen on 7.4 RC1 after NetBeans run for a long time with a small project open. It shows the form files and it shows a broken icon on a Java file. I have log files with -J-Dorg.openide.loaders.FolderChildren.level=FINE and heap dumps. Do you wan them? (In reply to Jaroslav Tulach from comment #30) > P2 would be appropriate if there was a reproducible testcase. 1. Renaming a project with other project open and nodes all collapsed. Open up other program and from files shows. 2. I had installed NetBeans 7.4 RC1 with EXE installer and uninstalled it. It left the userdir and cachedir in my user account because I run as Admin. I installed the zip installation and it used those directories and caused a projects form files to show. This time it persisted whenever I restarted NetBeans. And the icnos for the files showd as a blank white file icon and javascript file icon instead of the file with question mark. I have not tried to reproduce this yet, but I have logfile, screeshots, heapdump and I zipped up the Username and Cachedir for the time it occured. I can provide more details and steps, log files, heap dumps, whatever else for both. Created attachment 140087 [details]
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject
Attached is log file, thread dump, 3 projects, jtatto.jar for the project GrumpyCatForm. I have the Heap Dump if needed.
Steps to reproduce:
This will happen without deleting the cache, but it seems to be easier to reproduce with a clean cache. Maybe because of more scanning being done with clean cache?
1. Open up all three projects in NetBeans 7.4 RC1.
2. Add jtattoo jar to GrumpyCatProject libraries.
3. Leave all nodes closed for all projects.
3. Open up the nodes and all the files for the Internationalization project.
4. Rename the the package in the Internationalization project (change number on the end).
5. Rename the Internationalization project (change number on the end).
6. Open up the nodes for the other 2 projects and look at the source packages.
Results: form files are showing for one or both of the other projects.
You may have to repeat this 2 or 3 times, but it always happens for me within 3 tries. This happens on JDK1.7.0_25 and JDK1.7.0_40 too. I have logfiles, threadumps, etc. for that it occurring these other JDKs. It seems like it is easier to reproduce with JDK1.8.0-ea, but it could be just a coincidence.
Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b48
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b106
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\User06\AppData\Roaming\NetBeans\7.4rc1-201309112301
Cache directory: C:\Users\User06\AppData\Local\NetBeans\Cache\7.4rc1-201309112301
Could this be relates? Issue 235928
(In reply to MackSix from comment #34) > Created attachment 140087 [details] > > 5. Rename the Internationalization project (change number on the end). *** In step 5, choose to rename the folder too. *** > You may have to repeat this 2 or 3 times, but it always happens for me > within 3 tries. Note, when I say 3 tries, sometimes you can just rename the project & folder again a couple of times. Sometimes you may need to close NetBeans and delete cache again and try it. Created attachment 140089 [details]
Screenshot - form files showing & one java file has wrong icon
This time it happened when I left NetBeans running for a while with the project open. I opened up the nodes and the form files were showing and one of the java files has icon missing and showing wrong "?" icon.
I have the heapdump for this, but I didn't get a threaddump, sorry.
I will attach the log file.
Created attachment 140090 [details]
Logfile - form files showing & one java file has wrong icon
Comment on attachment 140087 [details]
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject
Sorry, I chose the wrong file and uploaded a duplicate. :(
Comment on attachment 140087 [details]
log file, thread dump, 3 projects, jtattoo.jar library for GrumpyCatProject
Ok, I don't know what is going on, I clicke the ling for the logfile I last uploaded and it sent me here twice and I thought I uploaded the wrong file, but I didn't. Sorry.
Created attachment 140101 [details]
Screenshot, log file, thread dump
Attached is another batch from leaving NetBeans minimized on the computer for a while without using it. I open it up, expand project nodes and form files shows. This happens every time I leave it idle. Sometimes It may be only one project shows the form files, sometimes 2 projects will show the form files.
The zip file has the screen shot, thread dump and log file. This time I got a thread dump.
I have a heap dump if needed.
> This happens every time I leave it idle.
That is an interesting observation. Thanks.
*** Bug 225706 has been marked as a duplicate of this bug. *** Thank you very much for providing the projects and other data. Unfortunately, I haven't been able to reproduce the bug yet. I've followed the steps to reproduce (from comment 34) at least 10 times, but I haven't seen any form files in explorer. > This happens every time I leave it idle. How much time is needed? I've tried about 45 minutes, also invoked garbage collection, but everything worked fine. > Could this be related? Issue 235928 I don't think so. (In reply to Jaroslav Havlin from comment #43) > Thank you very much for providing the projects and other data. > Unfortunately, I haven't been able to reproduce the bug yet. > I've followed the steps to reproduce (from comment 34) at least 10 times, but > I haven't seen any form files in explorer. > > > This happens every time I leave it idle. > How much time is needed? I've tried about 45 minutes, also invoked garbage > collection, but everything worked fine. > 45 minutes is enough time, but I have not seen it lately after leaving the computer idle. I would not know why? I just got 7.4 RC1 (Build 201309162201) to do it 2 times by using the rename routine, but both times was accompanied by a message pop-up that said the renaming of the project folder could not be done. I try again and the rename of the folder would happen, then the form files in Illuminator_1 are showing. I saw this before, but it did not always occur. When it did occur, the form files may or may not have shown. Plus sometimes they would show with out the pop-up message occurring. So I don't know if it is coincidental or it is related. It looks like it could be related. Also, I would rename a few times, then restart NetBeans and then it would occur. It always took a restart after trying a few times to try again. This is exhausing, I know. :) I activated the C/C++ and PHP modules and am seeing the form files show after about 10 or 15 minutes of idle time of the IDE. No PHP Or C/C++ project is open, just the 3 attached here, except I turned GrumpyCat Project into a Maven Project. Coincidence? Could this be related? https://netbeans.org/bugzilla/show_bug.cgi?id=235719 (In reply to MackSix from comment #46) > Could this be related? > https://netbeans.org/bugzilla/show_bug.cgi?id=235719 Maybe, I don't know, I'm sorry. I cannot reproduce that bug as well. (In reply to MackSix from comment #45) Thank you for new info. I've tried all of the steps to reproduce you've provided, several times, on Windows 7, NetBeans 7.4 RC1, JDK 1.8 ea, but I haven't been able to reproduce the bug yet. It seems it's something in system configuration or HW, maybe the fast disk. (In reply to Jaroslav Havlin from comment #47) > (In reply to MackSix from comment #46) > > Could this be related? > > https://netbeans.org/bugzilla/show_bug.cgi?id=235719 > Maybe, I don't know, I'm sorry. I cannot reproduce that bug as well. > I don't see it happen with steps on other bug now, but I saw it 2 times after adding new tool chain. It seems easy to reproduce sometimes and then sometimes not. Last night it took a few times of deleting and adding 2nd tool chain to see it happen. > (In reply to MackSix from comment #45) > Thank you for new info. I've tried all of the steps to reproduce you've > provided, > several times, on Windows 7, NetBeans 7.4 RC1, JDK 1.8 ea, but I haven't been > able to reproduce the bug yet. It seems it's something in system > configuration > or HW, maybe the fast disk. My original report was 2 years ago on a Sony Laptop, SATA-I standard hard disk. Then it occurs on an HP Laptop SATA-II standard hard disk and still on same laptop with SSD SATA III. But I noticed it before with SATA-II HD and only lately since the upgrade to SSD I see it happening when NetBeans is idle. Even if I am using the computer it will do it. Sometimes not, but usually more often than not. :) Thanks for trying! This bug still exists in 7.4 final. I find that closing and reopening the project fixes it for me. I don't need to restart NetBeans completely. Thanks. Anyone has some details on reproducing this problem, or at least capturing log files? Otherwise I am afraid we are not going to fix this. Jardo, this bug is P3 at least, regardless if you want to fix it or not. Logs *are* attached. See attachments section. With Build 201407070942, Java SE projects will open and everything seems fine except the form files show and although everything works fine (files open in editor, code completion works, Java projects compile and run), Java SE shows deactivated in the Options dialog and Plugin manager. Once I double click a form file, Java SE is activated and the form files go away. I guess the features on demand deactivated Java SE. I also tried deactivating it in the Plugin manager with the same results. Although it is deactivated, Java SE is still working. See new screenshot. Product Version: NetBeans IDE Dev (Build 201407070942) Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Created attachment 148008 [details]
Java SE Deactivated But Java SE Works And Form Files Show
Created attachment 150134 [details]
messages.log (NetBeans 8.0.1)
Still occurring in 8.0.1.
(In reply to pquiring from comment #54) > Created attachment 150134 [details] > messages.log (NetBeans 8.0.1) > > Still occurring in 8.0.1. The files jfcraft.client.Launcher.form and jfcraft.client.Main.form is what to look for in the log file. I don't think I will ever fix this, so passing to current module owner (sorry Jardo). |
Created attachment 111143 [details] Form files showing in Projects Window. Several times I have noticed that form files will show when expanding a package node in the Projects Window. Restarting NetBeans causes them to not show any longer. I have not been able to determine the steps to reproduce it, but I have never seen it happen in a package that is already expanded when NetBeans starts. See screenshot. Product Version: NetBeans IDE Dev (Build 201109240601) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)