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 104572

Summary: Memory profilers of large projects wreak havok
Product: profiler Reporter: apb <apb>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: messages.log

Description apb 2007-05-23 05:53:23 UTC
I have a very large project and every single time I try to run a memory profile
on it, the profiler crashes in netbeans when it instruments the 3,435th class.
This happen under Suse 10.1 64 bit and under Windows XP 64 bit with both Java
1.6.0 and 1.6.0_1 (I haven't tried it on any other platforms).

Here is the error:

java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at
com.sun.tools.profiler.instrumentation.SingleMethodScaner.initBytecodesArray(SingleMethodScaner.java:147)
	at
com.sun.tools.profiler.instrumentation.SingleMethodScaner.setClassAndMethod(SingleMethodScaner.java:42)
	at
com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.hasNewOpcodes(MemoryProfMethodInstrumentor.java:125)
	at
com.sun.tools.profiler.instrumentation.ObjLivenessMethodInstrumentor.methodNeedsInstrumentation(ObjLivenessMethodInstrumentor.java:42)
	at
com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.findAndMarkMethodsToInstrumentInClass(MemoryProfMethodInstrumentor.java:107)
	at
com.sun.tools.profiler.instrumentation.MemoryProfMethodInstrumentor.getMethodsToInstrumentUponClassLoad(MemoryProfMethodInstrumentor.java:71)
	at
com.sun.tools.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForMemoryProfiling(Instrumentor.java:463)
	at
com.sun.tools.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:157)
	at
com.sun.tools.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:901)
	at com.sun.tools.profiler.ProfilerClient.access$2900(ProfilerClient.java:46)
[catch] at
com.sun.tools.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:1603)
Comment 1 apb 2007-05-23 05:59:49 UTC

*** This issue has been marked as a duplicate of 104573 ***
Comment 2 patrick133t 2007-06-08 18:46:09 UTC
Created attachment 43451 [details]
messages.log
Comment 3 Alexander Kouznetsov 2007-09-10 10:26:36 UTC
Verified duplicate