Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HProf errors



I was recently trying to profile a trivial little game I'm writing for a project. I was launching from Eclipse. I got it to run once just fine with good profiling info, but when changing the -Xrunhprof options to experiment, the next time Eclipse "unexpectedly quit" while trying launch my program. After restarting Eclipse, I got hprof errors. Now, even if I just do "java -Xrunhprof:cpu=samples" from the Terminal, this comes up:

HPROF ERROR: unable to map JVMPI class ID to hprof class ID in class_load

about a gazillion times. If I try running other simple java applications with -Xrunhprof:cpu=times, (or samples) my application launches (very slowly) after the above errors, and is then followed by:

HPROF ERROR: unable to resolve a method id
HPROF ERROR: got NULL trace in jni_globalref_alloc
HPROF ERROR: unable to map JVMPI obj ID to hprof obj ID in globalref_alloc
and
HPROF ERROR: unable to resolve a method id
HPROF ERROR: got a NULL frame in bill_frames_cost

over and over in differing orders while my application is running and the java.hprof.txt file has almost no info in it, and the few traces are all messed up (empty or with NaN% for the cpu samples section). Same types of errors with all cpu options (samples, times, old).

No errors if I don't specify a cpu option, and java -Xprof still works fine.
I've tried restarting the computer thinking java just got in a funny state, but the error still remains, and I can't do any cpu profiling with -Xrunhprof now (Eclipse or not).

Any suggestions on what may clear this up besides a reinstall and a bug report?

Beige G3 233 (384 MB) :(
Mac OS X 10.2.2
Java 1.3.1
Eclipse 2 (either M1 or pre-M1, can't remember)

thanks,
Logan Allred
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.