Comments (2)
We are also facing the similar issue when deployed as web solution and macOS app. We need a facility to change the video conference room for the user. So, I have user interface design which allows user to move from one room to another room.
Following error is occurring with gRPC channel. This error occurred when the user tries to join another room from existing room.
Uncaught Bad state: Cannot add event after closing
at Object.wrapException (https://<serverurl>/main.dart.js:13721:17)
at _AsyncStreamController.add$1 (https://<serverurl>/main.dart.js:62034:17)
at https://<serverurl>/main.dart.js:120075:52
at _wrapJsFunctionForAsync_closure.$protected (https://<serverurl>/main.dart.js:23103:15)
at _wrapJsFunctionForAsync_closure.call$2 (https://<serverurl>/main.dart.js:60915:12)
at Object._asyncStartSync (https://<serverurl>/main.dart.js:23067:20)
at WebSocketTransportStream__runRequest_closure0.call$1 (https://<serverurl>/main.dart.js:120080:16)
at _RootZone.runUnaryGuarded$1$2 (https://<serverurl>/main.dart.js:63018:13)
at _ControllerSubscription._sendData$1 (https://<serverurl>/main.dart.js:62385:19)
at _ControllerSubscription._async$_add$1 (https://<serverurl>/main.dart.js:62334:14)
Flutter doctor from the machine where it is built and deployed -
> flutter doctor -v
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.6 20G165 darwin-arm, locale en-IN)
• Flutter version 2.5.2 at /Users/manishraje/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343e20 (3 months ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/manishraje/Library/Android/sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 13.1, Build version 13A1030d
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 11.6 20G165 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110
! Doctor found issues in 1 category.
During the debugging we found that the crash happens here - flutter_ion 1.0.0 lib/src/signal/grpc-web/transport/websocket_transport.dart.
_channel.stream.listen((message) async {
final listBuffer = <int>[];
for (var i = 0; i < message.length; i++) {
listBuffer.add(message[i]);
}
=> _incomingProcessor.add(Uint8List.fromList(listBuffer).buffer);
}, onDone: _onDone(this), onError: _onError);
This happens intermittently. But it is a critical because once this happens the next room join doesn't happen or/sometimes the video/audio streams in the conference are broken. To circumvent this, we created separate instance of IonController for every meeting page, so it connect properly on next room join. But still the underlying problem doesn't solve.
Regards,
Manish
from ion-sdk-flutter.
Me too!!!!
from ion-sdk-flutter.
Related Issues (20)
- Getting error response from json-rpc
- How to create handlers in current null safe version.
- Why getDisplayMedia Function doesn't return localStream with Audio? its only returns localStream with Video support. please help me .
- Call _sfu?.publish first, then call (_stream as ion.LocalStream).unpublish(), and then call _sfu?.publish to report an error
- onnegotiationneeded error after adding video track with addTrack
- Dependency Dashboard
- How to run example on windows 10
- onPeerEvent not triggered upon joining a room HOT 1
- ontrack not being called/local track not being published HOT 1
- 用release模式编译apk,运行出现的问题 HOT 3
- How can I pass meta data on room join. How a client can resolve remote streams identity and profile HOT 1
- 能否更新项目的依赖到最新版,以确保稳定性(偶尔会崩溃的问题),拜托了
- When I used the screen sharing feature, the app crashed after the phone rotated itself several times
- nginx 配置websocket,被closed
- Error: Bad state: Cannot add event after closing
- Peer event is not triggered when i join back.
- Feature Request
- native crash
- can not use on macos with flutter 3.13
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 ion-sdk-flutter.