ionorg / ion-app-flutter

ion flutter app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Web - Uncaught TypeError: func.call$1 is not a functi

MichealReed opened this issue · comments

When connecting and on subsequent client connections, the web app throws an uncaught type error. Chrome points to zone.dart line 1175, firefox does the same but points to client.dart line 487.

Your environment.

  • Version: 6512fef
  • Browser: issue persists

What did you do?

flutter create .
flutter build web --release
host it

Chrome

Uncaught TypeError: func.call$1 is not a function
    at Client.callback$7 (event_emitter.dart:29)
    at EventEmitter_emit_closure.call$1 (event_emitter.dart:64)
    at Interceptor.forEach$1 (js_array.dart:257)
    at Object.forEach$1$ax (main.dart.js:7204)
    at Client.emit$5 (event_emitter.dart:63)
    at Client._handleNotification$1 (client.dart:506)
    at Object.eval (eval at Closure_forwardCallTo (js_helper.dart:2182), <anonymous>:3:41)
    at Peer.callback$7 (event_emitter.dart:29)
    at EventEmitter_emit_closure.call$1 (event_emitter.dart:64)
    at Interceptor.forEach$1 (js_array.dart:257)

Firefox:

Uncaught Error: undefined
    wrapException js_helper.dart:1129
    firstWhere$2$orElse js_array.dart:327
    firstWhere$1 main.dart.js:40658
    2 meeting_page.dart:64
    protected main.dart.js:7440
    call$2 async_patch.dart:340
    _asyncStartSync async_patch.dart:245
    call$2 meeting_page.dart:64
    callback$7 event_emitter.dart:32
    call$1 event_emitter.dart:64
    forEach$1 js_array.dart:257
    forEach$1$ax main.dart.js:7204
    emit$5 event_emitter.dart:63
    emit$3 main.dart.js:53619
    _handleNotification$1 client.dart:514
    anonymous main.dart.js line 4671 > Function:3
    callback$7 event_emitter.dart:29
    call$1 event_emitter.dart:64
    forEach$1 js_array.dart:257
    forEach$1$ax main.dart.js:7204
    emit$5 event_emitter.dart:63
    emit$2 main.dart.js:53613
    call$1 peer.dart:120
    callback$7 event_emitter.dart:29
    call$1 event_emitter.dart:64
    forEach$1 js_array.dart:257
    forEach$1$ax main.dart.js:7204
    emit$5 event_emitter.dart:63
    emit$2 main.dart.js:53613
    call$1 main.dart.js:102223
    1 websocket_web_impl.dart:36
    protected main.dart.js:7440
    call$2 async_patch.dart:340
    _asyncStartSync async_patch.dart:245
    $call$body$WebSocketImpl_connect_closure websocket_web_impl.dart:30
    call$1 websocket_web_impl.dart:30
    call$1 html_dart2js.dart:37188
    invokeClosure js_helper.dart:1825
    function main.dart.js:4533

What did you expect?

I expected it to join the room and conferencing to work.

What happened?

Client joins but hangs at waiting for others to join. You can see your own camera and hear your own audio, but you cannot hear any other participants as they never show joined to the room. The SFU logs indicate multiple peers are connected, and publishing.

image

@cloudwebrtc I have also discovered this on a chrome release build and accessing the website via firefox in debug. Any ideas? Seems the emit method is not found from the EventEmitter extension.

Closing, reopened under SDK ionorg/ion-sdk-flutter#16.