nint8835-archive / iTunesRichPresence

Bring iTunes now playing information to Discord using Rich Presence
https://itunesrichpresence.com
MIT License
274 stars 44 forks source link

ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds. #40

Closed sentry-io[bot] closed 1 month ago

sentry-io[bot] commented 5 years ago

Sentry Issue: ITUNESRICHPRESENCE-1

ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
  Module "iTunesRichPresence_Rewrite.DiscordRpc+RichPresence", line 34, in StrClampBytes
    System.String StrClampBytes(System.String, Int32)
  Module "iTunesRichPresence_Rewrite.DiscordRpc+RichPresence", line 72, in StrToPtr
    IntPtr StrToPtr(System.String, Int32)
  Module "iTunesRichPresence_Rewrite.DiscordRpc+RichPresence", line 20, in GetStruct
    RichPresenceStruct GetStruct()
  Module "iTunesRichPresence_Rewrite.DiscordRpc", line 0, in UpdatePresence
    Void UpdatePresence(RichPresence)
  Module "iTunesRichPresence_Rewrite.DiscordBridge", line 518, in Timer_OnTick
    Void Timer_OnTick(System.Object, System.EventArgs)
...
(1 additional frame(s) were not displayed)

Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
nint8835 commented 5 years ago

Occurs when any status line is over the maximum length. Evidently the current truncating code is not sufficiently shortening the status messages, and must be fixed.

nint8835 commented 1 month ago

Closing due to iTunesRichPresence no longer being maintained.