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 271552 - IDE freezes upon opening a certain .java class file
Summary: IDE freezes upon opening a certain .java class file
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10
: P3 normal with 2 votes (vote)
Assignee: issues@ide
URL: https://drive.switch.ch/index.php/s/3...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-29 07:47 UTC by K__P
Modified: 2019-03-26 06:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (54.49 KB, text/plain)
2017-09-29 07:47 UTC, K__P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description K__P 2017-09-29 07:47:13 UTC
STEPS:
Each time I open a certain .java class file the IDE freezes and I need to use task manager to quit Netbeans IDE. 

The project compiles, so the java file is alright.

Maybe it is helpful to know that the project is under SVN version control, but commiting and updating also works.


WHAT I HAVE TRIED TO FIX:
Tried to delete cache folder in %localappdata% without success. 

Restarted IDE and the computer multiple times.

I ran into this issue already a few weeks ago, so it does not go away from itself.

ATTACHMENTS:
I attach the IDE's Thread and Heap dump (generated with jvisualvm.exe) together with the class file causing the freeze (follow URL above)



Product Version = NetBeans IDE 8.2 (Build 201705191307)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_131
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.131-b11

Reproducibility: Happens every time
Comment 1 K__P 2017-09-29 07:47:18 UTC
Created attachment 165205 [details]
IDE log
Comment 2 K__P 2017-09-29 08:03:03 UTC
Tried to copy the content of said java file (Exercises.java) into a new file called Exercises2.java, and it opened fine in Netbeans IDE. When deleting the old and renaming Exercises2 to Exercises in Windows Explorer, Netbeans froze again after opening the new Exercises.java, which opened fine 2 minutes ago.
Comment 3 user3822 2017-12-25 07:24:31 UTC
I'm pretty sure it has something to do with code folding, from my experience.

I can fix it temporarily by inserting random characters (at the first line of the file) and putting spaces in between the lines of the imports, but it'll eventually go back to freezing some time in the future. Also, it doesn't always work by doing this, you'll need to experiment.

It's pretty frustrating, to say the least, and it's embarrassing that they haven't addressed this issue.

I've had this issue for quite some time now, but the took the time out to create an account to rant about it.
Comment 4 user3822 2017-12-29 03:17:19 UTC
I found a workaround that works all the time. Whenever you encounter a .java file that you know that causes Netbeans to freeze when you try to view it in the IDE, quickly select all and cut. Netbeans won't freeze because there's nothing to read, just an empty .java file. Then, just undo the cut and all your code will go back.
Comment 5 peterpen 2019-03-26 06:21:23 UTC
If you are a online player so i have suggest you friends that you should play the http://vucredits.com/ imvu hack online game it is the card game and very different card game when you play this game i am sour you enjoying.