Comments (14)
No, but we have another plugin that is used for audio recording. Will look into it tomorrow.
from natdevice.
This seems to be happening because another app is in control of the microphone. When the crash happens, do you have a call or another app recording the mic?
from natdevice.
Looking online, it seems that a fair number of developers have been facing a similar issue with iOS 16.
from natdevice.
@V0odo0 Sounds good.
from natdevice.
Tested with disabled Speech To Text plugin. Same crash.
No crash on iPhone 11 with iOS 16.2.
Our app with old version of NatDevice is working fine. Indeed there is something related to NatDevice. Any thoughts?
from natdevice.
Try out the following and let me know the result:
- In Player Settings, make sure that
Prepare iOS for Recording
is enabled. - In code, before doing
new MediaDeviceQuery
, add the following:
MediaDeviceQuery.ConfiguresAudioSession = false;
from natdevice.
@V0odo0 I got around to testing this on iOS 16.2, wasn't able to repro. I mentioned this earlier:
This seems to be happening because another app is in control of the microphone. When the crash happens, do you have a call or another app recording the mic?
Can you confirm that there isn't another app running that is already using the microphone?
from natdevice.
Try out the following and let me know the result:
- In Player Settings, make sure that
Prepare iOS for Recording
is enabled.- In code, before doing
new MediaDeviceQuery
, add the following:MediaDeviceQuery.ConfiguresAudioSession = false;
Didn't help unfortunately.
@V0odo0 I got around to testing this on iOS 16.2, wasn't able to repro. I mentioned this earlier:
This seems to be happening because another app is in control of the microphone. When the crash happens, do you have a call or another app recording the mic?
Can you confirm that there isn't another app running that is already using the microphone?
Yes. We disabled microphone usage for all apps in iOS settings. Our app is not in the list since it is not using microphone.
We experience this crash on at least two devices (iPhone 14 with iOS 16.2). No crash on iPhone 11 with iOS 16.2.
from natdevice.
The issue was resolved after iOS 16.3 fresh update. Looks like this bug was specific for iPhones 14 with iOS 16.2.
from natdevice.
That sounds good. Thanks for letting me know.
from natdevice.
That sounds good. Thanks for letting me know.
Whoops. Actually it was the first succesfull application launch. But second time we got a crash again. iPhone 13 as well.
What I'm noticed that the crash occurs randomly (but most of the time) when we querying video devices. iOS just killing the application. Maybe it happens because of high CPU usage spike?
from natdevice.
What I'm noticed that the crash occurs randomly (but most of the time) when we querying video devices. iOS just killing the application. Maybe it happens because of high CPU usage spike?
This shouldn't be the case. When the app crashes, can you share the logs from Xcode? iOS (along with macOS) are pretty diligent about collecting call stacks/stack traces when a crash occurs, so Xcode should always be able to catch the crash so you can inspect it. Share away!
from natdevice.
What I'm noticed that the crash occurs randomly (but most of the time) when we querying video devices. iOS just killing the application. Maybe it happens because of high CPU usage spike?
This shouldn't be the case. When the app crashes, can you share the logs from Xcode? iOS (along with macOS) are pretty diligent about collecting call stacks/stack traces when a crash occurs, so Xcode should always be able to catch the crash so you can inspect it. Share away!
XCode log is in the first post.
Here is the part of the code where we querying for devices:
var filter = MediaDeviceCriteria.CameraDevice;
var query = new MediaDeviceQuery(filter);
foreach (var q in query)
{
var device = q as CameraDevice;
if (device != null)
all.Add(new NatDeviceVideoStream.Info(device));
}
from natdevice.
If the error remains the exact same, then it's safe to assume that this is still an iOS issue. So I'll close this issue.
from natdevice.
Related Issues (20)
- Crash in `CameraDevice::OnCaptureCompleted` HOT 1
- Setter of MediaDeviceQuery.previewResolution does not work correctly. HOT 1
- After building for iOS, it complains about not valid subscription HOT 2
- Crash on iOS while accessing camera and write to RenderTexture HOT 1
- Crash when access microphone (works on iOS and editor, crashes on Android) HOT 2
- AudioBuffer handler not firing on Galaxy Tab A running Android 7.1.1 HOT 1
- Compile time error after upgrading to NatDevice 1.3.1 HOT 1
- Crashes on `new MediaDeviceQuery` on Android HOT 1
- Consider ordering media devices HOT 1
- Compile error Version 1.3.1 with Unity 2020.3.36 HOT 1
- 1.3.1 does not compile on Unity 2020.3.36f1 HOT 1
- Proguard stripping crash HOT 1
- DllNotFoundException: NatDevice assembly HOT 2
- NatDevice session token is invalid HOT 11
- I want to set all device preview resolution as 1 x 1. HOT 1
- Can I get sample codes of CameraDevice.CapturePhoto(Action<CameraImage>) ? HOT 1
- [Unity] Native Crash - Unknown Function HOT 7
- Long hang (30 seconds plus) when starting a device HOT 1
- audio device return null on buffer HOT 1
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 natdevice.