Project: appceleratorstudio
Issue TISTUD-6526: Geocoder: Android: Alloy sample is crashing after filling an address
h5. Problem description Geocoder Alloy sample on Android is crashing when filling in an address. Reproducible only with Alloy 1.4.0 - so is a regression h5. Steps to reproduce 1. From Studio, import the Geocoder sample app. 2. Edit tiapp.xml and remove targetSdkVersion (looged a separate ticket: https://jira.appcelerator.org/browse/ALOY-1020) 3. Run the sample on Android (tested on Google Nexus Galaxy 4.3) 4. Click on the textfield and search for an Address Result: app crashes Crash log: {code} [WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x415cf700) [DEBUG] : HTTPClient: The persistent handle is disposed. [ERROR] : Crittercism: java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy [ERROR] : Crittercism: ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273) [ERROR] : Crittercism: ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242) [ERROR] : Crittercism: com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) [ERROR] : Crittercism: ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265) [ERROR] : Crittercism: ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953) [ERROR] : Crittercism: ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714) [ERROR] : Crittercism: ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603) [ERROR] : Crittercism: android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : Crittercism: android.os.Looper.loop(Looper.java:137) [ERROR] : Crittercism: android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : Crittercism: java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : Crittercism: java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : Crittercism: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : Crittercism: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : Crittercism: dalvik.system.NativeStart.main(Native Method) [DEBUG] : dalvikvm: GC_CONCURRENT freed 1456K, 9% free 15722K/17216K, paused 3ms+4ms, total 39ms [DEBUG] : dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 21ms [ERROR] : TiApplication: (main) [261349,262305] Sending event: exception on thread: main msg:java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy; Titanium 3.3.0,2014/05/16 00:25,df56177 [ERROR] : TiApplication: java.lang.ClassCastException: ti.map.AnnotationProxy cannot be cast to ti.modules.titanium.map.AnnotationProxy [ERROR] : TiApplication: ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273) [ERROR] : TiApplication: ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242) [ERROR] : TiApplication: com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309) [ERROR] : TiApplication: ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265) [ERROR] : TiApplication: ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953) [ERROR] : TiApplication: ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714) [ERROR] : TiApplication: ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603) [ERROR] : TiApplication: android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] : TiApplication: java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: java.lang.reflect.Method.invoke(Method.java:525) [ERROR] : TiApplication: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] : TiApplication: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : TiApplication: dalvik.system.NativeStart.main(Native Method) [INFO] : Process: Sending signal. PID: 8929 SIG: 9 {code} Not reproducible using Alloy version 1.3.1
Story points: 5