0

I'm getting below JNI error.

E/dalvikvm(16831): JNI ERROR (app bug): attempt to use stale global reference 0x1d20043a
E/dalvikvm(16831): VM aborting
A/libc(16831): Fatal signal 6 (SIGABRT) at 0x000041bf (code=-6), thread 16831 (com.example.sample)
A/libc(16831): Send stop signal to pid:16831 in void debuggerd_signal_handler(int, siginfo_t*, void*)

It occurs sometimes rarely and my app closes. Any suggestion about what this error is and what causes it?

Michael
  • 57,169
  • 9
  • 80
  • 125
kevz
  • 2,727
  • 14
  • 39
  • You could check the answer to this [SO question](http://stackoverflow.com/q/9978011/2688283). – iRuth Feb 25 '15 at 06:15

1 Answers1

0

Your app meaning an app you made?

It usually occurs, as it says, when you attempt to use a global reference to a Java object in C or C++ code which is no longer valid.

If this is your app, then you have to check all of the global references you have created.

juunas
  • 54,244
  • 13
  • 113
  • 149
  • Yep app made by me. I'll check it out. – kevz Feb 25 '15 at 06:22
  • I have use '.so' file in app – kevz Feb 25 '15 at 06:30
  • You should check the question that @iRuth posted as a comment in your question, see if those help. But otherwise you have to check you are using that native library correctly from their documentation. – juunas Feb 25 '15 at 06:31