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 86428 - [ProfilingPoints] ArrayIndexOutOfBoundsException @ updateCallGraphs
Summary: [ProfilingPoints] ArrayIndexOutOfBoundsException @ updateCallGraphs
Status: RESOLVED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-04 05:36 UTC by jchristi
Modified: 2007-09-11 12:49 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 jchristi 2006-10-04 05:36:27 UTC
NetBeans IDE Dev (Build 200609161800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b100
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

Attempted profiling regions defined by profiling points, exluding java classes.

One profiling point defined, on the line that is the read() method entry point.

-JC

Profiler.attachToApp: ***************************************************
Profiler.attachToApp: profiling settings --------------------------------
name: Preset: Part of Application
profilingType: 16
overrideGlobalSettings: false
workingDir: 
jvmArgs: 
javaPlatform: <project>
threadsMonitoringEnabled: false
excludeWaitTime: true
cpuProfilingType: 0
instrScheme: 1
threadCPUTimerOn: false
instrumentGetterSetterMethods: false
instrumentEmptyMethods: false
instrumentMethodInvoke: true
instrumentSpawnedThreads: false
nProfiledThreadsLimit: 32
sortResultsByThreadCPUTime: false
samplingInterval: 10
instrumentationRootMethods: [Source Code defined via methods: 1 methods:
  class: com.sun.tools.hat.internal.parser.HprofReader
    method: read  ()Lcom/sun/tools/hat/internal/model/Snapshot;
  ]
codeFragmentSelection: null
codeRegionCPUResBufSize: 1000
runGCOnGetResultsInMemoryProfiling: true
allocTrackEvery: 10
allocStackTraceLimit: 0
selectedInstrFilter: Exclude Java Core Classes
profileUnderlyingFramework: false

Profiler.attachToApp: attach settings ----------------------------------
target type =Application
server type =Java Application
remote =false
direct =true
ctrlBreak =true
pid =-1
workingDir =
host =
host os =Windows
transient port =-1

Profiler.attachToApp: ***************************************************
Instrumentation filter:
  Filter type: Exclusive
  Filter value: java/ javax/ sun/ sunw/ org/omg/CORBA org/omg/CosNaming/ COM/rsa/ 
*** Profiler warning (Tue Oct 03 23:23:40 CDT 2006): class $Proxy0, ldr = 0 not
found anywhere
SEVERE [global]
java.lang.ArrayIndexOutOfBoundsException: 47
	at
com.sun.tools.profiler.results.cpu.FullInstrCPUCallGraphBuilder.updateCallGraphs(FullInstrCPUCallGraphBuilder.java:62)
	at
com.sun.tools.profiler.results.cpu.CPUCallGraphBuilder.readDataFromBuffer(CPUCallGraphBuilder.java:50)
	at
com.sun.tools.profiler.ProfilerClient.processProfilingResults(ProfilerClient.java:1013)
	at
com.sun.tools.profiler.ProfilerClient.readAndProcessProfilingResults(ProfilerClient.java:1004)
	at com.sun.tools.profiler.ProfilerClient.access$2200(ProfilerClient.java:48)
	at
com.sun.tools.profiler.ProfilerClient$ServerListener.handleServerCommand(ProfilerClient.java:1630)
[catch] at
com.sun.tools.profiler.ProfilerClient$ServerListener.run(ProfilerClient.java:1566)
SEVERE: Target JVM inactive
com.sun.tools.profiler.client.ClientUtils$TargetAppOrVMTerminated: Target JVM
inactive
	at com.sun.tools.profiler.ProfilerClient.getLastResponse(ProfilerClient.java:1262)
	at
com.sun.tools.profiler.ProfilerClient.getAndCheckLastResponse(ProfilerClient.java:1230)
	at
com.sun.tools.profiler.ProfilerClient.forceObtainedResultsDump(ProfilerClient.java:542)
	at
com.sun.tools.profiler.ProfilerClient.forceObtainedResultsDump(ProfilerClient.java:522)
	at
com.sun.tools.profiler.ProfilerClient.getCPUProfilingResultsSnapshot(ProfilerClient.java:595)
	at
com.sun.tools.profiler.ProfilerClient.getCPUProfilingResultsSnapshot(ProfilerClient.java:579)
[catch] at
org.netbeans.modules.profiler.ResultsManager.takeSnapshot(ResultsManager.java:147)
	at
org.netbeans.modules.profiler.ProfilerControlPanel2$ResultsSnippetPanel$1.run(ProfilerControlPanel2.java:1137)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Caused by: org.openide.ErrorManager$AnnException: msg
	at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:853)
	at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:631)
	at org.openide.ErrorManager.annotate(ErrorManager.java:431)
	at
org.netbeans.modules.profiler.ResultsManager.takeSnapshot(ResultsManager.java:154)
	... 3 more
ALL [null]: Failed to obtain results snapshot, the profiled application terminated.
*** Profiler error (Tue Oct 03 23:24:47 CDT 2006): in getMonitoredData(), caught
exception: com.sun.tools.profiler.client.ClientUtils$TargetAppOrVMTerminated:
Target JVM inactive
Comment 1 jchristi 2006-10-04 05:45:20 UTC
Similar results when I placed the profiling point at first line of code inside
the method as well. (Line 160, line 159 was the method declaration/entry line) 
Comment 2 Alexander Kouznetsov 2007-04-17 14:25:05 UTC
Is this issue still valid after PPs reimplementation?
Comment 3 Tomas Hurka 2007-09-11 12:49:53 UTC
Closing as works for me. Please reopen if you can reproduce it with latest dev. builds or beta1. Thanks.