Annoying "Too Many Usages" dialog

I don't remember when this started showing up, but it was in the last 4 or 5 EAPs. But everytime I do a "Find in path..." (Ctrl-Shift-F), I get this dialog stating that usages found in so many bytes of files and that IDEA may run out of memory or become unstable.

This dialog has never appeared before. I did use to have a problem where IDEA would run out of memory if I didn't exclude our directory that has all the SQL dumps of our data, but now I exclude it and it's not searched.

I wonder if some code is not taking this into account when decided whether or not to display this dialog.

Thanks,
Patrick



Attachment(s):
Too Many Usages.JPG
10 comments
Comment actions Permalink

IDEA counts all files it had already found occurences in plus the file it
just going to start scanning. Under any circumstances it doesn't count files
it is not going to search occurences in.

BTW, do you finally have trouble if ignoring the message? How many usages
are found then? Are those files really large?

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

IDEA counts all files it had already found occurences
in plus the file it
just going to start scanning. Under any circumstances
it doesn't count files
it is not going to search occurences in.

>

Ok. In that case, it would be nice to know what file it's complaining about.

BTW, do you finally have trouble if ignoring the
message? How many usages
are found then? Are those files really large?


If I say "yes, go ahead" I have no problems. Memory use doesn't even go up. It varies based on what I'm searching for how many more usages are found.

The thing is, until recently, I have never seen this message before. And no huge files have been added in the mean time.

Again, if I knew which file was triggering this now, then maybe I could get an idea why it suddenly started showing up.

Thanks,
Patrick

0
Comment actions Permalink

The message appeared quite recently as a workaround to many complaints Find
in Path fails with OutOfMemory so no wonder why you started getting it only
now.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>> IDEA counts all files it had already found occurences
>> in plus the file it
>> just going to start scanning. Under any circumstances
>> it doesn't count files
>> it is not going to search occurences in.

Ok. In that case, it would be nice to know what file it's complaining
about.

>> BTW, do you finally have trouble if ignoring the
>> message? How many usages
>> are found then? Are those files really large?

If I say "yes, go ahead" I have no problems. Memory use doesn't even
go up. It varies based on what I'm searching for how many more usages
are found.

The thing is, until recently, I have never seen this message before.
And no huge files have been added in the mean time.

Again, if I knew which file was triggering this now, then maybe I
could get an idea why it suddenly started showing up.

Thanks,
Patrick



0
Comment actions Permalink

Same here, it'd be nice if the dialog showed what file is too large, rather than its size. I always click yes (maybe add a 'never ask about this file again' checkbox?)

I've yet to see any memory errors when the search is completed.

0
Comment actions Permalink

it'd also be nice if the dialog does keep showing the size, to show it in a civilised format rather than 23984434 bytes (5kb, 1mb, etc)

0
Comment actions Permalink

Done.

In a case of one large file ( > 5mb ) it shows the path and suggests to skip
it from processing. The process itself goes further.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Which build should I look for this in? Is it in the one from today?

Thanks,
Patrick

0
Comment actions Permalink

Not yet, will be available tomorrow
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Which build should I look for this in? Is it in the one from today?

Thanks,
Patrick



0
Comment actions Permalink

Just checked this, and low and behold, the offending file was a psd file (a photoshop document).

Now, I know that IDEA probably doesn't search through unknown file types, so why warn me about that file?

Patrick

0
Comment actions Permalink

Damn... Got it, fixed. Thanks a lot!

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.