Comments (7)
Hi
In witch platform?
from camera.maui.
@hjam40, happens for me once i try to go back to the previous page on iOS
if (await cameraView.StopCameraAsync() == CameraResult.Success)
{
try
{
await Shell.Current.GoToAsync("..", new Dictionary<string, object>()
{
{"Barcode",barcode }
});
}
catch (Exception exception)
{
Console.WriteLine(exception);
throw;
}
from camera.maui.
I have the same issue in production. On Android 11 and 12.
It doesn't happen all the time, just sometimes.
I use this code:
@hjam40 any idea please?
from camera.maui.
I'm using the same stock code as @migueBarrera and see the error pretty consistently when I'm flipping between Flashmodes from Enabled to Disabled. To make the camera recognize the change in modes (since the camera is already started), I force a StopCameraAsync() then a StartCameraAsync() (like above) immediately before I make the call to TakePhotoAsync(). I think it becomes a race condition as the TakePhotoAsync() is the call throwing the exception. Even if I force the routines to block so each is performed in sequence, I tend to see it. Subsequent calls to TakePhotoAsync() don't fail unless I run it through the Stop/Start/Take sequence described above again.
from camera.maui.
@hjam40 any idea about this error??
from camera.maui.
@hjam40 any idea about this error??
Actually, I'm no longer getting the error because I rewrote the code to tightly control when a StartCameraAsync() and when a StopCameraAsync() is called. I no longer force a stop and start after changing Flashmodes, but I do still perform the stop and start after changing cameras (front to back, etc.) Additionally, I'm only deploying onto Android 13 or greater now...that's helped a lot. Thanks for following up!
from camera.maui.
same problem on Android - after call to await cameraViewMy.StopCameraAsync(); and then (await cameraViewMy.StartCameraAsync() give exception cameraViewMy.TakePhotoAsync(ImageFormat.JPEG)
from camera.maui.
Related Issues (20)
- [Question] Can this package be used for a .net 8 iOS app (not a MAUI app)?
- Slow Barcode Reading HOT 3
- Upside down
- Library crashes and becomes unresponsive while using AutoSnapShot and Barcode reading on IOS
- TorchEnabled not working on Android
- Can't focus if subject is too near from the camera (for iPhone14 Pro and above models) HOT 4
- camera always rotates HOT 1
- How to use library for making photo automatically HOT 1
- Poor resolution HOT 1
- can't scan Ean13 format
- Android only NullReferenceException on double StartCameraAsync HOT 2
- version 1.5.1 does not work on ios HOT 3
- StartRecordingAsync helds and send acces error in net maui ios
- `NullReferenceException` inside `cameraView.TakePhotoAsync` HOT 3
- Resolution doesnt change
- Barcode scanning does not work in version 1.5.1, only QRcode scanning
- Memory leaking HOT 1
- Cameraview Resolution update on Rotation HOT 1
- Camera not loading on some Samsung devices
- Complex QR codes are not detected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from camera.maui.