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

OS Error: No such file or directory, errno = 2 #383

Open
2 tasks
programmer-mht opened this issue Jun 24, 2022 · 4 comments
Open
2 tasks

OS Error: No such file or directory, errno = 2 #383

programmer-mht opened this issue Jun 24, 2022 · 4 comments

Comments

@programmer-mht
Copy link

programmer-mht commented Jun 24, 2022

🐛 Bug Report

FileSystemException: Cannot delete file, path = '/var/mobile/Containers/Data/Application/A293AAB5-BBED-44AD-8745-4473AEEE9FAD/Library/Caches/***AppCache/2144cf90-f178-11ec-a12a-35675c75ae1e.file' (OS Error: No such file or directory, errno = 2)
	_File._delete.<fn> (dart:io/file_impl.dart:283)
	_rootRunUnary (dart:async/zone.dart:1434)
	ForwardingFileSystemEntity.delete (package:file/src/forwarding/forwarding_file_system_entity.dart:66)
	CacheStore._removeCachedFile (package:flutter_cache_manager/src/cache_store.dart:190)

Reproduction steps

On test devices, the problem was not detected. Information obtained from crash analytics.
After mapping user events with this error, no dependencies were found

Configuration

Version:
Flutter 3.0.1
Tools • Dart 2.17.1 • DevTools 2.12.2

Platform:

  • 🤖 Android 12, 11, 9, 10
  • 📱 iOS 15.3, 14.8.1, 15.4.1, 15.5, 12.5.5
@test0terter0n
Copy link

@programmer-mht hat same issue on some android devices!
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: FileSystemException: Cannot delete file, path = '/data/user/0/[***]/311ba150-f11e-11ec-8ce2-29c3984eb3ac.jpg' (OS Error: No such file or directory, errno = 2). Error thrown null.
at ._rootRunUnary(.java)
at ForwardingFileSystemEntity.delete(forwarding_file_system_entity.dart:66)
at CacheStore._removeCachedFile(cache_store.dart:190)

@adelarsq
Copy link

adelarsq commented Sep 27, 2022

Same problem with some devices. This error was from a Galaxy S10+, but occurs with many others:

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: FileSystemException: Cannot delete file, path = '/data/user/0/br.com.ourcompany/cache/mycache/fab2cc30-3db5-11ed-b035-158479eb1e47.jpg' (OS Error: No such file or directory, errno = 2). Error thrown null.
       at ._rootRunUnary(.java)
       at ForwardingFileSystemEntity.delete(forwarding_file_system_entity.dart:66)
       at CacheStore._removeCachedFile(cache_store.dart:190)

Related: #370

@serraojoao
Copy link

is this issue still open? is t here any updates or workarrounds to it? thanks!

@adelarsq
Copy link

@serraojoao Waiting for #370. No workaround besides this so far.

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

4 participants