[ 
https://issues.apache.org/jira/browse/NETBEANS-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16354882#comment-16354882
 ] 

Gili commented on NETBEANS-359:
-------------------------------

I am seeing this issue extremely frequently (over 50% of the time I attempt to 
profile). Can anyone else reproduce this on their end or is it specific to my 
project?

> ArrayIndexOutOfBoundsException at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor
> -------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-359
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-359
>             Project: NetBeans
>          Issue Type: Bug
>          Components: profiler - Base
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-release-205-on-20180202)
> Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
> Runtime: Java(TM) SE Runtime Environment 9.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
> User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
> Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
>            Reporter: Gili
>            Priority: Major
>
> When I start a profiler session (CPU instrumentation mode) I sometimes get 
> this exception:
>  
> {code:java}
> java.lang.ArrayIndexOutOfBoundsException: 1
> at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.createInstrumentedMethodPack15(RecursiveMethodInstrumentor.java:500)
> at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.createInstrumentedMethodPack(RecursiveMethodInstrumentor.java:339)
> at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor1.getMethodsToInstrumentUponClassLoad(RecursiveMethodInstrumentor1.java:236)
> at 
> org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForCallGraph(Instrumentor.java:350)
> at 
> org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:242)
> at 
> org.netbeans.lib.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:1901)
> at org.netbeans.lib.profiler.ProfilerClient.access$300(ProfilerClient.java:67)
> [catch] at 
> org.netbeans.lib.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:105)
> java.lang.ArrayIndexOutOfBoundsException: 1
> at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.createInstrumentedMethodPack15(RecursiveMethodInstrumentor.java:500)
> at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor.createInstrumentedMethodPack(RecursiveMethodInstrumentor.java:339)
> at 
> org.netbeans.lib.profiler.instrumentation.RecursiveMethodInstrumentor1.getMethodsToInstrumentUponClassLoad(RecursiveMethodInstrumentor1.java:236)
> at 
> org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponseForCallGraph(Instrumentor.java:350)
> at 
> org.netbeans.lib.profiler.instrumentation.Instrumentor.createFollowUpInstrumentMethodGroupResponse(Instrumentor.java:242)
> at 
> org.netbeans.lib.profiler.ProfilerClient.instrumentMethodGroupFollowUp(ProfilerClient.java:1901)
> at org.netbeans.lib.profiler.ProfilerClient.access$300(ProfilerClient.java:67)
> [catch] at 
> org.netbeans.lib.profiler.ProfilerClient$SeparateCmdExecutionThread.run(ProfilerClient.java:105){code}
>  
> and the profiling session subsequently hangs indefinitely.
> Repro steps:
>  # Open Maven project
>  # Start profiling session
>  # Profile -> Methods
>  # Profile: Focused (instrumentation): Selected Classes
>  # Select a project in the current project
>  # Launch profiling session
>  # 3-5 seconds into the session, the exception thrown.
>  # Once you are in this bad state, hitting the "Re-run the goals" button in 
> the Output Window causes the bug to keep on appearing 100% of the time. If I 
> stop and manually run the profiler again the problem is less likely to return.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to