Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Latest snapshot #4

Open
nitrag opened this issue Aug 15, 2015 · 0 comments
Open

Update to Latest snapshot #4

nitrag opened this issue Aug 15, 2015 · 0 comments

Comments

@nitrag
Copy link

nitrag commented Aug 15, 2015

We need to update to the latest SDK so that we can include accessToken functionality.

I forked your repo @amorican:
https://github.com/nitrag/titanium-mapbox-android

But I'm not having any luck. I'm getting the attached error:

[INFO] :   TiApplication: (main) [11,46] Titanium Javascript runtime: v8
[DEBUG] :  dalvikvm: Trying to load lib /data/app-lib/flg.mapboxmoduletestharness-2/libstlport_shared.so 0xa50eacd8
[DEBUG] :  dalvikvm: Added shared lib /data/app-lib/flg.mapboxmoduletestharness-2/libstlport_shared.so 0xa50eacd8
[DEBUG] :  dalvikvm: No JNI_OnLoad found in /data/app-lib/flg.mapboxmoduletestharness-2/libstlport_shared.so 0xa50eacd8, skipping init
[DEBUG] :  dalvikvm: Trying to load lib /data/app-lib/flg.mapboxmoduletestharness-2/libkroll-v8.so 0xa50eacd8
[DEBUG] :  dalvikvm: Added shared lib /data/app-lib/flg.mapboxmoduletestharness-2/libkroll-v8.so 0xa50eacd8
[INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[ERROR] :  E/        : UID 10059 asks for /proc/cpuinfo
[ERROR] :  E/        : Unable to open file /data/data/.appwithABI2
[ERROR] :  E/        : Unable to open file /data/data/.appwithABI2neon
[ERROR] :  E/        : UID 10059 is not in ARM UID list files
[WARN] :   V8Object: (KrollRuntimeThread) [30,30] Runtime disposed, cannot set property 'userAgent'
[DEBUG] :  dalvikvm: Trying to load lib /data/app-lib/flg.mapboxmoduletestharness-2/libflg.mapbox.so 0xa50eacd8
[DEBUG] :  dalvikvm: Added shared lib /data/app-lib/flg.mapboxmoduletestharness-2/libflg.mapbox.so 0xa50eacd8
[DEBUG] :  dalvikvm: No JNI_OnLoad found in /data/app-lib/flg.mapboxmoduletestharness-2/libflg.mapbox.so 0xa50eacd8, skipping init
[DEBUG] :  dalvikvm: GC_CONCURRENT freed 354K, 9% free 4326K/4736K, paused 0ms+3ms, total 7ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed 13K, 9% free 4347K/4736K, paused 2ms, total 2ms
[INFO] :   I/dalvikvm-heap: Grow heap (frag case) to 4.635MB for 349068-byte allocation
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 8% free 4688K/5080K, paused 3ms, total 3ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 8% free 4688K/5080K, paused 2ms, total 2ms
[INFO] :   I/dalvikvm-heap: Grow heap (frag case) to 4.968MB for 349068-byte allocation
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 8% free 5029K/5424K, paused 2ms, total 2ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 8% free 5030K/5424K, paused 2ms, total 2ms
[INFO] :   I/dalvikvm-heap: Grow heap (frag case) to 5.302MB for 349068-byte allocation
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 7% free 5370K/5768K, paused 2ms, total 2ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 7% free 5371K/5768K, paused 3ms, total 3ms
[INFO] :   I/dalvikvm-heap: Grow heap (frag case) to 5.635MB for 349068-byte allocation
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 7% free 5712K/6112K, paused 2ms, total 2ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 7% free 6054K/6456K, paused 1ms, total 1ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 6% free 6395K/6800K, paused 1ms, total 1ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed <1K, 6% free 6736K/7144K, paused 2ms, total 2ms
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed 5K, 6% free 7085K/7488K, paused 3ms, total 3ms
[INFO] :   I/dalvikvm-heap: Grow heap (frag case) to 12.836MB for 6144012-byte allocation
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed 1K, 4% free 13084K/13492K, paused 9ms, total 9ms
[DEBUG] :  dalvikvm: GC_CONCURRENT freed <1K, 4% free 13084K/13492K, paused 1ms+0ms, total 12ms
[DEBUG] :  Module: Loading module: alloy -> Resources/alloy.js
[DEBUG] :  Module: Loading module: alloy/underscore -> Resources/alloy/underscore.js
[INFO] :   TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = flg.mapboxmoduletestharness.MapboxmoduletestharnessActivity@528e8498
[DEBUG] :  dalvikvm: Trying to load lib /data/app-lib/flg.mapboxmoduletestharness-2/libtiverify.so 0xa50eacd8
[DEBUG] :  dalvikvm: Added shared lib /data/app-lib/flg.mapboxmoduletestharness-2/libtiverify.so 0xa50eacd8
[ERROR] :  E/        : UID 10059 asks for /proc/cpuinfo
[ERROR] :  E/        : Unable to open file /data/data/.appwithABI2
[ERROR] :  E/        : Unable to open file /data/data/.appwithABI2neon
[ERROR] :  E/        : UID 10059 is not in ARM UID list files
[DEBUG] :  Module: Loading module: alloy/backbone -> Resources/alloy/backbone.js
[DEBUG] :  Module: Loading module: alloy/constants -> Resources/alloy/constants.js
[DEBUG] :  Module: Loading module: alloy/CFG -> Resources/alloy/CFG.js
[DEBUG] :  Module: Loading module: alloy/controllers/index -> Resources/alloy/controllers/index.js
[DEBUG] :  Module: Loading module: alloy/controllers/BaseController -> Resources/alloy/controllers/BaseController.js
[DEBUG] :  libEGL: loaded /system/lib/egl/libEGL_genymotion.so
[DEBUG] :  D/        : HostConnection::get() New Host Connection established 0xb7d73c20, tid 2306
[DEBUG] :  libEGL: loaded /system/lib/egl/libGLESv1_CM_genymotion.so
[DEBUG] :  libEGL: loaded /system/lib/egl/libGLESv2_genymotion.so
[WARN] :   EGL_genymotion: eglSurfaceAttrib not implemented
[ERROR] :  OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
[ERROR] :  OpenGLRenderer: MAX_TEXTURE_SIZE: 16384
[ERROR] :  OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
[ERROR] :  OpenGLRenderer: MAX_TEXTURE_SIZE: 16384
[DEBUG] :  OpenGLRenderer: Enabling debug mode 0
[INFO] :   module is => [object Object]
[DEBUG] :  MapboxModule: (KrollRuntimeThread) [161,161] [VIEWPROXY LIFECYCLE EVENT] init
[DEBUG] :  MapboxModule: (KrollRuntimeThread) [0,161] VIEWPROXY LIFECYCLE EVENT] handleCreationArgs
[DEBUG] :  MapboxModule: (KrollRuntimeThread) [2,163] VIEWPROXY LIFECYCLE EVENT] args[0] {region={latitudeDelta=180, longitude=50, longitudeDelta=180, latitude=50}, centerLat=30, height=fill, userLocation=true, centerLng=-84, width=fill, bottom=3, left=3, right=3, top=3}
[DEBUG] :  MapboxModule: (KrollRuntimeThread) [0,163] VIEWPROXY LIFECYCLE EVENT] handleCreationDict {"region":{"longitude":50,"latitudeDelta":180,"latitude":50,"longitudeDelta":180},"centerLat":30,"height":"fill","userLocation":true,"centerLng":-84,"width":"fill","bottom":3,"left":3,"right":3,"top":3}
[DEBUG] :  dalvikvm: GC_FOR_ALLOC freed 828K, 6% free 15254K/16160K, paused 3ms, total 3ms
[DEBUG] :  MapboxModule: (main) [128,291] [VIEW LIFECYCLE EVENT] view
[DEBUG] :  AppUtils: Device density is 480, and result of @2x check is true
[DEBUG] :  MapTileDownloader: Going to use @2x tiles? 'true'
[WARN] :   W/Mapbox MapView: mapid not set.
[WARN] :   Resources: Converting to string: TypedValue{t=0x12/d=0x0 a=1}
[WARN] :   Resources: Converting to string: TypedValue{t=0x12/d=0xffffffff a=1}
[DEBUG] :  AndroidRuntime: Shutting down VM
[WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4d6eb20)

[ERROR] :  TiApplication: (main) [4,295] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{flg.mapboxmoduletestharness/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid double: "false"; Titanium 4.1.0,2015/07/06 11:15,d57aa7d
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{flg.mapboxmoduletestharness/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid double: "false"
[ERROR] :  TiApplication:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
[ERROR] :  TiApplication:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
[ERROR] :  TiApplication:   at android.app.ActivityThread.access$800(ActivityThread.java:135)
[ERROR] :  TiApplication:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
[ERROR] :  TiApplication:   at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] :  TiApplication:   at android.os.Looper.loop(Looper.java:136)
[ERROR] :  TiApplication:   at android.app.ActivityThread.main(ActivityThread.java:5001)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invoke(Method.java:515)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
[ERROR] :  TiApplication:   at dalvik.system.NativeStart.main(Native Method)
[ERROR] :  TiApplication: Caused by: java.lang.NumberFormatException: Invalid double: "false"
[ERROR] :  TiApplication:   at java.lang.StringToReal.invalidReal(StringToReal.java:63)
[ERROR] :  TiApplication:   at java.lang.StringToReal.initialParse(StringToReal.java:94)
[ERROR] :  TiApplication:   at java.lang.StringToReal.parseDouble(StringToReal.java:263)
[ERROR] :  TiApplication:   at java.lang.Double.parseDouble(Double.java:295)
[ERROR] :  TiApplication:   at com.mapbox.mapboxsdk.views.MapView.<init>(MapView.java:237)
[ERROR] :  TiApplication:   at com.mapbox.mapboxsdk.views.MapView.<init>(MapView.java:254)
[ERROR] :  TiApplication:   at flg.mapbox.MapView.<init>(MapView.java:70)
[ERROR] :  TiApplication:   at flg.mapbox.MapViewProxy.createView(MapViewProxy.java:43)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:484)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:470)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:508)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:470)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:508)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:470)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:671)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:565)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:237)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:458)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:551)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] :  TiApplication:   at android.app.Activity.performCreate(Activity.java:5231)
[ERROR] :  TiApplication:   at android.app.Inst
[ERROR] :  TiApplication:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
[ERROR] :  TiApplication:   ... 11 more
[INFO] :   Process: Sending signal. PID: 2306 SIG: 9

or more specifically this section:

[ERROR] :  TiApplication: Caused by: java.lang.NumberFormatException: Invalid double: "false"
[ERROR] :  TiApplication:   at java.lang.StringToReal.invalidReal(StringToReal.java:63)
[ERROR] :  TiApplication:   at java.lang.StringToReal.initialParse(StringToReal.java:94)
[ERROR] :  TiApplication:   at java.lang.StringToReal.parseDouble(StringToReal.java:263)
[ERROR] :  TiApplication:   at java.lang.Double.parseDouble(Double.java:295)
[ERROR] :  TiApplication:   at com.mapbox.mapboxsdk.views.MapView.<init>(MapView.java:237)
[ERROR] :  TiApplication:   at com.mapbox.mapboxsdk.views.MapView.<init>(MapView.java:254)
[ERROR] :  TiApplication:   at flg.mapbox.MapView.<init>(MapView.java:70)
[ERROR] :  TiApplication:   at flg.mapbox.MapViewProxy.createView(MapViewProxy.java:43)

I can't friggin find the issue! @mrlundis or @farfromrefug do you have any ideas?

Notes:

  • I'm using ANT to compile
  • I don't think we need the "respackage" anymore
  • I removed geojson lib as that was causing a failure on module compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant