androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.7k stars 408 forks source link

Crash when playing HLS on Android Emulator level 29 #909

Open albilaga opened 11 months ago

albilaga commented 11 months ago

Version

Media3 1.2.0

More version details

No response

Devices that reproduce the issue

Devices that do not reproduce the issue

Reproducible in the demo app?

Yes

Reproduction steps

  1. Run demo app
  2. Go to HLS
  3. Choose the first one
  4. App will stuck in there and not showing anything and emulator will be frozen
  5. Emulator will crash after long period of frozen

Expected result

The media should plays successfully

Actual result

Player frozen and emulator also frozen. Here is the log error.log

Media

Media is the same as in the demo and HLS

Bug Report

tianyif commented 10 months ago

Hi @albilaga,

Happy new year and thanks for reporting! From your log, I saw the playback was trying to start and the last piece of log from the demo app is

{
      "header": {
        "logLevel": "DEBUG",
        "pid": 3895,
        "tid": 3895,
        "applicationId": "androidx.media3.demo.main",
        "processName": "androidx.media3.demo.main",
        "tag": "EventLogger",
        "timestamp": {
          "seconds": 1702998191,
          "nanos": 433000000
        }
      },
      "message": "audioTrackInit [eventTime\u003d5.64, mediaPos\u003d0.00, window\u003d0, period\u003d0, 2,12,22050,false,false,22052]"
    },

I haven't got a solid idea on what was going on after it though.

Did you see this issue on a emulator with the specific definition? I'm using M1 mac and couldn't reproduce the issue with Pixel 5, Pixel 6 and Nexus 4. And all of them are with API 29.

albilaga commented 10 months ago

@tianyif do you test on devices or in emulator? emulator always fail for me but devices all ok. emulator always like this CleanShot 2024-01-04 at 16 19 01@2x

tianyif commented 10 months ago

Yep, I tested on the emulators of Pixel 5, Pixel 6 and Nexus 4.

thisisthekap commented 10 months ago

@tianyif Is it working properly for you in the emulator?

albilaga commented 10 months ago

hmm.. there is something wrong with my emulator then. But not really sure which one is wrong also

tianyif commented 10 months ago

@thisisthekap yes, they were working properly on the emulators when I ran. Did you see the same issue?

thisisthekap commented 10 months ago

@tianyif Yes, same as @albilaga

thisisthekap commented 10 months ago

@tianyif Have you gained any further insight on that one?