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

App crash #565

Open
sivasankarp01 opened this issue Dec 23, 2023 · 5 comments
Open

App crash #565

sivasankarp01 opened this issue Dec 23, 2023 · 5 comments
Labels
Crash Crash reported Face Detection Issues corresponding to Face Detection API stale

Comments

@sivasankarp01
Copy link

Future detectFaces(InputImage inputImage, pickedFile) async {
try {

if (pickedFile != null && pickedFile.path.isNotEmpty) {
  final List<Face> faces = await _faceDetector.processImage(inputImage);

  if (faces.length == 1 && faces[0].trackingId != null) {}
}catch(e){}

final List faces = await _faceDetector.processImage(inputImage);

this process image function causing this issue

While uploading some high quality images it crashes the app , i tried try catch also but its keep crashing my app.

Any solutions for this ?????

@Rosco89
Copy link

Rosco89 commented Jan 8, 2024

Your TryCatch block won't catch native exceptions.
Try runZoneGuarded to see what is the problem:

runZonedGuarded<Future<void>>(() async {
   if (pickedFile != null && pickedFile.path.isNotEmpty) {
     final List<Face> faces = await _faceDetector.processImage(inputImage);
     if (faces.length == 1 && faces[0].trackingId != null) {}
   }
}, (error, stack) => print(error));

@maxmitz
Copy link

maxmitz commented Jan 8, 2024

I had the same problem with text recognition on iOS. I tried to runZoneGuarded but did not get any information from there. Are there other ways to debug this?

@lala-naibova
Copy link

lala-naibova commented Jan 10, 2024

I had the same problem with text recognition on iOS, too

P.S : I have tried on iphone 7,
now, changed device to iphone 13 and have updated lates version, everything works okay

@sivasankarp01
Copy link
Author

I had the same problem with text recognition on iOS, too

P.S : I have tried on iphone 7, now, changed device to iphone 13 and have updated lates version, everything works okay

What abt Android??

@fbernaly fbernaly added Face Detection Issues corresponding to Face Detection API Crash Crash reported labels Apr 17, 2024
Copy link

github-actions bot commented Oct 7, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash Crash reported Face Detection Issues corresponding to Face Detection API stale
Projects
None yet
Development

No branches or pull requests

5 participants