Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15950] Android: Print error messages in Debug mode if the sync events are not processed

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-11T01:16:28.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 25, 2013 Sprint 25 API, Release 3.2.0, Release 3.3.0
ComponentsAndroid
Labelsn/a
ReporterPing Wang
AssigneePing Wang
Created2013-12-10T23:44:59.000+0000
Updated2013-12-13T07:49:54.000+0000

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)

Comments

  1. Ping Wang 2013-12-11

    PR: https://github.com/appcelerator/titanium_mobile/pull/5114 3_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/5115
  2. Paras Mishra 2013-12-13

    App is running fine with no error, hence closing it Verified fix on: Device : HTC desire V , Android version : 4.0.3 SDK: 3.2.0.201312121648 CLI version : 3.2.0-cr3 OS : MAC OSX 10.9 Alloy: 1.3.0-cr ACS: 1.0.10 Appcelerator Studio, build: 3.2.0.201312101708 titanium-code-processor: 1.1.0-cr2 XCode : 5.0.2

JSON Source