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 77522

Summary: StackOverflowError when profiling Paintapp sample
Product: profiler Reporter: Tomas Danek <musilt2>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 77533    
Bug Blocks:    
Attachments: StackOverflowError
StackOverflowError in 5.5 + 5.0 profiler

Description Tomas Danek 2006-06-07 13:41:17 UTC
NetBeans IDE Dev (Build 200605312230)
1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b02
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

-----------------------------
1) downloaded 6.0 profiler + 6.0 qbuild (referenced from profiler.netbeans.org)
2) created paintapp sample project (samples|netbeans plug-in modules)
3) try to profile it - after a while i get StackOverflowError (attached)
Comment 1 Tomas Danek 2006-06-07 13:41:51 UTC
Created attachment 30856 [details]
StackOverflowError
Comment 2 Tomas Danek 2006-06-07 14:44:09 UTC
I'm getting the same StackOverflowError after following steps:
1) have 5.0 profiler in 5.5 IDE 20060601
2) created paintapp sample project (samples|netbeans plug-in modules)
3) invoke profile project, choose "analyze performance". Leave defaults - Entire
application selected, Profile entire IDE *not* selected, Profile all classes.
4) run profiler
5) Ide stops to respond for ~15seconds  and finally  - StackOverflowError
Comment 3 Tomas Danek 2006-06-07 14:45:13 UTC
Created attachment 30863 [details]
StackOverflowError in 5.5 + 5.0 profiler
Comment 4 Tomas Danek 2006-06-07 14:46:50 UTC
note: to avoid StackOverflowError in 5.5 + 5.0 profiler, i check "Profile entire
IDE", then profiling runs fine.
Comment 5 Jiri Sedlacek 2006-06-07 15:47:31 UTC
This is caused by a bug in apisupport - project is being reported as its own 
subproject (ColorChooser in this case), causing a loop and SOE when traversing 
project and its subprojects.
Comment 6 Jiri Sedlacek 2006-06-07 15:58:18 UTC
Created a workaround in trunk, but should be fixed in apisupport.
Should be merged into release55 branch if apisupport fix won't happen there.
Comment 7 Jiri Sedlacek 2006-06-09 13:57:07 UTC
Workaround merged to release55 branch just to be sure/allow profiling on builds 
before IZ 77533 fix.
Comment 8 Tomas Hurka 2006-06-28 09:59:59 UTC
*** Issue 72736 has been marked as a duplicate of this issue. ***
Comment 9 Alexander Kouznetsov 2007-09-13 07:33:57 UTC
Verified with Beta1