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 231070 - When searching in 'Favorites' I get 'The file performance.csv seems to be to large (29 Mb) to safely open.
Summary: When searching in 'Favorites' I get 'The file performance.csv seems to be to ...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: draganknin
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2013-06-11 09:43 UTC by tomzi
Modified: 2013-07-24 09:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Profiling (3.73 MB, application/octet-stream)
2013-07-01 08:25 UTC, tomzi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2013-06-11 09:43:44 UTC
When I do a search I sometimes get this message 
    The file performance.csv seems to be to large (29 Mb) to safely open.
    Opening the file could cause OutOfMemoryError, which would make the IDE unusable. Do you really want to open it?

Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Linux version 3.8.0-23-generic running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Comment 1 Petr Cyhelsky 2013-06-19 07:33:51 UTC
please provide steps to reproduce. I've tried to invoke find on project which contained huge csv file and this never happened...
Comment 2 tomzi 2013-06-27 09:21:16 UTC
Somewhere in the source tree apparently I have a performance.csv file that is around 30MB large that contains lines like this:
,AAAA,090,4849005,20130114,102835000,50965700,,1800841031,13000,,A,0,B,00000.0000,BBBB,0904849005,,,S,,,,,,,,,,,,1800841031,,,,,,,,0,0,0,/ABC,,,,,,,,,,,,,0,
around 200 thousand lines.

These are the steps:
1.) Goto Favorites folder
2.) Click 'Find' on home directory, where somewhere lies the source tree with the performance.csv file
3.) Find a string that surely does not exist.

Somewhere in between the search I get the popup with the message above.
One notice I ususally have 7.1 GB of 8GB RAM used with Netbeans open.
Comment 3 Tomas Hurka 2013-06-27 16:16:09 UTC
(In reply to comment #2)
> 
> These are the steps:
> 1.) Goto Favorites folder
> 2.) Click 'Find' on home directory, where somewhere lies the source tree with
> the performance.csv file
> 3.) Find a string that surely does not exist.
We tried that, but we were unable to reproduce it. Can you, please, take a thread dump, when the dialog with above message is open. Attach this thread dump to the issue and reopen it. Thanks.
Comment 4 tomzi 2013-07-01 08:19:28 UTC
Do I do this via 'Start IDE Profiling...'?
Comment 5 tomzi 2013-07-01 08:25:38 UTC
Created attachment 136527 [details]
IDE Profiling

.) Find in Favourites
.) Popup with 'unable to open....' file
Comment 6 Jaroslav Havlin 2013-07-01 14:05:53 UTC
I'm sorry, I cannot reproduce the problem, too.

The dialog should be shown only if you click the file in the Search Results window, surely not during search.

I cannot see anything suspicious in the profiler snapshot.
Could you please try to create a thread dump when the dialog is shown?
http://wiki.netbeans.org/GenerateThreadDump

Thank you very much.
Comment 7 tomzi 2013-07-03 12:20:52 UTC
Apparently the reason for the error is this plugin http://plugins.netbeans.org/plugin/48312/nb-csv-editor. It seems to be loaded if i do a search in the file system.
Comment 8 Jaroslav Havlin 2013-07-03 13:01:20 UTC
(In reply to comment #7)
> Apparently the reason for the error is this plugin
> http://plugins.netbeans.org/plugin/48312/nb-csv-editor.
You are right, I was able to reproduce the bug with this plugin installed.

> It seems to be loaded if i do a search in the file system.
I also see the "File too big" dialog if I expand the folder that contains the big CSV file in Favorites. So the bug is not probably in search, but in the plugin, maybe in the data loader for CSV files.

I'm reassigning this bug to the owner of the plugin. Please evaluate it. Thank you.
Comment 9 Jaroslav Havlin 2013-07-24 07:06:04 UTC
The author confirmed by email that the bug is fixed in new version of plugin which is uploaded to plugin portal.

Thank you very much, Dragan!
Comment 10 tomzi 2013-07-24 09:12:21 UTC
great