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.
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
Not much to do here, just suggest that OOME can occur for this operation and eventually provide a hint about increasing Xmx.
Exception should be caught and error dialog should be shown.
That's not possible since the OOME can occur anywhere in the IDE, not just in the Profiler code.
BTW catching OOME in Profiler is implemented since beginning.
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.