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

Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=640 "You can’t save the file “manifest.json” because the volume “Data” is out of space." #1043

Closed
1 of 5 tasks
MaratowKyryl opened this issue Nov 29, 2023 · 6 comments
Labels
bug Something isn't working Stale

Comments

@MaratowKyryl
Copy link

MaratowKyryl commented Nov 29, 2023

What happened?

I got this error logged in Sentry.

Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=640 "You can’t save the file “manifest.json” because the volume “Data” is out of space."

All of users have at least 100mb free memory.

I assume, that the problem is the size of manifest file reached the limit. But, I can't find any info about known limits of manifest.json file on ios and there is no information in documentation or elsewhere how to increase the size limit.

Version

1.19.3

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

OS: macOS 14.1.1
    CPU: (8) arm64 Apple M1
    Memory: 74.42 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.2.0 - /opt/homebrew/bin/node
    Yarn: 1.22.21 - /usr/local/bin/yarn
    npm: 6.12.0
    Watchman: 2023.11.20.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.14.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
react: 17.0.2 => 17.0.2 
    react-native: 0.67.5 => 0.67.5 

Steps to Reproduce

Run an application and save a lot of data on user login

@MaratowKyryl MaratowKyryl added the bug Something isn't working label Nov 29, 2023
@krizzu
Copy link
Member

krizzu commented Nov 29, 2023

There's no limit for manifest file. It seems like there's not sufficient space to store app related data anymore. Here's the error you see
https://developer.apple.com/documentation/foundation/1448136-nserror_codes/nsfilewriteoutofspaceerror

@MaratowKyryl
Copy link
Author

MaratowKyryl commented Nov 30, 2023

There's no limit for manifest file. It seems like there's not sufficient space to store app related data anymore. Here's the error you see https://developer.apple.com/documentation/foundation/1448136-nserror_codes/nsfilewriteoutofspaceerror

I just checked and figured out that we use only around 750 bytes of data stored in AsyncStorage. Still cannot understand how it's possible to run out of space.

@krizzu
Copy link
Member

krizzu commented Nov 30, 2023

It might be that users are low on total amount, hence the issue. For values larger than 1MB, AsyncStorages on iOS stores them in a separate file (for each item) - does your calculation cover this?

@MaratowKyryl
Copy link
Author

It supposed to. I'm using this solution to calculate the size of all key-values from storage:

#336 (comment)

@krizzu
Copy link
Member

krizzu commented Nov 30, 2023

I can't tell for sure it would show the total disk space used. I'm unable to tell why you got that error, but it is related to disk space available on device (not due to some limit of AsyncStorage)

Copy link

This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.

@github-actions github-actions bot added the Stale label Jan 30, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants