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 95325 - OutOfMemoryError on saving current view of memory snapshot
Summary: OutOfMemoryError on saving current view of memory snapshot
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 22:41 UTC by Alexander Kouznetsov
Modified: 2007-08-13 14:43 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 Alexander Kouznetsov 2007-02-12 22:41:59 UTC
Profiler 070212
NetBeans IDE Dev (Build 200702111900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Steps to reproduce:
- Create big enough memory snapshot
- Click Save Current View
- Uncheck Save Only Visible Area
- RESULT: Preview not available message is shown
- Provide file name. Click Save.
- RESULT: java.lang.OutOfMemoryError: Java heap space
Comment 1 Jiri Sedlacek 2007-02-12 22:47:13 UTC
Not much to do here, just suggest that OOME can occur for this operation and
eventually provide a hint about increasing Xmx.
Comment 2 Alexander Kouznetsov 2007-04-09 11:48:54 UTC
Exception should be caught and error dialog should be shown.
Comment 3 Jiri Sedlacek 2007-08-13 13:45:25 UTC
That's not possible since the OOME can occur anywhere in the IDE, not just in the Profiler code.
Comment 4 Jiri Sedlacek 2007-08-13 13:51:21 UTC
BTW catching OOME in Profiler is implemented since beginning.
Comment 5 Jiri Sedlacek 2007-08-13 14:43:22 UTC
Sorry for misunderstanding, the OOME is currently being catched only in the preview panel of Save View dialog. Now 
implemented also for saving the screenshot. However, the OOME can still occur anywhere in the IDE outside the Profiler 
code.

Fixed for Beta1.