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

🚨 From gallery : No such file or directory #120

Closed
QPAYRE opened this issue Jan 30, 2023 · 10 comments
Closed

🚨 From gallery : No such file or directory #120

QPAYRE opened this issue Jan 30, 2023 · 10 comments

Comments

@QPAYRE
Copy link

QPAYRE commented Jan 30, 2023

Just ran your example and got this error and had pretty much the same on my project.

Only if I pick from the gallery on iOs (Didn't try on android)


An Observatory debugger and profiler on iPhone 14 Pro Max is available at: http://127.0.0.1:52355/Am-AXM7VDfQ=/
The Flutter DevTools debugger and profiler on iPhone 14 Pro Max is available at: http://127.0.0.1:9102?uri=http://127.0.0.1:52355/Am-AXM7VDfQ=/
flutter: /Users/quentinpayre/Library/Developer/CoreSimulator/Devices/B82FFF0C-19CC-4BA0-ABC2-9A29F6946FF7/data/Containers/Data/Application/62A6CEC7-5C81-4888-B8AE-E29E6588BC8E/Library/Application Support/1675089091.jpeg : _imagePath
flutter: success: true

══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following PathNotFoundException was thrown resolving an image codec:
Cannot retrieve length of file, path =
'/Users/quentinpayre/Library/Developer/CoreSimulator/Devices/B82FFF0C-19CC-4BA0-ABC2-9A29F6946FF7/data/Containers/Data/Application/62A6CEC7-5C81-4888-B8AE-E29E6588BC8E/Library/Application
Support/1675089091.jpeg' (OS Error: No such file or directory, errno = 2)

When the exception was thrown, this was the stack:
#0      _checkForErrorResponse (dart:io/common.dart:42:9)
#1      _File.length.<anonymous closure> (dart:io/file_impl.dart:372:7)
<asynchronous suspension>
#2      FileImage._loadAsync (package:flutter/src/painting/image_provider.dart:998:31)
<asynchronous suspension>

Path:
/Users/quentinpayre/Library/Developer/CoreSimulator/Devices/B82FFF0C-19CC-4BA0-ABC2-9A29F6946FF7/data/Containers/Data/Application/62A6CEC7-5C81-4888-B8AE-E29E6588BC8E/Library/Application
Support/1675089091.jpeg
════════════════════════════════════════════════════════════════════════════════════════════════════```
@jason45992
Copy link

same here

@QPAYRE QPAYRE changed the title From gallery : No such file or directory 🚨 From gallery : No such file or directory Jan 31, 2023
@jason45992
Copy link

Try using this: https://pub.dev/packages/document_scanner_flutter
Having same functions

@QPAYRE
Copy link
Author

QPAYRE commented Jan 31, 2023

I already tried it and move to this package because on android when you pick an image from the gallery the app literally crash..

@rsanjuan87
Copy link
Contributor

Try using this: https://pub.dev/packages/document_scanner_flutter Having same functions

but have edge detection?

@rsanjuan87
Copy link
Contributor

#109
same bug

@sawankumarbundelkhandi
Copy link
Owner

as mentioned above it's a duplicate of #109

@sawankumarbundelkhandi sawankumarbundelkhandi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2023
@Niko-by
Copy link

Niko-by commented Mar 7, 2023

@rsanjuan87 @sawankumarbundelkhandi
Can you please tell me when these changes will appear on pub.dev?

@sawankumarbundelkhandi
Copy link
Owner

I will publish it in some days. Meanwhile, you can use it directly from Github like this

In pubspec, specify dependency like below

edge_detection:
git:
url: git://github.com/sawankumarbundelkhandi/edge_detection.git

Check git dependency section here for more information - https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages

@aniket-github
Copy link

are the changes published on pub.dev?
@sawankumarbundelkhandi

@sawankumarbundelkhandi
Copy link
Owner

it's not yet published on pub.dev. please use like this for now - #120 (comment)

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

6 participants