aws-samples / amazon-ivs-player-ios-sample

This repository contains sample apps which use the Amazon IVS Player iOS SDK.
http://docs.aws.amazon.com/ivs/
MIT License
36 stars 9 forks source link

AsyncMediaPlayer-0 (9): EXC_BAD_ACCESS #50

Open AngelDev0329 opened 1 year ago

AngelDev0329 commented 1 year ago

Describe the bug I am using AmazonIVSPlayer to play live steaming video. By the way, some url can't plat because an app is crashed.

Could you help me to solve this problem?

Thank you.

To Reproduce

  1. Share sample code
  2. Steps to reproduce

Screenshots Screen Shot 2023-06-23 at 2 46 13 PM

Device details (please complete the following information):

Additional context Add any other context about the problem here.

ryanecrist commented 1 year ago

Hello, thanks for filing an issue.

In order to help us investigate, can you provide the following?

  1. What version of the SDK are you using?
  2. Is this issue observable on all iOS versions?
  3. Is this issue happening with a particular stream or all streams? VODs vs livestream?
  4. Is this issue happening when streaming via AWS IVS or another system?
  5. Can you collect debug logs when this issue is observed? You can enable debug logging via the log level property on the player:
    let player = IVSPlayer()
    player.logLevel = .debug
  6. Can you provide a minimal example to reproduce this issue? For example, using one of the demo apps in this repo?
  7. Any other useful information you think will help in our investigation.

If urgent troubleshooting or technical support is needed, please reach out to AWS Support via the AWS Support Center (https://docs.aws.amazon.com/awssupport/latest/user/getting-started.html).

AngelDev0329 commented 1 year ago

I am using SDK 1.19.0. The url that I used, is "https://dwamdstream107.akamaized.net/hls/live/2017968/dwstream107/index.m3u8"

Here is logs

2023-06-24 00:57:29.100161+0800 BasicPlayback[72457:3224516] [IVSPlayer] Amazon IVS Player SDK 1.19.0
ℹ️ Player initialized: version 1.19.0
2023-06-24 00:57:29.105737+0800 BasicPlayback[72457:3224516] [IVSPlayer] Player load https://dwamdstream107.akamaized.net/hls/live/2017968/dwstream107/index.m3u8
2023-06-24 00:57:29.106097+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR setLowLatencyMode false
2023-06-24 00:57:29.106251+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR create estimator fastslow
2023-06-24 00:57:29.106361+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR FastSlow alpha 1.0 10.0
2023-06-24 00:57:29.106486+0800 BasicPlayback[72457:3224516] [IVSPlayer] Seek started - set media time to 0
2023-06-24 00:57:29.106591+0800 BasicPlayback[72457:3224516] [IVSPlayer] [HlsDelegateFactory::createHlsSourceDelegate] using type: Legacy
2023-06-24 00:57:29.106667+0800 BasicPlayback[72457:3224516] [IVSPlayer] [HlsSourceDelegate::HlsSourceDelegate] Creating HLSSource with type: Legacy
2023-06-24 00:57:29.108366+0800 BasicPlayback[72457:3224516] [IVSPlayer] Player add track meta - text/json
2023-06-24 00:57:29.108579+0800 BasicPlayback[72457:3224521] [IVSPlayer] Track text : created
2023-06-24 00:57:29.108609+0800 BasicPlayback[72457:3224516] [IVSPlayer] Player play
2023-06-24 00:57:29.108690+0800 BasicPlayback[72457:3224516] [IVSPlayer] BufferState changed Filling
2023-06-24 00:57:29.788949+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR setTargetBufferSize 2.00s / 0.00s
2023-06-24 00:57:29.789098+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR BandwidthFilter: filtered 1080p50 (6898557), 720p50 (4780088), 576p50 (3780853), 400p50 (2100853)
2023-06-24 00:57:29.789288+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR switch None to 360p50 (1140853) buffered 0.00 s
2023-06-24 00:57:29.789403+0800 BasicPlayback[72457:3224516] [IVSPlayer] ABR switch quality 360p50 (1140853)
2023-06-24 00:57:29.789535+0800 BasicPlayback[72457:3224516] [IVSPlayer] Player adaptive set quality to 360p50 (1140853)
2023-06-24 00:57:29.789637+0800 BasicPlayback[72457:3224516] [IVSPlayer] set quality to 360p50
2023-06-24 00:57:29.790172+0800 BasicPlayback[72457:3224516] [IVSPlayer] Player source opened
2023-06-24 00:57:29.790278+0800 BasicPlayback[72457:3224516] [IVSPlayer] latency mode changed Normal
2023-06-24 00:57:29.790420+0800 BasicPlayback[72457:3224516] [IVSPlayer] Player state changed Idle to Ready
ryanecrist commented 1 year ago

Hello, I've filed an issue internally to track this behavior.

Can you provide a little more information about how this stream was generated?

AngelDev0329 commented 1 year ago

In fact, I don't know how to generated this stream.