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 253687 - Netbeans freezes when selected two or more files in the project view
Summary: Netbeans freezes when selected two or more files in the project view
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 14:16 UTC by alied
Modified: 2015-12-08 10:01 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump of Frozen IDE (31.10 KB, application/octet-stream)
2015-07-23 14:21 UTC, alied
Details
new Thread dump (34.41 KB, application/octet-stream)
2015-07-23 14:44 UTC, alied
Details
Netbeans snapshot while frozen (27.80 KB, application/octet-stream)
2015-07-23 15:29 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2015-07-23 14:16:56 UTC
[ BUILD # : 201507200001 ]
[ JDK VERSION : 1.8.0_45 ]

STEPS:
- Open a Java project
- Expand it sources.
- Select classes one by one

ACTUAL:
- The IDE freezes.

EXPECTED:
Classes are selected and available for operations.

Currently trying to get a snapshot/thread dump.

Product Version: NetBeans IDE Dev (Build 201507200001)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 4.1.3cxevoii running on amd64; UTF-8; en_US (nb)
User directory: /home/aperez/.netbeans/dev
Cache directory: /home/aperez/.cache/netbeans/dev
Comment 1 alied 2015-07-23 14:21:09 UTC
Created attachment 154822 [details]
Thread dump of Frozen IDE
Comment 2 alied 2015-07-23 14:23:51 UTC
In case it matters; these are my startup options:
netbeans_default_options="-J-server -J-Xss2m -J-Xmx2G -J-Dsun.java2d.dpiaware=true -J-XX:+UseG1GC -J-Dsun.zip.disableMemoryMapping=true -J-Djava.net.preferIPv4Stack=true -J-XX:CompileThreshold=100 -J-XX:+UseCompressedOops -J-Dsun.java2d.dpiaware=true  -J-Dsun.java2d.xrender=true -J-Dsun.java2d.opengl=true-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd"
Comment 3 alied 2015-07-23 14:25:21 UTC
it turns out it freezes when try to attach JVisualVM profiler.
Comment 4 alied 2015-07-23 14:44:18 UTC
Created attachment 154824 [details]
new Thread dump

This time with "Profile IDE" disabled. Forgot I had selected that in the previous one.
Comment 5 alied 2015-07-23 15:29:57 UTC
Created attachment 154825 [details]
Netbeans snapshot while frozen
Comment 6 d3jan 2015-07-26 15:28:18 UTC
NB 8.1 beta Freezes also in Files view.

  Product Version         = NetBeans IDE 8.1 Beta (Build 201507231027) (#ebce8947d744)
  Operating System        = Linux version 3.13.0-58-generic running on amd64
  Java; VM; Vendor        = 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0_45-b14
Comment 7 Vladimir Riha 2015-07-27 16:52:34 UTC
Tomasi, could you please evaluate this? Thank you
Comment 8 Tomas Stupka 2015-07-27 17:22:41 UTC
reproduced:
- set "show selected node(s) project owner"
- select more then one node
Comment 9 Tomas Stupka 2015-07-27 17:32:22 UTC
fixed in jet-main #5821515548bf
Comment 10 Vladimir Riha 2015-07-27 21:30:05 UTC
Thanks a lot for quick fix. I'll verify it tomorrow before lunch
Comment 11 Vladimir Riha 2015-07-28 08:05:29 UTC
Verified in jet-main build, could you please transplant it to beta branch?

Product Version: NetBeans IDE Dev (Build jet-main-1804-on-20150727)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
Comment 12 Tomas Stupka 2015-07-28 09:40:09 UTC
ported to branch release81_beta releases #d57335702037
Comment 13 Quality Engineering 2015-07-29 01:30:17 UTC
Integrated into 'main-silver', will be available in build *201507290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5821515548bf
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #253687 - Netbeans freezes when selected two or more files in the project view
Comment 14 Vladimir Riha 2015-07-31 12:58:15 UTC
Verified in Beta, thank you

Product Version: NetBeans IDE 8.1 Beta (Build 201507302201)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
Comment 15 SlaWinner 2015-12-02 06:31:18 UTC
Actual for 8.1: Any selection in the code (right after start-up) lead to an IDE freezing.

--- System

Product Version: NetBeans IDE 8.1 (Build 201510222201) (#bb5d68d8a020)
Operating System: Linux version 3.16.7-29-desktop running on amd64
Java; VM; Vendor: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23; Oracle Corporation
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27

--- Also it's not possible to send an error via IDE:

INFO [org.netbeans.modules.uihandler.Installer]: findIdentity: 74f2eed3-6014-4883-8f4a-8659d1522864_4da30fb0-eb13-4d53-ab9f-516e6efe33dc
INFO [org.netbeans.modules.uihandler.Installer]
org.netbeans.modules.uihandler.Installer$ResponseException: Not Implemented
	at org.netbeans.modules.uihandler.Installer.uLogs(Installer.java:1400)
	at org.netbeans.modules.uihandler.Installer.uploadLogs(Installer.java:1211)
	at org.netbeans.modules.uihandler.Installer.access$1600(Installer.java:124)
[catch] at org.netbeans.modules.uihandler.Installer$Submit.uploadAndPost(Installer.java:2182)
	at org.netbeans.modules.uihandler.Installer$Submit.access$1400(Installer.java:1689)
	at org.netbeans.modules.uihandler.Installer$Submit$1$2.run(Installer.java:2082)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 16 SlaWinner 2015-12-02 06:40:01 UTC
WARNING [org.netbeans.core.TimableEventQueue]: too much time in AWT thread org.netbeans.modules.sampler.InternalSampler@179e625d
Comment 17 Tomas Stupka 2015-12-04 14:28:59 UTC
> Actual for 8.1: Any selection in the code (right after start-up) lead to an IDE freezing.
this issue is about selecting two nodes in the projects view while "show selected node(s) project owner" is on

please describe what exactly do you mean under "any selection in the code" 

thanks
Comment 18 SlaWinner 2015-12-08 07:38:52 UTC
(In reply to Tomas Stupka from comment #17)
> please describe what exactly do you mean under "any selection in the code" 

Open project -> open any file in it (reproduced in .js, .php, .css) -> select a part of a code -> IDE became freezing [ceases to work for a several minutes]

https://www.dropbox.com/s/qsay1r5lud9mqyt/sample_of_selection.png?dl=0
Comment 19 Tomas Stupka 2015-12-08 10:01:20 UTC
> Open project -> open any file in it (reproduced in .js, .php, .css) ->
> select a part of a code
this really doesn't seem like it has anything to do with the project view. I will close this issue again as it was originally about something else and we should not mix up reports. 

feel free to file a new issue against another product/component (editor maybe, i'm not sure, in the worst case it can be reassigned). 
Please also attach a self profiling snapshot created while reproducing the problem.
http://wiki.netbeans.org/FaqProfileMeNow

thanks