Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when destroying BrickDataManager #259

Open
patbeagan1 opened this issue Jul 7, 2022 · 2 comments
Open

Crash when destroying BrickDataManager #259

patbeagan1 opened this issue Jul 7, 2022 · 2 comments

Comments

@patbeagan1
Copy link
Collaborator

There is an intermittent exception happening when fragments are destroyed

Fatal Exception: java.lang.IllegalStateException
Observer androidx.recyclerview.widget.RecyclerView$x@2e03f6b was not registered.
android.database.Observable.unregisterObserver (Observable.java:69)

androidx.recyclerview.widget.RecyclerView.setAdapter (RecyclerView.java:1194)
com.wayfair.brickkit.BrickDataManager.onDestroyView (BrickDataManager.kt:399)

the issue appears to be right here.

Since this is a destroy step anyways, the best course of action might be to just catch the exception.

@mdigiovanni-wf
Copy link
Collaborator

mdigiovanni-wf commented Jul 8, 2022

Agreed, looks like it'll be painful to get to the bottom of, and might be an Android ver specific change? The few versions of recyclerView.setAdapter that I checked weren't even calling unregisterObserver

@mindwalkr
Copy link
Contributor

Betting this is a Samsung issue :>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants