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 153381 - Editor freezes when selecting text
Summary: Editor freezes when selecting text
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 12:26 UTC by sotocan
Modified: 2012-02-09 11:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sotocan 2008-11-18 12:26:08 UTC
Hello, I have a Symfony project with an "action.class.php" file that has 2235 lines of code (lots of comments too). 
When I try to select text (in order to copy it or format the selected code), the editor freezes(doesn't responds) for
3-4 seconds!!! If I select the same text again, it doesn't freezes. It might be an issue with the "Highlighting"
feature, which unfortunately I can't (or don't know how to) disable!
This is really irritating and counterproductive! Note also that with Java code I don't have the same problem, but the
Java files I have used have relatively less number of lines (max ~1000)!
My computer is an old Pentium IV HT @2.8Ghz (dynamically OC upto 2960Mhz) with 1GB RAM and Windows XP SP3. My Java
version is the latest, JDK 6 update 10.
Comment 1 Mikhail Matveev 2008-11-18 14:55:09 UTC
Can't reproduce this. For a file of same size, selecting text in editor works instantly.
My system is similar except I have 2Gb RAM.
Comment 2 sotocan 2008-11-19 10:36:58 UTC
After a bit experimentation, I need to re-state the problem. First of all, it has nothing to do with the variable
highlight feature of the editor (which is almost instantaneous in my case). Size of the file does matters (files with
~1000 lines, don't freeze that much!). Some background task, that is searching for something related to the current
selection, is causing it. Please consider the following: 
* Netbeans 6.5 RC 1 => Create PHP project with Existing Sources => open the file "action.class.php" => select text in
editor => editor freezes for 3-4 seconds
* Netbeans 6.5 RC 2 => same steps, same behavior!
* Then, I deleted the project I have created in Netbeans 6.5 RC 1, and just opened the exact same file
"action.class.php". It doesn't freeze at all, no matter what I select (or how fast I select different parts). Of course
code-completion doesn't work in this case. 
From the above, we can safely conclude that the Symfony Framework and the way Netbeans is analyzing/processing it, are
responsible for this problem.
As a last note, my available RAM is ~240 MBs (allocation for Netbeans is usually between 175 and 200 MBs).
Hope this post will help more...Cheers!
Comment 3 Tomasz Slota 2010-02-10 08:45:27 UTC
reassigning to default owner
Comment 4 Filip Zamboj 2010-09-15 12:27:33 UTC
batch reassigning
Comment 5 Ondrej Brejla 2012-02-09 11:06:12 UTC
Can't reproduce. Tets it in NB 7.1 stable build. If the problem occurs again, please, reopen this issue.