bdlukaa / just_audio_windows

Audio Player
9 stars 14 forks source link

Crash on Windows 10 Enterprise 2016 LTSB #35

Open Veselchak-U opened 4 months ago

Veselchak-U commented 4 months ago

Which API doesn't behave as documented, and how does it misbehave? When calling the "AudioPlayer.setAudioSource()" method with any type of source in "Windows 10 Enterprise 2016 LTSB", the application crashes without any errors intercepted by Flutter. An error message appears in the Windows Application log - see below.

At the same time, mp3-files are normally started and played on the same Windows system via Windows Media Player.

Additional information: The "media-kit" library-based player also fails when trying to play in this Windows-version. https://github.com/media-kit/media-kit/tree/main/media_kit_test Therefore, there is a suspicion that some component in the system is missing.

Minimal reproduction project The example.

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

  1. Make Windows build based on the example project.
  2. Move the build to target Windows system and run.

Error messages

Log Name:      Application
Source:        Application Error
Date:          29-May-24 10:27:45 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      DESKTOP-LPMLSCR
Description:
Faulting application name: just_audio_example.exe, version: 1.0.0.0, time stamp: 0x6656ce36
Faulting module name: just_audio_windows_plugin.dll, version: 0.0.0.0, time stamp: 0x66564d48
Exception code: 0xc0000005
Fault offset: 0x0000000000007865
Faulting process id: 0x4f4
Faulting application start time: 0x01dab199b1d4d463
Faulting application path: Z:\just_audio_example\just_audio_example.exe
Faulting module path: Z:\just_audio_example\just_audio_windows_plugin.dll
Report Id: 44f0a0bb-c2ec-4775-9917-d304ca345eed
Faulting package full name: 
Faulting package-relative application ID: 
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2024-05-29T07:27:45.092241600Z" />
    <EventRecordID>1168</EventRecordID>
    <Channel>Application</Channel>
    <Computer>DESKTOP-LPMLSCR</Computer>
    <Security />
  </System>
  <EventData>
    <Data>just_audio_example.exe</Data>
    <Data>1.0.0.0</Data>
    <Data>6656ce36</Data>
    <Data>just_audio_windows_plugin.dll</Data>
    <Data>0.0.0.0</Data>
    <Data>66564d48</Data>
    <Data>c0000005</Data>
    <Data>0000000000007865</Data>
    <Data>4f4</Data>
    <Data>01dab199b1d4d463</Data>
    <Data>Z:\just_audio_example\just_audio_example.exe</Data>
    <Data>Z:\just_audio_example\just_audio_windows_plugin.dll</Data>
    <Data>44f0a0bb-c2ec-4775-9917-d304ca345eed</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

Expected behavior Launching the app and playing music.

Screenshots error_1 error_2 error_3

Desktop (please complete the following information):

Smartphone (please complete the following information): None.

Flutter SDK version

[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.19045.3570], locale en-EN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.5)
[√] Android Studio (version 2023.3)
[√] VS Code, 64-bit edition (version 1.86.2)
[√] Connected device (2 available)
[√] Network resources

• No issues found!

Additional context Libs versions:

Veselchak-U commented 4 months ago

Additional information: The player based on the "audioplayers" library works fine in this version of Windows.

bdlukaa commented 4 months ago

Can you run the app with Visual Studio and get the stacktrace from there? These info aren't really useful.

utpalruparel commented 3 weeks ago

Hello,

We are getting same crash on windows 10 on some licenses. Is this resolved? any update on this?

Veselchak-U commented 3 weeks ago

Hello,

We are getting same crash on windows 10 on some licenses. Is this resolved? any update on this?

Hello! There are no updates yet. We have switched to the "audio_service" package so far.

utpalruparel commented 3 weeks ago

Hello, We are getting same crash on windows 10 on some licenses. Is this resolved? any update on this?

Hello! There are no updates yet. We have switched to the "audio_service" package so far.

Thanks for reply. Are you using it for Windows? Plugin not showing for windows.

bdlukaa commented 1 week ago

I do not own a Windows 10 Enterprise 2016 LTSB device, so I can not debug this issue.

Can you run the app with Visual Studio and get the stacktrace from there? Thanks.