Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] app crashes as soon as voice connection is established with code 200 #529

Open
Osama-Al-Fawaz opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Osama-Al-Fawaz
Copy link

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:

  1. Attempt to join any call
  2. Wait for sip to connect
  3. 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

@Osama-Al-Fawaz Osama-Al-Fawaz added the bug Something isn't working label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant