shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
236 stars 63 forks source link

EXC_BAD_ACCESS using release_cdm.json for WV #186

Closed kareljuricka closed 4 years ago

kareljuricka commented 4 years ago

Issue description

The player crashes with: JS Main Thread (10): EXC_BAD_ACCESS (code=1, address=0x208008984) when using using release_cdm.json instead of dev_cdm.json.

Reproduction steps

  1. Configure shaka player embedded build with: ../configure --ios --cpu arm64 --eme-impl ~/prebuilt_cdm_ios_widevine/shaka_plugin/release_cdm.json

  2. Use ~/prebuilt_cdm_ios_widevine/lib/release/arm64_ios/widevine_cdm_secured_ios.framework in project

  3. Load wv content

  4. App crash

Manifest

Any wv content, eg.: https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine-hls/hls.m3u8 https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd

with wv server: https://cwip-shaka-proxy.appspot.com/no_auth

Log

crash-log.txt

Version of Shaka Player Embedded

dccd0bb

Version of CDM

15.2.4

Device(s) and version(s) of iOS being used

iPhone 11 Pro with iOS 14.0

Additional info

Found something similar in https://github.com/google/shaka-player-embedded/issues/64 but this issue is solved

If using ~/prebuilt_cdm_ios_widevine/shaka_plugin/dev_cdm.json, demo content plays without problem

TheModMaker commented 4 years ago

As mentioned in the README of the CDM, you can't use the release CDM with a debugger. You can either not attach the debugger in Xcode, or launch the app manually without Xcode.

kareljuricka commented 4 years ago

Sorry I missed this, thank for quick answer.

Btw. I also trying to figured out this older issue https://github.com/google/shaka-player-embedded/issues/175. I added more info recently with updated reproduction step to make it always happens. It cause app crash so till fix we can't use shaka embedded for production purposes. You didn't tag issue as Bug so I'm not sure if you recieved updated info so just for sure I wrote it here. Thanks