On Sep 8, 12:26 pm, DaveG <david.golom...@flexilis.com> wrote:
> My app is running into the following crash and I'm having a hard time
> diagnosing it. We have multiple background threads (including a couple
> pthreads started via JNI that are making calls back up to Java
> occasionally), but none of them are reporting errors . Any suggestions
> on how to go about isolating this? There are no symbols in libdvm, so
> I've been unable to figure out where the stack trace points. This has
> happened 3 times so far, with the same stack trace each time.

First and foremost, make sure you're running with CheckJNI enabled.
It's enabled by default on the emulator but not on the device.  You
can also try running with "forcecopy" enabled and see if that catches
anything.  See dalvik/docs/jni-tips.html and dalvik/docs/embedded-vm-
control.html (either in the sources or in gitweb).

You can try to build your own copy of Dalvik VM from the cupcake
sources, install libdvm.so, and then use gdbserver or dig through the
symbols with this:

  
http://groups.google.com/group/android-developers/browse_thread/thread/73f89bb8739c24bb/5228e7a5dcfff090

So long as the VM is from the same release you shouldn't run into
binary compatibility issues, and since you're only replacing the VM
this should work on a real device.  Root access required.  (Of course,
if you can make the problem happen in the emulator it's a bit easier
to deal with there.)

Note that libraries with symbols are never installed on the device
itself.  They're generated and stored in a separate directory in the
"out" directory, and the tools pull them from there.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to