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

报错:channel sent a message from native to Flutter on a non-platform thread #1580

Open
yuemenglong opened this issue May 6, 2024 · 1 comment

Comments

@yuemenglong
Copy link

Describe the bug
最新的release: 0.10.4. 执行example的Loopback Sample时,会出现如下错误,但是似乎执行结果没有影响,画面还能正常出现

[ERROR:flutter/shell/common/shell.cc(1038)] The 'FlutterWebRTC/peerConnectionEventB8E51BF3-0198-43E8-9F0A-C1FDD0610886' 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.

To Reproduce

Expected behavior

Platform information

  • Flutter version: Flutter version 3.19.6
  • Plugin version: release: 0.10.4.
  • OS: windows desktop
  • OS version: win10
@mrcsh
Copy link

mrcsh commented May 15, 2024

I have been seeing this error for ever since we got livekit workable on Linux, and it's never seemed to have caused any discernible issues.
After upgrade to flutter 3.22 the app now immediately crashes after rendering the VideoRenderer
The last message is

[ERROR:flutter/shell/common/shell.cc(1055)] The 'FlutterWebRTC/Texture30315328' 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.
Lost connection to device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants