• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shark for Java - 'the target process has already exited'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shark for Java - 'the target process has already exited'?


  • Subject: Re: Shark for Java - 'the target process has already exited'?
  • From: James Closs <email@hidden>
  • Date: Fri, 9 Sep 2005 09:08:11 +0100


On 9 Sep 2005, at 05:25, Mark Szymczyk wrote:

Launching a Java program from Shark doesn't work. You must either launch your program before you profile with Shark or launch the program from Xcode by choosing Debug > Launch Performance Tool > Shark.

Hi,

OK - I seem to have got Shark to attach to something by launching the app from the terminal rather than from Xcode. However, when I tell Shark to 'stop sampling' it just bombs out. Here's what happens...

First the java app quits and I get the message 'the application xxx had unexpectedly quit' etc

Then Shark goes into 'processing samples'

Then Shark bombs out with a dialog 'Failed to collect perf data from "JavaTraceDataSource" []' and a 'd'oh' button (nice touch!).

The stack trace is:

=====

2005-09-09 09:02:24.566 java[668] -[PTRemoteDataSourceListener dispatchFromPort:] - got config dict - {
    JavaSampleInterval = 1;
    JavaTraceType = 2;
    "cfg_description" = "";
    "cfg_enabled" = 1;
    "cfg_id" = "JavaTraceDataSourceConfig<0:a:95:b0:3b:32::1315023252>_2004-06-12 19:57:48 -0700_21";
    "cfg_name" = "";
    "cfg_summary" = "";
}
2005-09-09 09:02:28.087 java[668] -[SymbolLookup _cacheSourceInfoForRange:] can only be used with subclasses of SymbolLookup implementing the PTSymbolSourceProtocol
[-[SymbolLookup _cacheSourceInfoForRange:] (SymbolLookup.m:2132)]
2005-09-09 09:02:28.088 java[668] An uncaught exception was raised
2005-09-09 09:02:28.088 java[668] -[SymbolLookup _cacheSourceInfoForRange:] can only be used with subclasses of SymbolLookup implementing the PTSymbolSourceProtocol
[-[SymbolLookup _cacheSourceInfoForRange:] (SymbolLookup.m:2132)]
2005-09-09 09:02:28.089 java[668] *** Uncaught exception: <SharkCriticalException> -[SymbolLookup _cacheSourceInfoForRange:] can only be used with subclasses of SymbolLookup implementing the PTSymbolSourceProtocol
[-[SymbolLookup _cacheSourceInfoForRange:] (SymbolLookup.m:2132)]
Trace/BPT trap

=====

The end of java.crash.log is:

=====

0x95444000 - 0x9547dfff com.apple.Xcode.DevToolsSupport 4.1 (610)    /System/Library/PrivateFrameworks/DevToolsSupport.framework/Versions/A/DevToolsSupport
0x9549a000 - 0x9551dfff libstdc++.6.dylib     /usr/lib/libstdc++.6.dylib
0x9559b000 - 0x9586afff com.apple.Xcode.DevToolsCore 4.1 (620)    /System/Library/PrivateFrameworks/DevToolsCore.framework/Versions/A/DevToolsCore
0x959af000 - 0x959b6fff com.apple.Xcode.DevToolsRemoteClient 4.1 (621)    /System/Library/PrivateFrameworks/DevToolsRemoteClient.framework/Versions/A/DevToolsRemoteClient
0x96398000 - 0x9639afff com.apple.ExceptionHandling 1.2 (???)    /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHandling
0x963f0000 - 0x96637fff libclient.dylib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libclient.dylib
0x98a08000 - 0x98a08fff libcmm.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libcmm.jnilib
0x98a0e000 - 0x98a29fff libjava.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjava.jnilib
0x98a33000 - 0x98a3dfff libverify.dylib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libverify.dylib
0x9b063000 - 0x9b067fff libfontmanager.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libfontmanager.jnilib
0x9b0a8000 - 0x9b0cbfff libjpeg.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjpeg.jnilib
0x9b11a000 - 0x9b147fff libsuncmm.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libsuncmm.jnilib
0x9b14f000 - 0x9b15afff libzip.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libzip.jnilib
0x9b31f000 - 0x9b40afff libawt.jnilib     /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libawt.jnilib
0x9cbba000 - 0x9cbc8fff libz.1.dylib     /usr/lib/libz.1.dylib


====


James Closs, Director, bitBull Ltd


http://www.bitbull.com 


07771 991171


====


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Shark for Java - 'the target process has already exited'?
      • From: Ladd Van Tol <email@hidden>
References: 
 >Re: Shark for Java - 'the target process has already exited'? (From: Mark Szymczyk <email@hidden>)

  • Prev by Date: Re: Shark for Java - 'the target process has already exited'?
  • Next by Date: Re: Xcode Rules
  • Previous by thread: Re: Shark for Java - 'the target process has already exited'?
  • Next by thread: Re: Shark for Java - 'the target process has already exited'?
  • Index(es):
    • Date
    • Thread