Exception caught: The type initializer for 'WidevineClient.Widevine.CDM' threw an exception. #9

Open
opened 2025-05-08 12:16:05 +00:00 by kmitnick · 0 comments

I have been getting the following error lately, and I'm unsure what is wrong.

Exception caught: The type initializer for 'WidevineClient.Widevine.CDM' threw an exception.

StackTrace:    at WidevineClient.Widevine.CDM.OpenSession(String initDataB64, String deviceName, Boolean offline, Boolean raw) in /src/OF DL/Widevine/CDM.cs:line 58
   at WidevineClient.Widevine.CDMApi.GetChallenge(String initDataB64, String certDataB64, Boolean offline, Boolean raw) in /src/OF DL/CDMApi.cs:line 12
   at OF_DL.Helpers.APIHelper.GetDecryptionKeyCDM(Dictionary`2 drmHeaders, String licenceURL, String pssh) in /src/OF DL/Helpers/APIHelper.cs:line 2811

Inner Exception:
Exception caught: Arithmetic operation resulted in an overflow.

StackTrace:    at ProtoBuf.ProtoReader.State.ThrowOverflow() in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 835
   at ProtoBuf.ProtoReader.StreamProtoReader.ImplTryReadUInt32VarintWithoutMoving(State& state, Read32VarintMode mode, UInt32& value) in /_/src/protobuf-net.Core/ProtoReader.Stream.cs:line 232
   at ProtoBuf.ProtoReader.State.ReadFieldHeaderFallback() in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 746
   at ProtoBuf.ProtoReader.State.AppendExtensionField(State& writeState) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 979
   at ProtoBuf.ProtoReader.State.AppendExtensionDataImpl(IExtension extn) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 908
   at ProtoBuf.ProtoReader.State.AppendExtensionData(IExtensible instance) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 883
   at proto_2(State&, ClientIdentification)
   at ProtoBuf.Internal.Serializers.SimpleCompiledSerializer`1.ProtoBuf.Serializers.ISerializer<T>.Read(State& state, T value)
   at ProtoBuf.ProtoReader.State.ReadAsRoot[T](T value, ISerializer`1 serializer)
   at ProtoBuf.ProtoReader.State.DeserializeRoot[T](T value, ISerializer`1 serializer)
   at ProtoBuf.Serializer.Deserialize[T](Stream source)
   at WidevineClient.Widevine.CDMDevice..ctor(String deviceName, Byte[] clientIdBlobBytes, Byte[] privateKeyBytes, Byte[] vmpBytes)
   at WidevineClient.Widevine.CDM..cctor()
Exception caught: Object reference not set to an instance of an object.

This is how my config.json file looks like:

# Auth
DisableBrowserAuth = true
# External Tools
External {
  FFmpegPath = "/usr/bin/ffmpeg"
}
# Download Settings
Download {
  Media {
    DownloadAvatarHeaderPhoto = false
    DownloadPaidPosts = true
    DownloadPosts = true
    DownloadArchived = false
    DownloadStreams = false
    DownloadStories = false
    DownloadHighlights = false
    DownloadMessages = true
    DownloadPaidMessages = true
    DownloadImages = true
    DownloadVideos = true
    DownloadAudios = false
  }
  IgnoreOwnMessages = false
  DownloadPostsIncrementally = true
  BypassContentForCreatorsWhoNoLongerExist = false
  DownloadDuplicatedMedia = false
  SkipAds = true
  DownloadPath = "/data"
  DownloadOnlySpecificDates = false
  DownloadDateSelection = "before"
  CustomDate = ""
  ShowScrapeSize = true
  DownloadVideoResolution = "source"
}
# File Settings
File {
  PaidPostFileNameFormat = ""
  PostFileNameFormat = ""
  PaidMessageFileNameFormat = ""
  MessageFileNameFormat = ""
  RenameExistingFilesWhenCustomFormatIsSelected = false
}
# Creator-Specific Configurations
CreatorConfigs {
}
# Folder Settings
Folder {
  FolderPerPaidPost = false
  FolderPerPost = false
  FolderPerPaidMessage = false
  FolderPerMessage = false
}
# Subscription Settings
Subscriptions {
  IncludeExpiredSubscriptions = false
  IncludeRestrictedSubscriptions = false
  IgnoredUsersListName = ""
}
# Interaction Settings
Interaction {
  NonInteractiveMode = false
  NonInteractiveModeListName = ""
  NonInteractiveModePurchasedTab = true
}
# Performance Settings
Performance {
  Timeout = -1
  LimitDownloadRate = false
  DownloadLimitInMbPerSec = 4
}
# Logging/Debug Settings
Logging {
  LoggingLevel = "debug"
}

Attached is a log, and config.json files

I have been getting the following error lately, and I'm unsure what is wrong. ``` Exception caught: The type initializer for 'WidevineClient.Widevine.CDM' threw an exception. StackTrace: at WidevineClient.Widevine.CDM.OpenSession(String initDataB64, String deviceName, Boolean offline, Boolean raw) in /src/OF DL/Widevine/CDM.cs:line 58 at WidevineClient.Widevine.CDMApi.GetChallenge(String initDataB64, String certDataB64, Boolean offline, Boolean raw) in /src/OF DL/CDMApi.cs:line 12 at OF_DL.Helpers.APIHelper.GetDecryptionKeyCDM(Dictionary`2 drmHeaders, String licenceURL, String pssh) in /src/OF DL/Helpers/APIHelper.cs:line 2811 Inner Exception: Exception caught: Arithmetic operation resulted in an overflow. StackTrace: at ProtoBuf.ProtoReader.State.ThrowOverflow() in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 835 at ProtoBuf.ProtoReader.StreamProtoReader.ImplTryReadUInt32VarintWithoutMoving(State& state, Read32VarintMode mode, UInt32& value) in /_/src/protobuf-net.Core/ProtoReader.Stream.cs:line 232 at ProtoBuf.ProtoReader.State.ReadFieldHeaderFallback() in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 746 at ProtoBuf.ProtoReader.State.AppendExtensionField(State& writeState) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 979 at ProtoBuf.ProtoReader.State.AppendExtensionDataImpl(IExtension extn) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 908 at ProtoBuf.ProtoReader.State.AppendExtensionData(IExtensible instance) in /_/src/protobuf-net.Core/ProtoReader.State.ReadMethods.cs:line 883 at proto_2(State&, ClientIdentification) at ProtoBuf.Internal.Serializers.SimpleCompiledSerializer`1.ProtoBuf.Serializers.ISerializer<T>.Read(State& state, T value) at ProtoBuf.ProtoReader.State.ReadAsRoot[T](T value, ISerializer`1 serializer) at ProtoBuf.ProtoReader.State.DeserializeRoot[T](T value, ISerializer`1 serializer) at ProtoBuf.Serializer.Deserialize[T](Stream source) at WidevineClient.Widevine.CDMDevice..ctor(String deviceName, Byte[] clientIdBlobBytes, Byte[] privateKeyBytes, Byte[] vmpBytes) at WidevineClient.Widevine.CDM..cctor() Exception caught: Object reference not set to an instance of an object. ``` This is how my `config.json` file looks like: ``` # Auth DisableBrowserAuth = true # External Tools External { FFmpegPath = "/usr/bin/ffmpeg" } # Download Settings Download { Media { DownloadAvatarHeaderPhoto = false DownloadPaidPosts = true DownloadPosts = true DownloadArchived = false DownloadStreams = false DownloadStories = false DownloadHighlights = false DownloadMessages = true DownloadPaidMessages = true DownloadImages = true DownloadVideos = true DownloadAudios = false } IgnoreOwnMessages = false DownloadPostsIncrementally = true BypassContentForCreatorsWhoNoLongerExist = false DownloadDuplicatedMedia = false SkipAds = true DownloadPath = "/data" DownloadOnlySpecificDates = false DownloadDateSelection = "before" CustomDate = "" ShowScrapeSize = true DownloadVideoResolution = "source" } # File Settings File { PaidPostFileNameFormat = "" PostFileNameFormat = "" PaidMessageFileNameFormat = "" MessageFileNameFormat = "" RenameExistingFilesWhenCustomFormatIsSelected = false } # Creator-Specific Configurations CreatorConfigs { } # Folder Settings Folder { FolderPerPaidPost = false FolderPerPost = false FolderPerPaidMessage = false FolderPerMessage = false } # Subscription Settings Subscriptions { IncludeExpiredSubscriptions = false IncludeRestrictedSubscriptions = false IgnoredUsersListName = "" } # Interaction Settings Interaction { NonInteractiveMode = false NonInteractiveModeListName = "" NonInteractiveModePurchasedTab = true } # Performance Settings Performance { Timeout = -1 LimitDownloadRate = false DownloadLimitInMbPerSec = 4 } # Logging/Debug Settings Logging { LoggingLevel = "debug" } ``` Attached is a log, and `config.json` files
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sim0n00ps/OF-DL#9
No description provided.