DoubangoTelecom / ultimateALPR-SDK

World's fastest ANPR / ALPR implementation for CPUs, GPUs, VPUs and NPUs using deep learning (Tensorflow, Tensorflow lite, TensorRT, OpenVX, OpenVINO). Multi-Charset (Latin, Korean, Chinese) & Multi-OS (Jetson, Android, Raspberry Pi, Linux, Windows) & Multi-Arch (ARM, x86).
https://www.doubango.org/webapps/alpr/
Other
617 stars 158 forks source link

Android activity crashes in landscape mode #199

Closed andrei-tatomir closed 3 years ago

andrei-tatomir commented 3 years ago

Hello,

Using the sample AlprVideoParallelActivity in landscape mode, after a while (~ 3-5min) the app crashes. Tested on a Samsung A70 device. There are no issues in portrait mode.

Here is the error log i could find: 2021-09-15 13:44:17.254 5386-4811/com.amparcat.valet.dev A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc0018 in tid 4811 (arcat.valet.dev), pid 5386 (arcat.valet.dev) 2021-09-15 13:44:19.382 5386-2960/com.amparcat.valet.dev E/BufferQueueProducer: [ImageReader-1280x720f23m2-5386-0](id:150a00000002,api:4,p:1013,c:5386) waitForFreeSlotThenRelock: timeout at android.os.Binder.execTransact(Binder.java:1159) 2021-09-15 13:44:17.254 5386-4811/com.amparcat.valet.dev A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc0018 in tid 4811 (arcat.valet.dev), pid 5386 (arcat.valet.dev) 2021-09-15 13:44:17.254 5386-4811/com.amparcat.valet.dev A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc0018 in tid 4811 (arcat.valet.dev), pid 5386 (arcat.valet.dev) 2021-09-15 13:44:19.382 5386-2960/com.amparcat.valet.dev E/BufferQueueProducer: [ImageReader-1280x720f23m2-5386-0](id:150a00000002,api:4,p:1013,c:5386) waitForFreeSlotThenRelock: timeout

Do you have any idea what's causing this?

Thanks in advance

DoubangoTelecom commented 3 years ago

The application should stops working after some images when a license isn't provided. This is approximately 5 minutes. The application is faster on landscape (https://www.doubango.org/SDKs/anpr/docs/Improving_the_speed.html#landscape-mode) and this could explain why it reaches the max allowed frames faster than the portrait mode. You should attach full logs (not only the crash). Full logs will also tell us what's de hardware, version, os...