tchapgouv / tchap-android

A matrix client for Android.
https://play.google.com/store/apps/details?id=fr.gouv.tchap.a
Apache License 2.0
21 stars 7 forks source link

Crash au moment d activer notification push #507

Open JDixmier opened 2 years ago

JDixmier commented 2 years ago

crash call stack --------------------------------- Element Build : 40200032 Element Version : 2.0.3 [40200032] (G-836a1462-2022-03-07 12:38:20 +0100) SDK Version : 1.3.12 (836a1462) Phone : SM-G960F (G960FXXUHFVB4 10 REL) Memory statuses usedSize 21 MB freeSize 7 MB totalSize 28 MB Thread: main, Exception: java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling androidx.recyclerview.widget.RecyclerView{77fa4fc VFED.V... ......ID 0,0-1440,2512 #7f0905e7 app:id/recycler_view}, adapter:androidx.preference.PreferenceGroupAdapter@c863785, layout:androidx.recyclerview.widget.LinearLayoutManager@fee59da, context:im.vector.app.features.settings.VectorSettingsActivity@1b1f3ce at androidx.recyclerview.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:3) at androidx.recyclerview.widget.RecyclerView$RecyclerViewDataObserver.onItemRangeChanged(RecyclerView.java:1) at androidx.recyclerview.widget.RecyclerView$AdapterDataObservable.notifyItemRangeChanged(RecyclerView.java:2) at androidx.recyclerview.widget.RecyclerView$Adapter.notifyItemChanged(RecyclerView.java:3) at androidx.preference.Preference.notifyChanged(Preference.java:4) at im.vector.app.core.preference.VectorSwitchPreference$onBindViewHolder$lambda-4$lambda-3$lambda-2$$inlined$doOnEnd$1.onAnimationEnd(Animator.kt:3) at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:554) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1242) at android.animation.ValueAnimator.cancel(ValueAnimator.java:1127) at im.vector.app.core.preference.VectorSwitchPreference.onBindViewHolder(VectorSwitchPreference.kt:2) at androidx.preference.PreferenceGroupAdapter.onBindViewHolder(PreferenceGroupAdapter.java:3) at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:1) at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:9) at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:7) at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:131) at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:1) at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:8) at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1) at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:12) at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:66) at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:12) at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:15) at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:3) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673) at android.widget.LinearLayout.onLayout(LinearLayout.java:1582) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673) at android.widget.LinearLayout.onLayout(LinearLayout.java:1582) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:59) at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:9) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673) at android.widget.LinearLayout.onLayout(LinearLayout.java:1582) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673) at android.widget.LinearLayout.onLayout(LinearLayout.java:1582) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332) at android.widget.FrameLayout.onLayout(FrameLayout.java:270) at com.android.internal.policy.DecorView.onLayout(DecorView.java:1099) at android.view.View.layout(View.java:23750) at android.view.ViewGroup.layout(ViewGroup.java:7277) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3709) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3161) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2222) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9123) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:999) at android.view.Choreographer.doCallbacks(Choreographer.java:797) at android.view.Choreographer.doFrame(Choreographer.java:732) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:984) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:8167) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit..java:496) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)

User-Agent: "Tchap/2.0.3 (Linux; U; Android 10; SM-G960F Build/QP1A.190711.02; Flavour GooglePlay; MatrixAndroidSdk2 1.3.12)" Version: "2.0.3 [40200032] (G-836a1462-2022-03-07 12:38:20 +0100)" app_language: "fr_FR" branch_name: "main" can_contact: "false" default_app_language: "fr_FR" device: "SM-G960F" locale: "fr_FR" matrix_sdk_version: "1.3.12 (836a1462)" multi_window: "OFF" olm_version: "3.2.7 - olm version (3.2.7) - 2dbeea2-2021-12-06 11:01:21 -0500" os: "10 (API 29) G960FXXUHFVB4-REL" server_version: "undefined" theme: "light"

Claire1817 commented 2 years ago

We don't find the stacktrace in the google play console.

giomfo commented 2 years ago
image
appndigital commented 2 years ago

Same issue as #493