besta created CB-2184:
-------------------------
Summary: JNI Error on HTC Evo device running android 4.0.3
Key: CB-2184
URL: https://issues.apache.org/jira/browse/CB-2184
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 2.3.0, 2.2.0
Environment: Android 4.0.3 on HTC Evo device
Reporter: besta
Assignee: Joe Bowser
My app uses Cordova to implement the business logic in JS. So there is a single
activity that loads a webview and afterwards some fragments to provide native
UI elements.
Running the app on an Android 2.2 emulator works fine. But trying the app on my
HTC Evo device leads to the following error:
01-04 17:58:11.537: E/dalvikvm(5451): JNI ERROR (app bug): attempt to use stale
local reference 0x1
01-04 17:58:11.537: E/dalvikvm(5451): VM aborting
01-04 17:58:11.537: A/libc(5451): Fatal signal 11 (SIGSEGV) at 0xdeadd00d
(code=1)
01-04 17:58:11.967: I/DEBUG(5047): debuggerd: 2013-01-04 17:58:11
01-04 17:58:11.967: I/DEBUG(5047): *** *** *** *** *** *** *** *** *** *** ***
*** *** *** *** ***
01-04 17:58:11.967: I/DEBUG(5047): Build fingerprint:
'htc_europe/htc_shooteru/shooteru:4.0.3/IML74K/385730.1:user/release-keys'
01-04 17:58:11.967: I/DEBUG(5047): pid: 5451, tid: 5531 >>>
eu.mobilion.wasserfinder <<<
01-04 17:58:11.967: I/DEBUG(5047): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR),
fault addr deadd00d
01-04 17:58:11.967: I/DEBUG(5047): r0 00000000 r1 00c34d48 r2 00000000 r3
00000000
01-04 17:58:11.967: I/DEBUG(5047): r4 deadd00d r5 40950ce8 r6 0000020c r7
52131900
01-04 17:58:11.967: I/DEBUG(5047): r8 01320c50 r9 27600005 10 0000000c fp
0127c3d0
01-04 17:58:11.967: I/DEBUG(5047): ip 00000000 sp 52131650 lr 408e82db pc
408e82da cpsr 60000030
01-04 17:58:11.967: I/DEBUG(5047): d0 0000000000000000 d1 0000000000000000
...
01-04 17:58:11.977: I/DEBUG(5047): d30 0000000000000000 d31 3ff0000000000000
01-04 17:58:11.977: I/DEBUG(5047): scr 60000013
01-04 17:58:12.247: I/DEBUG(5047): #00 pc 000512da
/system/lib/libdvm.so (dvmAbort)
01-04 17:58:12.247: I/DEBUG(5047): #01 pc 000326b8
/system/lib/libdvm.so (_ZNK16IndirectRefTable3getEPv)
01-04 17:58:12.247: I/DEBUG(5047): #02 pc 00055ea4
/system/lib/libdvm.so (_Z20dvmDecodeIndirectRefP6ThreadP8_jobject)
01-04 17:58:12.247: I/DEBUG(5047): #03 pc 0005724c
/system/lib/libdvm.so
01-04 17:58:12.247: I/DEBUG(5047): #04 pc 0022707e
/system/lib/libwebcore.so
01-04 17:58:12.247: I/DEBUG(5047): #05 pc 003ee990
/system/lib/libwebcore.so
01-04 17:58:12.247: I/DEBUG(5047): #06 pc 003a2cd2
/system/lib/libwebcore.so
01-04 17:58:12.247: I/DEBUG(5047): #07 pc 003a30ca
/system/lib/libwebcore.so
...
When commenting out the JS inclusion in the loaded index.html, the native UI
elements show up on my HTC Evo device but of course without any callback
functionality on button clicks due to the missing JS.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira