Description:
When I run an alloy or classic app in android emulator I see multiple "Choreographer" log INFO entries like so:
[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.appc.classic.ClassictestActivity@40ff8618
[INFO] : Choreographer: Skipped 57 frames! The application may be doing too much work on its main thread.
[INFO] : Choreographer: Skipped 114 frames! The application may be doing too much work on its main thread.
[INFO] : dalvikvm: Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
[WARN] : dalvikvm: VFY: unable to resolve virtual method 11961: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
[INFO] : dalvikvm: Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
[WARN] : dalvikvm: VFY: unable to resolve virtual method 11967: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
[INFO] : dalvikvm: Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
[WARN] : dalvikvm: VFY: unable to resolve virtual method 9530: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
[INFO] : dalvikvm: Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged
[WARN] : dalvikvm: VFY: unable to resolve virtual method 11964: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
[INFO] : dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
[WARN] : dalvikvm: VFY: unable to resolve virtual method 539: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
[INFO] : dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
[WARN] : dalvikvm: VFY: unable to resolve virtual method 561: Landroid/content/res/TypedArray;.getType (I)I
[INFO] : Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.
[INFO] : Choreographer: Skipped 62 frames! The application may be doing too much work on its main thread.
[INFO] : Choreographer: Skipped 141 frames! The application may be doing too much work on its main thread.
[INFO] : Choreographer: Skipped 43 frames! The application may be doing too much work on its main thread.
The frame number will vary. I have not see this type of INFO statement before.
Steps to reproduce:
1) Create a new project - alloy default or classic two-tab
2) Launch in android emulator
3) Monitor log
Result:
Expected Result:
Ash, can you take a look at this?
[~emerriman] regression?
Looking at this.
[~emerriman] May I know what kind of settings you are using for the emulator as well? Eg, Device, Target, CPU/ABU. Use Host GPU, RAM, VM Heap. Choreographer is only available on API16+ (JellyBean) so it shouldn't appear on devices and emulators below that. I'm using 4.0.0.v20150320224212. I get the following logs.
On my emulator, I only get Choreographer twice with low number of frames being skipped. Could it just be that the emulator that you are using is really slow? Choreographer only starts logging when the main thread is slow which occurs most of the time on emulators. Real devices normally work fine and hence, there's nothing for Choreographer to log about.
Just a note: Tried this with:- 3.4.1.GA 3.5.0.GA 3.5.1.GA 4.0.0.v20150320224212 I get a consistent only 2 Choreographer logs with the classic app on my Emulator. Based on that, I think it's more on what kind (settings) of emulator a person is using. Don't think it's a regression. [~emerriman], what do you think?
Hi [~emerriman], any thoughts on [~msamah] comments? If it's ok i'll mark this as not reproducible by the end of this sprint. :)
Closing ticket as "Cannot Reproduce" with reference to the above comments.