Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13498] Android: Map Module v2 throws an UnsatisfiedLinkError on releases minor than 3.1

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionNot Our Bug
Resolution Date2017-07-05T18:14:31.000+0000
Affected Version/sRelease 2.1.3, Release 3.0.2
Fix Version/sn/a
ComponentsAndroid
LabelssupportTeam
ReporterEduardo Gomez
AssigneeEric Merriman
Created2013-04-09T17:42:28.000+0000
Updated2017-07-05T18:14:31.000+0000

Description

Problem

Actual Map Module 2.1.0 (committed the April 5th) does not seem to support SDKs other than the 3.1.0 release.

Details

App forces to close with "java.lang.UnsatisfiedLinkError" runtime issue.

Steps to reproduce

1. Set up a default app 2. Attach Map Module 2.1.0 3. Use sample http://pastie.org/7389773 4. Try out to build either 3.0.x or 2.1.x releases 5. Monitor console output

Patched SDK - 2.1.3.MapModule

04-08 12:56:30.658: I/TiApplication(9506): (main) [0,0] checkpoint, app created.
04-08 12:56:30.708: I/TiApplication(9506): (main) [52,52] Titanium 2.1.3.MapsModule.2 (2013/04/08 12:04 15997d0)
04-08 12:56:30.748: W/SurfaceView(637): CHECK surface infomation creating=false formatChanged=false sizeChanged=false visible=false visibleChanged=true surfaceChanged=true realSizeChanged=false redrawNeeded=false left=false top=false
04-08 12:56:30.868: I/TiApplication(9506): (main) [160,212] Titanium Javascript runtime: v8
04-08 12:56:30.888: I/TiRootActivity(9506): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
04-08 12:56:31.108: E/TiApplication(9506): (KrollRuntimeThread) [214,214] APP PROXY: ti.modules.titanium.app.AppModule@41931110
04-08 12:56:31.138: W/dalvikvm(9506): threadid=10: thread exiting with uncaught exception (group=0x40bde1f8)
04-08 12:56:31.138: E/TiApplication(9506): (KrollRuntimeThread) [36,250] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]:   169 cannot locate '_ZN8titanium13TypeConverter19jsValueToJavaObjectEP7_JNIEnvN2v85LocalINS3_5ValueEEEPb'...
04-08 12:56:31.138: E/TiApplication(9506): ; Titanium 2.1.3.MapsModule.2,2013/04/08 12:04,15997d0
04-08 12:56:31.138: E/TiApplication(9506): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]:   169 cannot locate '_ZN8titanium13TypeConverter19jsValueToJavaObjectEP7_JNIEnvN2v85LocalINS3_5ValueEEEPb'...
04-08 12:56:31.138: E/TiApplication(9506): 	at java.lang.Runtime.loadLibrary(Runtime.java:370)
04-08 12:56:31.138: E/TiApplication(9506): 	at java.lang.System.loadLibrary(System.java:535)
04-08 12:56:31.138: E/TiApplication(9506): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:111)
04-08 12:56:31.138: E/TiApplication(9506): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:76)
04-08 12:56:31.138: E/TiApplication(9506): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:171)
04-08 12:56:31.138: E/TiApplication(9506): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:106)
04-08 12:56:31.228: E/AndroidRuntime(9506): FATAL EXCEPTION: KrollRuntimeThread
04-08 12:56:31.228: E/AndroidRuntime(9506): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]:   169 cannot locate '_ZN8titanium13TypeConverter19jsValueToJavaObjectEP7_JNIEnvN2v85LocalINS3_5ValueEEEPb'...
04-08 12:56:31.228: E/AndroidRuntime(9506): 	at java.lang.Runtime.loadLibrary(Runtime.java:370)
04-08 12:56:31.228: E/AndroidRuntime(9506): 	at java.lang.System.loadLibrary(System.java:535)
04-08 12:56:31.228: E/AndroidRuntime(9506): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:111)
04-08 12:56:31.228: E/AndroidRuntime(9506): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:76)
04-08 12:56:31.228: E/AndroidRuntime(9506): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:171)
04-08 12:56:31.228: E/AndroidRuntime(9506): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:106)
04-08 12:56:31.228: W/ActivityManager(379):   Force finishing activity r.intent.getComponent().flattenToShortString()
04-08 12:56:31.268: W/SurfaceFlinger(168): id=65 Removed idx=1 Map Size=6
04-08 12:56:31.268: W/SurfaceFlinger(168): id=64 Removed idx=1 Map Size=5
04-08 12:56:31.268: W/SurfaceFlinger(168): id=65 Removed idx=-2 Map Size=5
04-08 12:56:31.268: W/SurfaceFlinger(168): id=64 Removed idx=-2 Map Size=5
04-08 12:56:31.268: E/android.os.Debug(379): !@Dumpstate > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error
04-08 12:56:31.268: D/memalloc(168): ion: Freeing buffer base:0x441f4000 size:3993600 fd:57
04-08 12:56:31.268: D/memalloc(168): ion: Unmapping buffer  base:0x441f4000 size:3993600
04-08 12:56:31.268: D/memalloc(168): ion: Freeing buffer base:0x455c9000 size:4096000 fd:72
04-08 12:56:31.268: D/memalloc(168): ion: Unmapping buffer  base:0x455c9000 size:4096000

TiSDK 3.0.2

4-09 10:03:47.259: I/ActivityManager(498): Start proc com.map for activity com.map/.MaptestActivity: pid=11568 uid=10058 gids={1015, 3003}
04-09 10:03:47.344: I/TiApplication(11568): (main) [0,0] checkpoint, app created.
04-09 10:03:47.376: I/TiApplication(11568): (main) [34,34] Titanium 3.0.2 (2013/02/15 19:02 5a77fe7)
04-09 10:03:47.438: I/TiApplication(11568): (main) [64,98] Titanium Javascript runtime: v8
04-09 10:03:47.438: D/dalvikvm(11568): Trying to load lib /data/data/com.map/lib/libstlport_shared.so 0x4051dad0
04-09 10:03:47.446: D/dalvikvm(11568): Added shared lib /data/data/com.map/lib/libstlport_shared.so 0x4051dad0
04-09 10:03:47.446: D/dalvikvm(11568): No JNI_OnLoad found in /data/data/com.map/lib/libstlport_shared.so 0x4051dad0, skipping init
04-09 10:03:47.446: D/dalvikvm(11568): Trying to load lib /data/data/com.map/lib/libkroll-v8.so 0x4051dad0
04-09 10:03:47.454: D/dalvikvm(11568): Added shared lib /data/data/com.map/lib/libkroll-v8.so 0x4051dad0
04-09 10:03:47.477: I/TiRootActivity(11568): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
04-09 10:03:47.548: I/dalvikvm(11568): Could not find method android.app.Activity.invalidateOptionsMenu, referenced from method org.appcelerator.titanium.proxy.ActivityProxy.handleInvalidateOptionsMenu
04-09 10:03:47.548: W/dalvikvm(11568): VFY: unable to resolve virtual method 53: Landroid/app/Activity;.invalidateOptionsMenu ()V
04-09 10:03:47.548: D/dalvikvm(11568): VFY: replacing opcode 0x6e at 0x0006
04-09 10:03:47.665: E/TiApplication(11568): (KrollRuntimeThread) [183,183] APP PROXY: ti.modules.titanium.app.AppModule@405bb760
04-09 10:03:47.688: D/dalvikvm(11568): Trying to load lib /data/data/com.map/lib/libti.map.so 0x4051dad0
04-09 10:03:47.688: W/dalvikvm(11568): threadid=8: thread exiting with uncaught exception (group=0x4001e560)
04-09 10:03:47.688: E/TiApplication(11568): (KrollRuntimeThread) [30,213] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1315]:   278 cannot locate '_ZN8titanium13TypeConverter19jsValueToJavaObjectEP7_JNIEnvN2v85LocalINS3_5ValueEEEPb'...
04-09 10:03:47.688: E/TiApplication(11568): ; Titanium 3.0.2,2013/02/15 19:02,5a77fe7
04-09 10:03:47.688: E/TiApplication(11568): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1315]:   278 cannot locate '_ZN8titanium13TypeConverter19jsValueToJavaObjectEP7_JNIEnvN2v85LocalINS3_5ValueEEEPb'...
04-09 10:03:47.688: E/TiApplication(11568): 	at java.lang.Runtime.loadLibrary(Runtime.java:434)
04-09 10:03:47.688: E/TiApplication(11568): 	at java.lang.System.loadLibrary(System.java:554)
04-09 10:03:47.688: E/TiApplication(11568): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:105)
04-09 10:03:47.688: E/TiApplication(11568): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:72)
04-09 10:03:47.688: E/TiApplication(11568): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:175)
04-09 10:03:47.688: E/TiApplication(11568): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
04-09 10:03:47.727: E/AndroidRuntime(11568): FATAL EXCEPTION: KrollRuntimeThread
04-09 10:03:47.727: E/AndroidRuntime(11568): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1315]:   278 cannot locate '_ZN8titanium13TypeConverter19jsValueToJavaObjectEP7_JNIEnvN2v85LocalINS3_5ValueEEEPb'...
04-09 10:03:47.727: E/AndroidRuntime(11568): 	at java.lang.Runtime.loadLibrary(Runtime.java:434)
04-09 10:03:47.727: E/AndroidRuntime(11568): 	at java.lang.System.loadLibrary(System.java:554)
04-09 10:03:47.727: E/AndroidRuntime(11568): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:105)
04-09 10:03:47.727: E/AndroidRuntime(11568): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:72)
04-09 10:03:47.727: E/AndroidRuntime(11568): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:175)
04-09 10:03:47.727: E/AndroidRuntime(11568): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
04-09 10:03:47.727: W/ActivityManager(498):   Force finishing activity com.map/.MaptestActivity
04-09 10:03:47.727: W/ActivityManager(498):   Force finishing activity com.motorola.blur.home/com.motorola.blur.apps.AppsActivity
04-09 10:03:47.751: W/ApplicationContext(498): Unable to create files directory
04-09 10:03:47.774: I/gralloc(498): Allocated 0x64657375 size 1818322493
04-09 10:03:48.016: I/AlarmManager(498): sending alarm Alarm{40a788b8 type 2 com.google.android.location}

Doc site

http://docs.appcelerator.com/titanium/3.0/#!/guide/Google_Maps_v2_for_Android

Comments

  1. Lee Morris 2017-07-05

    Closing ticket with reference to the above comments.

JSON Source