Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15950

Android: Print error messages in Debug mode if the sync events are not processed

    Details

      Description

      Steps to reproduce:

      1. Create an alloy project
      2. Run the project in Appcelerator Studio with live view enabled

      Expected:
      It should run with no errors

      Actual:
      You will get an error like:

      [ERROR] :  TiMessenger: (main) [3475,4199] Unable to get the result from the blocking message.
      [ERROR] :  TiMessenger: java.lang.Throwable: getResult() has timed out.
      [ERROR] :  TiMessenger: 	at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:257)
      [ERROR] :  TiMessenger: 	at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:284)
      [ERROR] :  TiMessenger: 	at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:202)
      [ERROR] :  TiMessenger: 	at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:784)
      [ERROR] :  TiMessenger: 	at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:531)
      [ERROR] :  TiMessenger: 	at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)
      [ERROR] :  TiMessenger: 	at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)
      [ERROR] :  TiMessenger: 	at android.app.Activity.performCreate(Activity.java:5243)
      [ERROR] :  TiMessenger: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      [ERROR] :  TiMessenger: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
      [ERROR] :  TiMessenger: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
      [ERROR] :  TiMessenger: 	at android.app.ActivityThread.access$700(ActivityThread.java:135)
      [ERROR] :  TiMessenger: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
      [ERROR] :  TiMessenger: 	at android.os.Handler.dispatchMessage(Handler.java:102)
      [ERROR] :  TiMessenger: 	at android.os.Looper.loop(Looper.java:137)
      [ERROR] :  TiMessenger: 	at android.app.ActivityThread.main(ActivityThread.java:4998)
      [ERROR] :  TiMessenger: 	at java.lang.reflect.Method.invokeNative(Native Method)
      [ERROR] :  TiMessenger: 	at java.lang.reflect.Method.invoke(Method.java:515)
      [ERROR] :  TiMessenger: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
      [ERROR] :  TiMessenger: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
      [ERROR] :  TiMessenger: 	at dalvik.system.NativeStart.main(Native Method)
      

        Attachments

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              pwang Ping Wang
              Reviewer:
              Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18023
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code