Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

Ti.Map error on android device -moveCamera/onCameraChange

0
0

I am using Ti.Map module for android maps. I am closing a window that contains a map. I get the errors below, but not consistently. Sometimes I get the error below, othertimes it works without any problem. I tracked the source of the error to calling close() on the window. What do you think could be the problem?

08-26 23:07:35.820: E/TiApplication(27594): (main) [298,201583] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 3.1.2,2013/08/14 12:46,5ceaff8
08-26 23:07:35.820: E/TiApplication(27594): java.lang.NullPointerException
08-26 23:07:35.820: E/TiApplication(27594):     at ti.map.TiUIMapView.moveCamera(TiUIMapView.java:255)
08-26 23:07:35.820: E/TiApplication(27594):     at ti.map.TiUIMapView.onCameraChange(TiUIMapView.java:558)
08-26 23:07:35.820: E/TiApplication(27594):     at com.google.android.gms.maps.GoogleMap$2.onCameraChange(Unknown Source)
08-26 23:07:35.820: E/TiApplication(27594):     at com.google.android.gms.internal.cn$a.onTransact(Unknown Source)
08-26 23:07:35.820: E/TiApplication(27594):     at android.os.Binder.transact(Binder.java:279)
08-26 23:07:35.820: E/TiApplication(27594):     at blm.a(SourceFile:93)
08-26 23:07:35.820: E/TiApplication(27594):     at maps.ag.s.a(Unknown Source)
08-26 23:07:35.820: E/TiApplication(27594):     at maps.ag.t.run(Unknown Source)
08-26 23:07:35.820: E/TiApplication(27594):     at android.os.Handler.handleCallback(Handler.java:587)
08-26 23:07:35.820: E/TiApplication(27594):     at android.os.Handler.dispatchMessage(Handler.java:92)
08-26 23:07:35.820: E/TiApplication(27594):     at android.os.Looper.loop(Looper.java:130)
08-26 23:07:35.820: E/TiApplication(27594):     at android.app.ActivityThread.main(ActivityThread.java:3691)
08-26 23:07:35.820: E/TiApplication(27594):     at java.lang.reflect.Method.invokeNative(Native Method)
08-26 23:07:35.820: E/TiApplication(27594):     at java.lang.reflect.Method.invoke(Method.java:507)
08-26 23:07:35.820: E/TiApplication(27594):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
08-26 23:07:35.820: E/TiApplication(27594):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
08-26 23:07:35.820: E/TiApplication(27594):     at dalvik.system.NativeStart.main(Native Method)
08-26 23:07:35.895: E/AndroidRuntime(27594): FATAL EXCEPTION: main
08-26 23:07:35.895: E/AndroidRuntime(27594): java.lang.NullPointerException
08-26 23:07:35.895: E/AndroidRuntime(27594):    at ti.map.TiUIMapView.moveCamera(TiUIMapView.java:255)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at ti.map.TiUIMapView.onCameraChange(TiUIMapView.java:558)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at com.google.android.gms.maps.GoogleMap$2.onCameraChange(Unknown Source)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at com.google.android.gms.internal.cn$a.onTransact(Unknown Source)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at android.os.Binder.transact(Binder.java:279)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at blm.a(SourceFile:93)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at maps.ag.s.a(Unknown Source)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at maps.ag.t.run(Unknown Source)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at android.os.Handler.handleCallback(Handler.java:587)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at android.os.Handler.dispatchMessage(Handler.java:92)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at android.os.Looper.loop(Looper.java:130)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at android.app.ActivityThread.main(ActivityThread.java:3691)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at java.lang.reflect.Method.invokeNative(Native Method)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at java.lang.reflect.Method.invoke(Method.java:507)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
08-26 23:07:35.895: E/AndroidRuntime(27594):    at dalvik.system.NativeStart.main(Native Method)
08-26 23:07:35.900: E/(2793): Dumpstate > /data/log/dumpstate_app_error

Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles





Latest Images