0

Google a récemment mis à jour la console Google Play, et les plantages sont désormais automatiquement signalés.Les nouveaux plots de la console développeur de Google ne sont plus corrects Les traces de pile ne sont plus précises

Depuis presque toutes les traces de la pile, je suis arrivé ne sont pas plus précis:

  • La trace de la pile est pleine de <OR> méthodes, donc je suppose que complète des candidats possibles?
  • Tous les numéros de ligne sont 0

Notez que j'utilise Proguard (et non Multidex) et je soupçonne fortement qu'il est la cause du problème.

Exemple:

java.lang.ClassCastException: 
at <<MyPackage>>.adapters.PackageRecyclerViewAdapter.getItemCount(PackageRecyclerViewAdapter.java:0) 
at <OR>.getItemViewType(PackageRecyclerViewAdapter.java:0) 
at <OR>.onBindViewHolder(PackageRecyclerViewAdapter.java:0) 
at <OR>.onCreateViewHolder(PackageRecyclerViewAdapter.java:0) 
at android.support.v7.widget.RecyclerView$Adapter.onCreateViewHolder(RecyclerView.java:0) 
at <OR>.onBindViewHolder(RecyclerView.java:0) 
at <OR>.onBindViewHolder(RecyclerView.java:0) 
at <OR>.getItemViewType(RecyclerView.java:0) 
at <OR>.getItemCount(RecyclerView.java:0) 
at <OR>.onViewRecycled(RecyclerView.java:0) 
at <OR>.registerAdapterDataObserver(RecyclerView.java:0) 
at <OR>.onAttachedToRecyclerView(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:0) 
at <OR>.bindViewHolder(RecyclerView.java:0) 
at <OR>.getItemId(RecyclerView.java:0) 
at <OR>.hasStableIds(RecyclerView.java:0) 
at <OR>.onFailedToRecycleView(RecyclerView.java:0) 
at <OR>.unregisterAdapterDataObserver(RecyclerView.java:0) 
at <OR>.onDetachedFromRecyclerView(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView$Recycler.clear(RecyclerView.java:0) 
at <OR>.setViewCacheSize(RecyclerView.java:0) 
at <OR>.validateViewHolderForOffsetPosition(RecyclerView.java:0) 
at <OR>.tryBindViewHolderByDeadline(RecyclerView.java:0) 
at <OR>.getViewForPosition(RecyclerView.java:0) 
at <OR>.tryGetViewHolderForPositionByDeadline(RecyclerView.java:0) 
at <OR>.invalidateDisplayListInt(RecyclerView.java:0) 
at <OR>.recycleView(RecyclerView.java:0) 
at <OR>.addViewHolderToRecycledViewPool(RecyclerView.java:0) 
at <OR>.getScrapOrCachedViewForId(RecyclerView.java:0) 
at <OR>.onAdapterChanged(RecyclerView.java:0) 
at <OR>.offsetPositionRecordsForMove(RecyclerView.java:0) 
at <OR>.offsetPositionRecordsForRemove(RecyclerView.java:0) 
at <OR>.setViewCacheExtension(RecyclerView.java:0) 
at <OR>.setRecycledViewPool(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView$Recycler.clear(RecyclerView.java:0) 
at <OR>.setViewCacheSize(RecyclerView.java:0) 
at <OR>.validateViewHolderForOffsetPosition(RecyclerView.java:0) 
at <OR>.tryBindViewHolderByDeadline(RecyclerView.java:0) 
at <OR>.getViewForPosition(RecyclerView.java:0) 
at <OR>.tryGetViewHolderForPositionByDeadline(RecyclerView.java:0) 
at <OR>.invalidateDisplayListInt(RecyclerView.java:0) 
at <OR>.recycleView(RecyclerView.java:0) 
at <OR>.addViewHolderToRecycledViewPool(RecyclerView.java:0) 
at <OR>.getScrapOrCachedViewForId(RecyclerView.java:0) 
at <OR>.onAdapterChanged(RecyclerView.java:0) 
at <OR>.offsetPositionRecordsForMove(RecyclerView.java:0) 
at <OR>.offsetPositionRecordsForRemove(RecyclerView.java:0) 
at <OR>.setViewCacheExtension(RecyclerView.java:0) 
at <OR>.setRecycledViewPool(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView$Recycler.clear(RecyclerView.java:0) 
at <OR>.setViewCacheSize(RecyclerView.java:0) 
at <OR>.validateViewHolderForOffsetPosition(RecyclerView.java:0) 
at <OR>.tryBindViewHolderByDeadline(RecyclerView.java:0) 
at <OR>.getViewForPosition(RecyclerView.java:0) 
at <OR>.tryGetViewHolderForPositionByDeadline(RecyclerView.java:0) 
at <OR>.invalidateDisplayListInt(RecyclerView.java:0) 
at <OR>.recycleView(RecyclerView.java:0) 
at <OR>.addViewHolderToRecycledViewPool(RecyclerView.java:0) 
at <OR>.getScrapOrCachedViewForId(RecyclerView.java:0) 
at <OR>.onAdapterChanged(RecyclerView.java:0) 
at <OR>.offsetPositionRecordsForMove(RecyclerView.java:0) 
at <OR>.offsetPositionRecordsForRemove(RecyclerView.java:0) 
at <OR>.setViewCacheExtension(RecyclerView.java:0) 
at <OR>.setRecycledViewPool(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView$Recycler.getScrapList(RecyclerView.java:0) 
at <OR>.getViewForPosition(RecyclerView.java:0) 
at <OR>.scrapView(RecyclerView.java:0) 
at <OR>.unscrapView(RecyclerView.java:0) 
at <OR>.viewRangeUpdate(RecyclerView.java:0) 
at android.support.v7.widget.LinearLayoutManager$LayoutState.hasMore(LinearLayoutManager.java:0) 
at <OR>.next(LinearLayoutManager.java:0) 
at <OR>.assignPositionFromScrapList(LinearLayoutManager.java:0) 
at <OR>.assignPositionFromScrapList(LinearLayoutManager.java:0) 
at android.support.v7.widget.LinearLayoutManager.generateDefaultLayoutParams(LinearLayoutManager.java:0) 
at <OR>.onDetachedFromWindow(LinearLayoutManager.java:0) 
at <OR>.onInitializeAccessibilityEvent(LinearLayoutManager.java:0) 
at <OR>.onRestoreInstanceState(LinearLayoutManager.java:0) 
at <OR>.setStackFromEnd(LinearLayoutManager.java:0) 
at <OR>.smoothScrollToPosition(LinearLayoutManager.java:0) 
at <OR>.onLayoutCompleted(LinearLayoutManager.java:0) 
at <OR>.onAnchorReady(LinearLayoutManager.java:0) 
at <OR>.updateAnchorInfoForLayout(LinearLayoutManager.java:0) 
at <OR>.updateAnchorFromPendingData(LinearLayoutManager.java:0) 
at <OR>.fixLayoutEndGap(LinearLayoutManager.java:0) 
at <OR>.updateLayoutStateToFillEnd(LinearLayoutManager.java:0) 
at <OR>.updateLayoutStateToFillEnd(LinearLayoutManager.java:0) 
at <OR>.scrollHorizontallyBy(LinearLayoutManager.java:0) 
at <OR>.updateLayoutState(LinearLayoutManager.java:0) 
at <OR>.collectPrefetchPositionsForLayoutState(LinearLayoutManager.java:0) 
at <OR>.collectInitialPrefetchPositions(LinearLayoutManager.java:0) 
at <OR>.collectAdjacentPrefetchPositions(LinearLayoutManager.java:0) 
at <OR>.assertNotInLayoutOrScroll(LinearLayoutManager.java:0) 
at <OR>.recycleChildren(LinearLayoutManager.java:0) 
at <OR>.recycleViewsFromStart(LinearLayoutManager.java:0) 
at <OR>.recycleByLayoutState(LinearLayoutManager.java:0) 
at <OR>.fill(LinearLayoutManager.java:0) 
at <OR>.layoutChunk(LinearLayoutManager.java:0) 
at <OR>.findFirstVisibleChildClosestToStart(LinearLayoutManager.java:0) 
at <OR>.findReferenceChild(LinearLayoutManager.java:0) 
at <OR>.findOneVisibleChild(LinearLayoutManager.java:0) 
at <OR>.onFocusSearchFailed(LinearLayoutManager.java:0) 
at android.support.v7.widget.LinearLayoutManager.generateDefaultLayoutParams(LinearLayoutManager.java:0) 
at <OR>.onDetachedFromWindow(LinearLayoutManager.java:0) 
at <OR>.onInitializeAccessibilityEvent(LinearLayoutManager.java:0) 
at <OR>.onRestoreInstanceState(LinearLayoutManager.java:0) 
at <OR>.setStackFromEnd(LinearLayoutManager.java:0) 
at <OR>.smoothScrollToPosition(LinearLayoutManager.java:0) 
at <OR>.onLayoutCompleted(LinearLayoutManager.java:0) 
at <OR>.onAnchorReady(LinearLayoutManager.java:0) 
at <OR>.updateAnchorInfoForLayout(LinearLayoutManager.java:0) 
at <OR>.updateAnchorFromPendingData(LinearLayoutManager.java:0) 
at <OR>.fixLayoutEndGap(LinearLayoutManager.java:0) 
at <OR>.updateLayoutStateToFillEnd(LinearLayoutManager.java:0) 
at <OR>.updateLayoutStateToFillEnd(LinearLayoutManager.java:0) 
at <OR>.scrollHorizontallyBy(LinearLayoutManager.java:0) 
at <OR>.updateLayoutState(LinearLayoutManager.java:0) 
at <OR>.collectPrefetchPositionsForLayoutState(LinearLayoutManager.java:0) 
at <OR>.collectInitialPrefetchPositions(LinearLayoutManager.java:0) 
at <OR>.collectAdjacentPrefetchPositions(LinearLayoutManager.java:0) 
at <OR>.assertNotInLayoutOrScroll(LinearLayoutManager.java:0) 
at <OR>.recycleChildren(LinearLayoutManager.java:0) 
at <OR>.recycleViewsFromStart(LinearLayoutManager.java:0) 
at <OR>.recycleByLayoutState(LinearLayoutManager.java:0) 
at <OR>.fill(LinearLayoutManager.java:0) 
at <OR>.layoutChunk(LinearLayoutManager.java:0) 
at <OR>.findFirstVisibleChildClosestToStart(LinearLayoutManager.java:0) 
at <OR>.findReferenceChild(LinearLayoutManager.java:0) 
at <OR>.findOneVisibleChild(LinearLayoutManager.java:0) 
at <OR>.onFocusSearchFailed(LinearLayoutManager.java:0) 
at android.support.v7.widget.LinearLayoutManager.onSaveInstanceState(LinearLayoutManager.java:0) 
at <OR>.findViewByPosition(LinearLayoutManager.java:0) 
at <OR>.onLayoutChildren(LinearLayoutManager.java:0) 
at <OR>.computeHorizontalScrollOffset(LinearLayoutManager.java:0) 
at <OR>.scrollBy(LinearLayoutManager.java:0) 
at <OR>.findOnePartiallyOrCompletelyInvisibleChild(LinearLayoutManager.java:0) 
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:0) 
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:0) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.support.v4.view.ViewPager.onLayout(ViewPager.java:0) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1080) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:0) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742) 
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585) 
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.support.design.widget.CoordinatorLayout.getLastChildRect(CoordinatorLayout.java:0) 
at <OR>.layoutChild(CoordinatorLayout.java:0) 
at <OR>.resolveGravity(CoordinatorLayout.java:0) 
at <OR>.getDependencies(CoordinatorLayout.java:0) 
at <OR>.removePreDrawListener(CoordinatorLayout.java:0) 
at android.support.design.widget.CoordinatorLayout.releaseTempRect(CoordinatorLayout.java:0) 
at <OR>.setWindowInsets(CoordinatorLayout.java:0) 
at <OR>.getTopSortedChildren(CoordinatorLayout.java:0) 
at <OR>.performIntercept(CoordinatorLayout.java:0) 
at <OR>.parseBehavior(CoordinatorLayout.java:0) 
at <OR>.getResolvedLayoutParams(CoordinatorLayout.java:0) 
at <OR>.getDescendantRect(CoordinatorLayout.java:0) 
at <OR>.onMeasureChild(CoordinatorLayout.java:0) 
at <OR>.onLayoutChild(CoordinatorLayout.java:0) 
at <OR>.getChildRect(CoordinatorLayout.java:0) 
at <OR>.getDesiredAnchoredChildRectWithoutConstraints(CoordinatorLayout.java:0) 
at <OR>.constrainChildRect(CoordinatorLayout.java:0) 
at <OR>.getDesiredAnchoredChildRect(CoordinatorLayout.java:0) 
at <OR>.layoutChildWithAnchor(CoordinatorLayout.java:0) 
at <OR>.onChildViewsChanged(CoordinatorLayout.java:0) 
at <OR>.offsetChildByInset(CoordinatorLayout.java:0) 
at <OR>.ensurePreDrawListener(CoordinatorLayout.java:0) 
at <OR>.isPointInChildBounds(CoordinatorLayout.java:0) 
at <OR>.generateLayoutParams(CoordinatorLayout.java:0) 
at <OR>.generateLayoutParams(CoordinatorLayout.java:0) 
at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:0) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344) 
at android.widget.FrameLayout.onLayout(FrameLayout.java:281) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742) 
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585) 
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344) 
at android.widget.FrameLayout.onLayout(FrameLayout.java:281) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1742) 
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585) 
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:344) 
at android.widget.FrameLayout.onLayout(FrameLayout.java:281) 
at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:3178) 
at android.view.View.layout(View.java:17945) 
at android.view.ViewGroup.layout(ViewGroup.java:5812) 
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2716) 
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2417) 
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1487) 
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7450) 
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920) 
at android.view.Choreographer.doCallbacks(Choreographer.java:695) 
at android.view.Choreographer.doFrame(Choreographer.java:631) 
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906) 
at android.os.Handler.handleCallback(Handler.java:739) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:158) 
at android.app.ActivityThread.main(ActivityThread.java:7237) 
at java.lang.reflect.Method.invoke(Method.java:0) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 

J'ai corrigé ce bug et la question était dans la méthode getItemViewType et non dans le premier affiché un (getItemCount). Donc, ces traces de pile sont vraiment inutiles par rapport aux précédentes. Vous savez qu'il y a un bug mais vous ne savez pas exactement où cela se produit.

Avez-vous rencontré les mêmes problèmes? Est-ce que quelqu'un sait comment le réparer?

Répondre

0

Je pense que c'est parce que retrace proguard ne peut pas identifier sans ambiguïté le cadre de la pile lorsque les numéros de ligne sont omis (voir https://www.guardsquare.com/en/proguard/manual/retrace#without). De ces documents, il semble qu'il est nécessaire de conserver LineNumberTable afin de supprimer l'ambiguïté.

+0

Je ne pense pas que ce soit lié. Selon la documentation, le journal devrait indiquer "Source inconnue" dans ce cas. Et l'ordre des méthodes n'est pas ambigu. De plus, certaines exceptions que j'ai eues dans les journaux de plantage contiennent des numéros de ligne et aucune ambiguïté. –