daily-demos / daily-flutter-demo

BSD 2-Clause "Simplified" License
4 stars 1 forks source link

crasher: OperationFailedException(startRecording failed: Recording(Properties(RecordingNotEnabled))) #8

Open jd-bus opened 3 months ago

jd-bus commented 3 months ago

Hi, facing the following issue using the demo code.

Fatal Exception: FlutterError
OperationFailedException(startRecording failed: Recording(Properties(RecordingNotEnabled)))
0
platform_bridge.dart - Line 220
PlatformBridge._asyncCall.<fn> + 220
1
util.dart - Line 15
ObjectExt.let + 15
2
platform_bridge.dart - Line 220
PlatformBridge._asyncCall + 220
3
platform_bridge.dart - Line 386
PlatformBridge.updateInputs.<fn> + 386
4
platform_bridge.dart - Line 502
PlatformBridge.startRecording + 502
5
recording_button.dart - Line 169
_RecordingButtonState._onPressed + 169

Here is the breakdown of iOS versions it is happening on. Basically, any version.

Screenshot 2024-05-27 at 2 37 45 AM

Here is an example:

Screenshot 2024-05-27 at 2 39 02 AM

Do you know anything about it? I tested to see if it is caused by refusing voice/video permissions but I could not reproduce it. Even after refusing those permissions it didn't crash.

jd-bus commented 3 months ago

More stack trace information (I've confirmed this is running the latest example code)

Fatal Exception: FlutterError
OperationFailedException(updateInputs failed: TimeoutException after 0:00:10.000000: Future not completed)
0
platform_bridge.dart - Line 220
PlatformBridge._asyncCall.<fn> + 220
1
util.dart - Line 15
ObjectExt.let + 15
2
platform_bridge.dart - Line 220
PlatformBridge._asyncCall + 220
3
platform_bridge.dart - Line 386
PlatformBridge.updateInputs.<fn> + 386

Any feedback on this? For the record, it's not clear to me that this is an issue with the demo code per se vs the library. However I haven't been able to find daily_flutter itself on GitHub so asking the question here. Thanks!

jd-bus commented 2 months ago

Also seeing this on Android so I updated the title of the issue accordingly. Here is a stack trace on Android:

PlatformBridge._asyncCall.<fn>
io.flutter.plugins.firebase.crashlytics.FlutterError - OperationFailedException(startRecording failed: Recording(Properties(RecordingNotEnabled)))
package:daily_flutter/src/platform_bridge.dart:220
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError
OperationFailedException(startRecording failed: Recording(Properties(RecordingNotEnabled)))
PlatformBridge._asyncCall.<fn> (platform_bridge.dart:220)
ObjectExt.let (util.dart:15)
PlatformBridge._asyncCall (platform_bridge.dart:220)
PlatformBridge.updateInputs.<fn> (platform_bridge.dart:386)
PlatformBridge.startRecording (platform_bridge.dart:502)
_RecordingButtonState._onPressed (recording_button.dart:169)

ie, basically the same stacktrace as iOS