Problems running the NDK sample

edited June 2013 in Native
I've successfully compiled the NDK library into an .so library and built up the sample demo (Java Android app) into an .apk.

When running the app, it immediately crashes with this error:

I/demo-loadBalancing( 5913): 2013-06-27 15:19:40,387067 ERROR PeerBase.cpp connect()
line: 178 - failed: PhotonConnect_createConnection() failed.
E/dalvikvm( 5913): JNI ERROR (app bug): attempt to use stale local reference 0x52200019
E/dalvikvm( 5913): VM aborting
F/libc ( 5913): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 5913 (d.loadBalancing)

Full error at:

What is wrong here? I am just using the sample provided AS-IS.


  • Do you set the targetSdkVersion to any specific value in the AndroidManifest.xml?
    Please check, if it helps, when you set it to something below 14.
  • Yes it helped, thank you !
  • OK.
    That means, that our Android debug logging code has an incompatibility to some JNI changes that are only active when the app explicitly targets Ice Cream Sandwich or higher. We will fix that in a future version.
    It's nothing critical, just something that could get problematic in the future, so that Ice Cream Sandwich already treats it as error on default, if debuggable is set to true.
    In case that you are interested, here are the details: ... n-ics.html
    I have just stumbled upon that blogpost myself, when googling for your error.
Sign In or Register to comment.