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

MediaStream.dispose() bug (mediastream not found on linux OS) #1543

Open
shivanshtalwar0 opened this issue Mar 8, 2024 · 0 comments
Open

Comments

@shivanshtalwar0
Copy link

shivanshtalwar0 commented Mar 8, 2024

Describe the bug
When calling MediaStream.dispose() library throw an exception that media stream is not found, this only happens on linux OS

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(MediaStreamDisposeFailed, stream [98C2C75D-0C4D-48F5-8387-67A667C09A62] not found!, null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
<asynchronous suspension>
#2      MediaStreamNative.dispose (package:flutter_webrtc/src/native/media_stream_impl.dart:93:5)
<asynchronous suspension>

it is affecting videroom plugin on flutter_janus_client
To Reproduce
simply run app on linux and call MediaStream.dispose()
Expected behavior
it should not throw an exception
Platform information
Linux

  • Flutter version:
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 3.19.3, on Linux Mint 20.3 5.16.12, locale en_US.UTF-8)
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc3)
    [✓] Chrome - develop for the web
    [✓] Linux toolchain - develop for Linux desktop
    [✓] Android Studio (version 2021.1)
    [✓] VS Code (version 1.87.1)
    [✓] Connected device (2 available)
    [✓] Network resources

• No issues found!

  • Plugin version:
    0.9.48+hotfix.1
  • OS:
    Desktop (Linux Mint)
  • OS version:
    Linux Mint 20.03 cinnamon
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

1 participant