Skip to content

Fix DiskReadViolation on ChuckerCollector#975

Merged
cortinico merged 1 commit into
developfrom
nc/diskreadviolation
Mar 2, 2023
Merged

Fix DiskReadViolation on ChuckerCollector#975
cortinico merged 1 commit into
developfrom
nc/diskreadviolation

Conversation

@cortinico

Copy link
Copy Markdown
Member

📄 Context

The sample app is insta-crashing when doing http activity.
That happens because we're calling RepositoryProvider.transaction().... on the UI thread.

🔴 Video

Before After
before after

🚫 Breaking

nope

🛠️ How to test

See the atteched video

⏱️ Next steps

n/a

@vbuberen

Copy link
Copy Markdown
Collaborator

It is strange, because Room handles switching to a different thread automatically for quite some time already:
https://medium.com/androiddevelopers/room-coroutines-422b786dc4c5

@cortinico

Copy link
Copy Markdown
Member Author

It is strange, because Room handles switching to a different thread automatically for quite some time already: medium.com/androiddevelopers/room-coroutines-422b786dc4c5

You're right 👍

Seems like there is a bug in Room 2.5.0: https://issuetracker.google.com/issues/270841445

How do we proceed? Either we merge this as it is, or we suppress the penalityDeath for this scenario as well?

@vbuberen

vbuberen commented Mar 2, 2023

Copy link
Copy Markdown
Collaborator

Thanks for finding an open issue.
Let's merge as it is instead of suppressing penalityDeath.

@cortinico cortinico merged commit ac4fcb0 into develop Mar 2, 2023
@cortinico cortinico deleted the nc/diskreadviolation branch March 2, 2023 11:25
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

Successfully merging this pull request may close these issues.

2 participants