Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Crashes when releasing a persistent license #240

@nakamura-work

Description

@nakamura-work

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
  • shaka-player-embedded/master/sample_xcode_project
    • Xcode 13.2.1
    • commit 180462a 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions