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.
Build: NetBeans IDE 7.1 (Build 201112012200) VM: Java HotSpot(TM) 64-Bit Server VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13 OS: Linux Stacktrace: java.io.IOException: Invalid HPROF version or format at org.netbeans.lib.profiler.heap.HprofByteBuffer.readHeader(HprofByteBuffer.java:169) at org.netbeans.lib.profiler.heap.HprofMappedByteBuffer.<init>(HprofMappedByteBuffer.java:70) at org.netbeans.lib.profiler.heap.HprofByteBuffer.createHprofByteBuffer(HprofByteBuffer.java:89) at org.netbeans.lib.profiler.heap.HprofHeap.<init>(HprofHeap.java:129) at org.netbeans.lib.profiler.heap.HeapFactory.createHeap(HeapFactory.java:87) at org.netbeans.lib.profiler.heap.HeapFactory.createHeap(HeapFactory.java:69)
Created attachment 113761 [details] stacktrace
Where are steps to reproduce it?
It is thrown from compare heap dump feature, when the comparison heap dump is in wrong format - if the same heap dump is opened through open heap dump from main menu no exception is thrown and error message is shown - maybe the behavior should be the same?
Fixed by http://hg.netbeans.org/profiler-main/rev/658c8af0f2bc.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/658c8af0f2bc User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #205852 - check hprof file format when comparing heap dumps