Code Monkey home page Code Monkey logo

Comments (2)

manish-raje avatar manish-raje commented on June 4, 2024

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.

wujianqiangwjq avatar wujianqiangwjq commented on June 4, 2024

Me too!!!!

from ion-sdk-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.