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

Bug: Crash after too many disk writes while browsing on threads #2781

Open
danieldaquino opened this issue Dec 20, 2024 · 0 comments
Open

Bug: Crash after too many disk writes while browsing on threads #2781

danieldaquino opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something is not working, or not working as intended Needs recreation Issues requires concrete steps for recreation

Comments

@danieldaquino
Copy link
Contributor

(Filling this up based on a crash report)

What happens
When browsing threads in the app, it occasionally crashes

What I expect to happen
Should not crash

Link to noteID, npub
Crashed while looking at this thread: https://damus.io/nevent1qqswpzzyzz235a75wx2tk4theu0kkspcpupajchpzc5td8pdevw5kdspzfmhxue69uhhyetvv9ujue3h0ghxjmcpp4mhxue69uhkummn9ekx7mqpz4mhxue69uhhyetvv9ujumn0wd68ytnwv46qzxthwden5te0wpuhyctdd9jzuenfv96x5ctx9e3k7mgj7p5vd

Screenshots/video recording
N/A

Versions
Damus version: 1.10.1
Operating system version: iOS 18.0
Device: iPhone 14

Steps To Reproduce
Steps to reproduce the behavior:

  1. Open Damus
  2. Browse threads, try this one: https://damus.io/nevent1qqswpzzyzz235a75wx2tk4theu0kkspcpupajchpzc5td8pdevw5kdspzfmhxue69uhhyetvv9ujue3h0ghxjmcpp4mhxue69uhkummn9ekx7mqpz4mhxue69uhhyetvv9ujumn0wd68ytnwv46qzxthwden5te0wpuhyctdd9jzuenfv96x5ctx9e3k7mgj7p5vd

Additional context

I have two diskwrites_resource logs (file not published for privacy reasons) that seem to indicate that we are exceeding some iOS quota for disk writes. Due to the dates on the logs (Beginning of October), it is not confirmed whether the logs correspond to the crash.

Excerpts from the log (with any identifying info removed):

Event:            disk writes
Action taken:     none
Writes:           1073.75 MB of file backed memory dirtied over 3354 seconds (320.14 KB per second average), exceeding limit of 12.43 KB per second over 86400 seconds
Writes limit:     1073.74 MB
Limit duration:   86400s
Writes caused:    1073.75 MB
Writes duration:  3354s
Duration:         3353.98s
Duration Sampled: 3.21s (event starts 3350.69s before samples)
Steps:            14 (10.49 MB/step)
Event:            disk writes
Action taken:     none
Writes:           1073.75 MB of file backed memory dirtied over 6030 seconds (178.07 KB per second average), exceeding limit of 12.43 KB per second over 86400 seconds
Writes limit:     1073.74 MB
Limit duration:   86400s
Writes caused:    1073.75 MB
Writes duration:  6030s
Duration:         6030.03s
Duration Sampled: 918.19s (event starts 5111.26s before samples, event ends 0.58s after samples)
Steps:            30 (10.49 MB/step)
@danieldaquino danieldaquino added bug Something is not working, or not working as intended Needs recreation Issues requires concrete steps for recreation labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working, or not working as intended Needs recreation Issues requires concrete steps for recreation
Projects
None yet
Development

No branches or pull requests

1 participant