shaka-player-embedded icon indicating copy to clipboard operation
shaka-player-embedded copied to clipboard

Crashes when releasing a persistent license

Open nakamura-work opened this issue 3 years ago • 0 comments

Overview

Releasing a persistent license causes a crash due to an assertion inside the widevine cdm plugin.

Build environment

  • macOS Big Sur (11.5.1)
  • shaka-player-embedded/master
    • Xcode 11.7
    • commit 180462a1bb6ea0642f0681486cb41448c167b54f
  • shaka-player-embedded/master/sample_xcode_project
    • Xcode 13.2.1
    • commit 180462a1bb6ea0642f0681486cb41448c167b54f with patches
  • Widevine CDM 15.2.4
    • commit/df86ca975b8c03da33771736fa81078b22d0507b

Execution environment

iPhone 13 mini (iOS 15.5)

Steps to reproduce

  1. build "ShakaPlayerEmbedded"
  2. place both of .framework on //sample_xcode_project
  3. add widevine_cdm_secured_ios.framework to project
  4. apply the attached patches
  5. run the app
  6. long press "shaka-proxy / angel-one" and select "Download"
  7. wait for download completion
  8. long press "shaka-proxy / angel-one" and select "Remove"

As a result, the app crashes with a failed assertion as follows:

Assertion failed: (got_server_certificate_), function Update, file /<cdm_dir>/shaka_plugin/widevine_implementation.cc, line 357.

Supplements

  • Explicitly specifying 'serverCertificate' before instantiating Storage (via Player) escapes the crash.
  • I commented out the assertion as a test, and then the deletion process completed.

crash-on-remove-license.txt

nakamura-work avatar Jul 25 '22 04:07 nakamura-work