Comments (4)
What exactly is Error -10868
again? I remember seeing this somewhere
from react-native-vision-camera.
@mrousavy I did a bunch of googling and docs reading on it, but truthfully everyone says that "it doesn't provide any helpful info".
Hate to be that guy, but I asked GPT-4 as a last resort and the response was:
GPT Response
The AVFoundationErrorDomain Code=-11800 is an error that occurs in the context of iOS development when dealing with media playback, and it generally indicates that "The operation could not be completed". It's a broad error that can be caused by various issues related to media loading and playback, often indicating that the media file could not be loaded due to issues with its format, encoding, or the way it is being accessed.Several common reasons for this error could be:
Insecure HTTP URLs being blocked by App Transport Security in iOS, requiring HTTPS instead, or needing exceptions configured in Info.plist if HTTP must be used.
Incorrect or missing file extensions for the media resources, which can lead to the system being unable to recognize the file format.
Issues with the media file encoding or how it's being served from the backend (such as incorrect Content-Type headers or streaming configurations).
Developers have found that verifying the URL, ensuring that the file has the correct extension, and confirming that the backend is properly configured to serve media files can help to resolve this issue. If the issue occurs only in a simulator and not on a real device, it might also be linked to the simulator's limitations or bugs.
I know that it isn't coming from the react-native-video package because it's being thrown in the onCameraError package. The resolution to this issue may be just "hey fix your shit timer code" lol. But figured it may be some edge case you could protect for in the react-native-vision-camera package. I spent a good amount of time making a reproducible demo for you and adding logs this time, hopefully it doesn't take you long to dig into.
There is a line in the logs implying that some sort of state operation interrupted the camera:
VisionCamera.updateCategory(_:mode:options:): AVAudioSession category changed!
<<<< FigSharedMemPool >>>> Fig assert: "blkHdr->useCount > 0" at (FigSharedMemPool.c:591) - (err=0)
VisionCamera.sessionRuntimeError(notification:): Unexpected Camera Runtime Error occured!
from react-native-vision-camera.
@mrousavy Okay so this issue has plagued me now for a few weeks and I've tried a lot of updates.
- I rewrote the timer logic and it's still occurring.
- I just changed the react-native-video package to expo-av's video package and the error is gone.
I'm going to assume it's some sort of conflict between react-native-vision-camera and react-native-video. Maybe the AVAudioSessions or something?
from react-native-vision-camera.
Good point, yea it could be the audio sessions.
from react-native-vision-camera.
Related Issues (20)
- π UI on qrcode scanner HOT 1
- π What is the equivalence of V2's `preset="photo"` in V3? HOT 4
- π [Android] App crash, Open camera view -> Deny permission from app-info premissions -> Come back to app HOT 1
- π Aspect Ratio not work as expected? HOT 1
- Pinch to zoom doesn't work after adding enableZoomGestureπ HOT 5
- Android Exposure π
- π How to run a simple rendering test using jest ? HOT 1
- π§ App not run when i install react native vision camera HOT 6
- π Static background audio noise in the recorded video. HOT 1
- π V4 No supported surface combination is found when attaching all use-cases HOT 7
- π I updated my react native version to 0.73.6 my device's back camera and front camera undefined, I have checked it in several android devices all gives the same issue. π HOT 2
- π takePhoto() generate a fully green image - An unknown error occurred while creating the Camera Session, but the Camera can recover from it HOT 2
- π Not bound to a valid Camera HOT 2
- π session/camera-not-ready The Camera is not ready yet! Wait for the onInitialized() callback! HOT 3
- π Preview stretched / zoomed-in on android HOT 23
- π§ CameraDevicesManager.kt: (10, 47): Unresolved reference: RCTDeviceEventEmitter HOT 3
- β¨ chunked recording HOT 7
- π IPhone15 pro max QR code flashing back
- π Torch stays on after closing the camera HOT 1
- Hi Im using react-native:0.73.6 after capturing photo or video if I try to close the view I have: FATAL EXCEPTION: mrousavy/VisionCamera.main π HOT 2
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 react-native-vision-camera.