[AC-3044] Android V8 Runtime error.
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-06-11T06:15:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | C2DM, android |
Reporter | Surajit Biswas |
Assignee | Eduardo Gomez |
Created | 2012-05-25T02:11:30.000+0000 |
Updated | 2016-03-08T07:48:05.000+0000 |
Description
I have implemented C2DM module for android. But when I use it in Titanium project it throws me run time error as below:
05-25 14:12:58.935: ERROR/TiApplication(3701): (KrollRuntimeThread) [42,2032] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: Couldn't load com.findlaw.c2dm: findLibrary returned null; Titanium 1.8.2,2012/02/23 17:46,59b3a90
05-25 14:12:58.935: ERROR/TiApplication(3701): java.lang.UnsatisfiedLinkError: Couldn't load com.findlaw.c2dm: findLibrary returned null
05-25 14:12:58.935: ERROR/TiApplication(3701): at java.lang.Runtime.loadLibrary(Runtime.java:429)
05-25 14:12:58.935: ERROR/TiApplication(3701): at java.lang.System.loadLibrary(System.java:554)
05-25 14:12:58.935: ERROR/TiApplication(3701): at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:88)
05-25 14:12:58.935: ERROR/TiApplication(3701): at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:68)
05-25 14:12:58.935: ERROR/TiApplication(3701): at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:146)
05-25 14:12:58.935: ERROR/TiApplication(3701): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:99)
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): FATAL EXCEPTION: KrollRuntimeThread
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): java.lang.UnsatisfiedLinkError: Couldn't load com.findlaw.c2dm: findLibrary returned null
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): at java.lang.Runtime.loadLibrary(Runtime.java:429)
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): at java.lang.System.loadLibrary(System.java:554)
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:88)
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:68)
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:146)
05-25 14:12:58.970: ERROR/AndroidRuntime(3701): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:99)
I am getting this error when I run this project in V8. But if I run it in Rhino it is working fine.
I have attached the Titanium project and C2DM android module respectively.
I have also tested this in Titanium mobilesdk-2.0.2.v20120522180515-win32, but result is same.
Attachments
After built module as per following settings was able to get it compiled successfully:
build.properties
DDMS output
Can you update your ndk version? Furthermore, if it doesn't works, can you install [gperf](http://www.gnu.org/software/gperf/) and give another try? I'm not currently able to install & test gperf, but as per user reports it is needed for Windows 7 (win32) to work around Android module Errors out in V8 with java.lang.UnsatisfiedLinkError (which I got after trying to use your module bundle version). I'll leave this open for a while in case of questions or further clarifications.
5.6.12 - Uploaded generated "com.findlaw.c2dm-android-0.1.zip". Ported & tested from "/Library/Application\ Support/Titanium/modules/android/com.findlaw.c2dm"
Hello Gomez, Thanks for your reply. Issue was with the ndk version and also gperf was not installed in my system. After installing gperf and also get the latest ndk i.e r8 it has worked successfully. You can close this bug.