Open DomagojJugovich opened 2 months ago
I have the same problem. According to the log, the camera is restarted continuously because the dimensions have been adjusted.
I/EmulatedCamera3_QemuSensor( 1431): captureNV21: Dimensions for the current request (1280x720) differ from the previous request (1280x960). Restarting camera
I have the same problem too. I tried it with the CameraView of the community toolkit. This works..
Sorry, I don't have any experience with UNO...
I found a Solution for me. It sounds weird, but it looks like a render issue. I had the camera view in a ScrollView. It worked after replacing with a StackLayout
Any chance of some more hint on the fix. Camera doesn't render on the screen. Not sure what is happening when i navigates to the page second time @afriscic . First time the page loads correctly and the second load the page doesn't load the camera. I checked the handler it is initialized. Not sure why the rendering is not happening @rockit666 Can you please help if you have any finding. Stackpanel didn't fix it. Thanks in advance.
This looks to me like a Handler issue. Try not to call DisconnectHandler()
The thing is if a page is transient (new page gets created on each navigation) then you need to call DisconnectHandler()
to prevent memory leaks. But if your previous instance of a page gets reused on navigation, than calling DisconnectHandler()
would dispose the Handler instance and you won't have anything to connect to on second page navigation.
Well, I use a singleton page and it works.
services.AddSingleton<ScanQrCodePage>();
Thanks. When I reading through your issues I also read a comment very similar to this again special thanks for that to route me to issue. I had to comment few lines in lib to make it working the Android CameraManager Dispose was causing these issues. I suppose whenever we are removing those camerapages it was calling disconnect handler and that dispose call caused the issue when it reinitialises second time. So I just commented the Executor and scanner interface dispose methods temporarily to see, that fixes the issue. Creating a singleton Page and reusing it will solve the problem - solution works. Thanks @rockit666 @afriscic
Hi I tried many free and commercial barcode scanning libs in my UNO Platform project. Scandit works great but I am revisiting free options. All is done as MAUI components through MAUI embedding in UNO, as newer UNO versions don't have any directly supported barcode scanning libs
CameraView component is just black allways. Any idea why ? (camera permissions are ok) There are no errors.
Mayne UNO is the problem or anything else.
I am using 1.5.2 version because of dll hell with UNO dependencies , so I can't use latest :
Any ide why ? Or shoot questions for details.
Here is the log if it is any help :