Description
Describe the bug
when establishing an sip connection i get this warning: [ERROR:flutter/shell/common/shell.cc(1065)] The 'FlutterWebRTC/peerConnectionEvent53367CBD-CE90-48C7-999C-20EB1E41FBD2' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
but the app only crashes after the connection has been established
SIP/2.0 200 OK
...
flutter: [2025-03-04 06:05:53.69] Level.debug rtc_session.dart:981 ::: mute()
flutter: [2025-03-04 06:05:53.71] Level.debug rtc_session.dart:3306 ::: session onmute
flutter: [2025-03-04 06:05:53.71] Level.debug rtc_session.dart:3308 ::: emit "muted"
...
flutter: [2025-03-04 06:05:53.72] Level.debug sip_ua_helper.dart:322 ::: call muted
Lost connection to device.
Exited.
I could not find a previous issue here, but I have seen a similar issue on liveKit issue#586. I created this issue since I couldn't really apply a workaround similar to this as it seems sip_ua is tightly coupled with flutter_webrtc, and a solution couldn't come to mind. Any help would be appreciated (even alternatives for Windows) as I am currently targeting Windows after successfully deploying on MacOS.
To Reproduce
Steps to reproduce the behavior:
- Attempt to join any call
- Wait for sip to connect
- The app crashes immediately
Expected behavior
The app does not crash, and I can proceed to use audio functionalities.
System Infomation()
Flutter SDK Version: 3.24.3
Target OS and Version: Windows 10 22H2 and Windows 11
Host OS and Version: Windows 10 22H2