You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly I'm doing something wrong. Whenever I load a XAML page that has the CameraView in iOS I get a crash with, "No parameterless constructor defined for type BarcodeScanning.CameraView" I have the latest version of the library (2.1.3).
Hey, I've tried the .NET 8 + BarcodeScanning v.1.7.4 and the same happened.
At start I've replaced the XAML construction with C# construction that made this one exception disappear but when I've continued with testing - it crashed after some tries of constructing page with scanner (randomly from 2nd to 9th construction of page with CameraView).
I've moved back to 1.5.9 where these complications have not existed.
Hello @afriscic,
test project on iOS appears to work and XamlParseException is not happening there on both .NET versions (will have to look on later why this happens).
But opening the ScanPage crashes on second time with both (1.7.4 - NET8, 2.1.4 - NET9) leads to crash:
**System.ObjectDisposedException:** 'Cannot access a disposed object.
Object name: 'AVFoundation.AVCaptureDevice'.'
ScanTab can be visited repeatedly. Maybe there is disposing of shared resources when disconnecting handler on page disappearing/unloading?
Clearly I'm doing something wrong. Whenever I load a XAML page that has the CameraView in iOS I get a crash with, "No parameterless constructor defined for type BarcodeScanning.CameraView" I have the latest version of the library (2.1.3).
<scanner:CameraView HeightRequest="400" OnDetectionFinished="CameraView_OnDetectionFinished" />
The text was updated successfully, but these errors were encountered: