SCodes icon indicating copy to clipboard operation
SCodes copied to clipboard

Android white screen

Open niqt opened this issue 1 year ago • 4 comments

HI, i compiled on Android but i see a white screen like the camera closed. Is there some work in progress or some my mistake? I cloned the zxing-cpp and compiled the example with Qt6.

niqt avatar Jan 27 '24 22:01 niqt

Hi, There is some work in progress now but all works for me on master branch. I'm building with Qt6.5.2.

Do you have some error logs? You can set SCODES_DEBUG option in CMake to enable debug output from SCodes.

It's possible that for some reason SCodes can't get access to the camera - permissions, or maybe some other app grabbing the camera. This should be logged if you enable debug logs.

radkoder avatar Jan 29 '24 09:01 radkoder

Hi, the only strange thing that i see is: Warning: QML import could not be resolved in any of the import paths: com.scythestudio.scodes Warning: QML import could not be resolved in any of the import paths: ZXing I'm comlining directly the example, no new project.

niqt avatar Jan 31 '24 22:01 niqt

I see: D libQmlBarcodeReader_arm64-v8a.so: New Camera set: QCamera(0x76adb6cd70) D libQmlBarcodeReader_arm64-v8a.so: Format: D libQmlBarcodeReader_arm64-v8a.so: Pixel format: Format_NV21 D libQmlBarcodeReader_arm64-v8a.so: Resolution: QSize(3840, 2160) D libQmlBarcodeReader_arm64-v8a.so: FPS: 7 - 30

but white screen with green rectangle. If i add in the qml the CaptureSession and comment the reader, the camera working. So no permission problem.

niqt avatar Feb 02 '24 21:02 niqt

Hello @niqt Could you let me know if you are trying to run an example on an Android emulator? I've tried several Android devices and everything works fine. In my case, your issue is only reproducible on an Android emulator.

mateusz-fejcher avatar Jul 08 '24 08:07 mateusz-fejcher