I have had no luck in using Shark to profile my dangling Java object
references. I've even tried running Shark on a "Hello World!" program
with no success.
I start the "Hello" program from within Shark. I let the program run
for 10 or 15 seconds. Then I stop Shark before the program
terminates, but all I get is a drop down dialog box "ERROR: No samples
taken. [JavaTraceDataSource]"
I've had other problems, but if I can just get the first "Java Time
Trace" to work the other problems may go away. I basically have not
been able to do ANY Java profiling with Shark yet. Any hints will be
greatly appreciated.
I too have never successfully been able to run Shark on a Java program.
With the latest CHUD tools that came out earlier this month, I got:
*** -[NSKeyedUnarchiver defoceObjectForKey:]: selector not recognized
#0 0x0000ad70 in 0xad70
#1 0x8dcb1fd8 in NSExceptionHandlerUncaughtExceptionHandler (
NSExceptionHandlerUncaughtExceptionHandler + 52)
#2 0x90a5c6e0 in _NSRaiseError (_NSRaiseError + 152)
#3 0x90a5c624 in +[NSException raise:format:] (+[NSException
raise:format:] + 44)
#4 0x909fcee8 in -[NSObject(NSForwardInvocation) forward::]
(-[NSObject(NSForwardInvocation) forward::] + 176)
#5 0x90836810 in _objc_msgForward (_objc_msgForward + 176)
#6 0x4e6156cc in -[SymbolLookup initWithCoder:] (-[SymbolLookup
initWithCoder:] + 3300)
#7 0x909f78c8 in _decodeObjectBinary (_decodeObjectBinary + 1776)
#8 0x909fb22c in _decodeObject (_decodeObject + 152)
#9 0x4e63646c in -[PTRemoteDataSourceClient collect]
(-[PTRemoteDataSourceClient collect] + 292)
#10 0x4e6073e4 in -[PTSession collect] (-[PTSession collect] + 124)
#11 0x00010548 in 0x10548
#12 0x90a39b74 in forkThreadForFunction (forkThreadForFunction +
108)
#13 0x900246e8 in _pthread_body (_pthread_body + 40)
I reported this to email@hidden as suggested by
the dialog that came up with error, rather than going through
bugreporter.
I was impressed with the response. Within 8 hours, I got a reply that
they had already reproduced the problem and fixed it, and it would be
in the next release. (Any ideas when that will be?)
With earlier versions of Shark, I always got an error:
'Failed to collect perf data from "JavaTraceDataSource"[]'
I thought I had raised a bug about this, but when I looked through my
bugs I couldn't find it. But there was definitely discussion about it
here on this list. Lots of others had the same problem, so you're not
alone.
--
Rohan Lloyd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden