Skip to content

Broadcast event error: Operation aborted #41

Description

@Febinjohnson96

Which API doesn't behave as documented, and how does it misbehave?
Just_Audio_Windows 0.2.1 , is used. and the mobile implementation is working fine using just audio. An audio is assigned to a button and when clicked the, it throws Broadcast event error: Operation aborted and the windows app crashes..

Minimal reproduction project
Provide a link here using one of two options:
1.
2. .

To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:

  1. Just_Audio is used for android implementation
  2. There's buttons which contain an audio assigned, clicking it throws this error
  3. This crashes the app itself
  4. See error below

Error messages

[ERROR:flutter/shell/common/shell.cc(1055)] The 'com.ryanheise.just_audio.events.e17c1f22-b165-4ec9-aeb9-2b503967b6ac' 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.
[ERROR:flutter/shell/common/shell.cc(1055)] The 'com.ryanheise.just_audio.data.e17c1f22-b165-4ec9-aeb9-2b503967b6ac' 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.
[just_audio_windows] Broadcast event error: Operation aborted
Lost connection to device.

Expected behavior
Able to complete the action which is a button click

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Brave

Smartphone (please complete the following information):

  • Device: Andorid
  • OS: Android 13

Flutter SDK version

[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.3880], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.4)
[√] Android Studio (version 2023.3)
[√] Connected device (3 available)
[√] Network resources

Additional context
Nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingr: fixed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions