HMS-Core / hms-ml-demo

HMS ML Demo provides an example of integrating Huawei ML Kit service into applications. This example demonstrates how to integrate services provided by ML Kit, such as face detection, text recognition, image segmentation, asr, and tts.
https://developer.huawei.com/consumer/en/hms/huawei-mlkit?ha_source=hms1
Apache License 2.0
356 stars 120 forks source link

Hello I am using ML kit Document skew correction and it is crashing on android 9 only #91

Open dev-4-oraxtech opened 1 year ago

dev-4-oraxtech commented 1 year ago

When the app gets on this line analyzer.asyncDocumentSkewDetect(frame) the app crashes with the following error, also everything working fine on android 8, 10, 11 , 12

E/cv::error(): OpenCV(4.5.2) Error: Assertion failed (total() == 0 || data != NULL) in Mat, file /opt/huawei/algo_compiling/opencv/opencv-4.5.2/modules/core/src/matrix.cpp, line 428 E/libc++abi: terminating with uncaught exception of type cv::Exception: OpenCV(4.5.2) /opt/huawei/algo_compiling/opencv/opencv-4.5.2/modules/core/src/matrix.cpp:428: error: (-215:Assertion failed) total() == 0 || data != NULL in function 'Mat' A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 20200 (doc_scanner_app), pid 20200 (doc_scanner_app)

ilsafarber commented 1 year ago

Hi @Khawajafakhar

Since the ML kit is adapting to newer Android releases such issues may occur in legacy versions. Can you please share details such as kit version and any other dependencies that you add to your project for me test the case ? Any minimal reproducible project would be helpful. Meanwhile, since the kit is working fine on Android 10, 11 and 12 you may also try to update your app.

dev-4-oraxtech commented 1 year ago

Hello,

I have added all the details in the ticket, if you need more details can you describe in details about the things that I have to share with you , thanks

On Mon, 19 Jun 2023, 6:01 pm ilsafarber, @.***> wrote:

Hi @Khawajafakhar https://github.com/Khawajafakhar

Since the ML kit is adapting to newer Android releases such issues may occur in legacy versions. Can you please share details such as kit version and any other dependencies that you add to your project for me test the case ? Any minimal reproducible project would be helpful. Meanwhile, since the kit is working fine on Android 10, 11 and 12 you may also try to update your app.

— Reply to this email directly, view it on GitHub https://github.com/HMS-Core/hms-ml-demo/issues/91#issuecomment-1597149956, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3IYKPHN47TWUOPXEM6M3BLXMBES5ANCNFSM6AAAAAAY7DOSBE . You are receiving this because you were mentioned.Message ID: @.***>

dev-4-oraxtech commented 1 year ago

Hello, The reply I got from your side today , and fortunately , I also added a ticket with the ticket number D273832 , you can check this ticket , I have added all the details , this ticket may be with the other email that is @.*** , I also added that the problem is not related to the android version, as now it is running fine on the android 9, 10 , 11. but on some other devices with the same android 10, 11, the app is crashing.In short, some devices with the same OS version are running the app smoothly , but on some devices the app is crashing.

On Mon, 19 Jun 2023 at 18:44, Khawaja Fakhar @.***> wrote:

Hello,

I have added all the details in the ticket, if you need more details can you describe in details about the things that I have to share with you , thanks

On Mon, 19 Jun 2023, 6:01 pm ilsafarber, @.***> wrote:

Hi @Khawajafakhar https://github.com/Khawajafakhar

Since the ML kit is adapting to newer Android releases such issues may occur in legacy versions. Can you please share details such as kit version and any other dependencies that you add to your project for me test the case ? Any minimal reproducible project would be helpful. Meanwhile, since the kit is working fine on Android 10, 11 and 12 you may also try to update your app.

— Reply to this email directly, view it on GitHub https://github.com/HMS-Core/hms-ml-demo/issues/91#issuecomment-1597149956, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3IYKPHN47TWUOPXEM6M3BLXMBES5ANCNFSM6AAAAAAY7DOSBE . You are receiving this because you were mentioned.Message ID: @.***>