eliasteeny / flutter_document_scanner

Document scanner plugin ported from react native to flutter
MIT License
38 stars 26 forks source link

Project example failed when running on iphone #5

Open dunglh-1464 opened 3 years ago

dunglh-1464 commented 3 years ago

When I run the project example on the iphone, there is no image returned, I check it is cropped in the directory: / var / mobile / Containers / Data / Application / D16CED54-3DBF-48FE-A0A5-7AA6D9128A5A / Documents / cropped_img_1614480438.jpeg. However, when NSLog (rectangleCoordinates), the app crashes. Please help me, I run on xcode 12.0.1

eliasteeny commented 3 years ago

Can you share the whole log when the app crashes ? currently I don't have access to any mac.

dunglh-1464 commented 3 years ago

@eliasteeny , When research, i check crash file DocumentScannerView.m when uncomment line 199, I run android studio, Android issue same same. Error : NSInvalidArgumentException', reason: '-[__NSDictionaryI _fastCStringContents:]: unrecognized selector sent to instance 0x282cfc180'

Screen Shot 2021-03-06 at 15 49 55
eliasteeny commented 3 years ago

@dunglh-1464 can you check version 0.1.1 if an image returns ?

Kaitsuka commented 3 years ago

@dunglh-1464 can you check version 0.1.1 if an image returns ?

I can verify that the image won't return with a 0.1.1 version. Instead the screen freezes with no noticeable reason or error. Might have something to do with iOS permissions regarding opening the file from temp ?

eliasteeny commented 3 years ago

@Kaitsuka the problem shouldn't be related to iOS permissions regarding opening the file from temp. I still can't debug the problem because I don't have any access to a macOS machine. I think the package broke after iOS 14 update but I can't confirm it. did you try running the app through xcode as an attempt for a noticeable error in the logger ?