Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-6526

Geocoder: Android: Alloy sample is crashing after filling an address

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.3.0
    • Component/s: Samples
    • Environment:

      TiSDK 3.3.0.v20140516002513
      Alloy 1.4.0-alpha
      Appcelerator Studio 3.3.0.201405121247
      CLI 3.3.0-dev

    • Story Points:
      5
    • Sprint:
      2014 Sprint 10 Studio

      Description

      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

      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:

       
      [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: 	at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273)
      [ERROR] :  Crittercism: 	at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242)
      [ERROR] :  Crittercism: 	at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309)
      [ERROR] :  Crittercism: 	at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265)
      [ERROR] :  Crittercism: 	at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953)
      [ERROR] :  Crittercism: 	at ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714)
      [ERROR] :  Crittercism: 	at ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603)
      [ERROR] :  Crittercism: 	at android.os.Handler.dispatchMessage(Handler.java:95)
      [ERROR] :  Crittercism: 	at android.os.Looper.loop(Looper.java:137)
      [ERROR] :  Crittercism: 	at android.app.ActivityThread.main(ActivityThread.java:5103)
      [ERROR] :  Crittercism: 	at java.lang.reflect.Method.invokeNative(Native Method)
      [ERROR] :  Crittercism: 	at java.lang.reflect.Method.invoke(Method.java:525)
      [ERROR] :  Crittercism: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      [ERROR] :  Crittercism: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      [ERROR] :  Crittercism: 	at 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: 	at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:273)
      [ERROR] :  TiApplication: 	at ti.modules.titanium.map.TiMapView$TitaniumOverlay.createItem(TiMapView.java:242)
      [ERROR] :  TiApplication: 	at com.google.android.maps.ItemizedOverlay.populate(ItemizedOverlay.java:309)
      [ERROR] :  TiApplication: 	at ti.modules.titanium.map.TiMapView$TitaniumOverlay.setAnnotations(TiMapView.java:265)
      [ERROR] :  TiApplication: 	at ti.modules.titanium.map.TiMapView.doSetAnnotations(TiMapView.java:953)
      [ERROR] :  TiApplication: 	at ti.modules.titanium.map.TiMapView.doUpdateAnnotations(TiMapView.java:714)
      [ERROR] :  TiApplication: 	at ti.modules.titanium.map.TiMapView.handleMessage(TiMapView.java:603)
      [ERROR] :  TiApplication: 	at android.os.Handler.dispatchMessage(Handler.java:95)
      [ERROR] :  TiApplication: 	at android.os.Looper.loop(Looper.java:137)
      [ERROR] :  TiApplication: 	at android.app.ActivityThread.main(ActivityThread.java:5103)
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invokeNative(Native Method)
      [ERROR] :  TiApplication: 	at java.lang.reflect.Method.invoke(Method.java:525)
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      [ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      [ERROR] :  TiApplication: 	at dalvik.system.NativeStart.main(Native Method)
      [INFO] :   Process: Sending signal. PID: 8929 SIG: 9
      

      Not reproducible using Alloy version 1.3.1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                fcasali Federico Casali
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: