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

Android white screen #42

Open
niqt opened this issue Jan 27, 2024 · 4 comments
Open

Android white screen #42

niqt opened this issue Jan 27, 2024 · 4 comments

Comments

@niqt
Copy link

niqt commented Jan 27, 2024

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.

@radkoder
Copy link
Contributor

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.

@niqt
Copy link
Author

niqt commented Jan 31, 2024

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
Copy link
Author

niqt commented Feb 2, 2024

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.

@mateusz-fejcher
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants