kasketis / netfox

A lightweight, one line setup, iOS / OSX network debugging library! 🦊
MIT License
3.68k stars 373 forks source link

Crash writing if no space left on device #221

Closed lisemyon closed 2 years ago

lisemyon commented 2 years ago

Describe the bug An application is crashing if no space left on device for writing data in a file.

To Reproduce Steps to reproduce the behavior:

  1. Simulate no memory left for writing any more log files. (ex: https://www.avanderlee.com/debugging/no-space-left-on-device/)
  2. Make requests till the crash (ex: load images/jokes in example app)

Expected behavior Writing is stopped if no space available

Enviroment:

Additional context Add any other context about the problem here. The reason of crashing is probably fileHandle.write method as it does not throw any exception

vGubriienko commented 2 years ago

Thanks for your report! We are currently working on resolving this issue.