0

Google hat kürzlich die Google Play Console aktualisiert und jetzt werden Abstürze automatisch gemeldet.Neue Google Developer Console stürzt ab Stack-Traces sind nicht mehr korrekt

Da fast alle Stack-Traces Ich habe es nicht mehr genau:

  • Der Stack-Trace ist voll von <OR> Methoden, also denke ich voller möglichen Kandidaten?
  • Alle Zeilennummern sind 0

Bitte beachte, dass ich Proguard verwenden (und nicht Multidex) und ich vermute stark, es ist die Ursache des Problems ist.

Beispiel:

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) 

Ich reparierte diesen Fehler und das Problem war in der getItemViewType Methode und nicht in dem ersten angezeigt (getItemCount). Diese Stack-Spuren sind also im Vergleich zu früheren wirklich nutzlos. Sie wissen, dass es einen Fehler gibt, aber Sie wissen nicht genau, wo es auftritt.

Haben Sie die gleichen Probleme? Kann jemand es reparieren?

Antwort

0

Ich denke, das liegt daran, dass Proguard-Rücklauf den Stapelrahmen nicht eindeutig identifizieren kann, wenn Zeilennummern weggelassen werden (siehe https://www.guardsquare.com/en/proguard/manual/retrace#without).

In diesen Dokumenten sieht es so aus, als ob die LineNumberTable beibehalten werden muss, um Mehrdeutigkeiten zu vermeiden.

+0

Ich glaube nicht, dass es verwandt ist. Laut der Dokumentation sollte das Protokoll in diesem Fall "Unbekannte Quelle" anzeigen. Und die Reihenfolge der Methoden ist nicht mehrdeutig. Darüber hinaus enthalten einige Ausnahmen, die ich in den Crash-Logs bekommen habe, Zeilennummern und keine Mehrdeutigkeiten. –

Verwandte Themen