Skip to content

Crash when viewing TV recording already in progress #1759

Open
@ch6574

Description

Software Versions

  • Jellyfin Server Version: 10.8.13
  • Roku Client Version: latest (Jellyfin-Roku-dev-47ac993d869ac0ab6e3b6df749b5b619ad0f90a1)

Describe the bug

Attempting to browse to a TV recording of a show that is currently recording results in the app crashing and being returned to the Roku home screen.

How To Reproduce

  1. While a TV show is recording, attempt to browse to the same series listings
  2. Observe the app crash
  3. N.B. Other series are viewable, it's only the one with an active recording that is problematic.

Expected behavior

Ideally the series is browsable, and the active recording is playable as a "catch up". This is possible to do on both the Jellyfin web client as well as the Android client.

N.B. I do observe that while the live recording is taking place an extra media entry is shown in the series listing in the Jellyfin web with media type of "jpeg_pipe" of size 0 MB.

Logs

BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.

Suspending threads...
Thread selected:  1*   ...nts/tvshows/TVListDetails.brs(94)                   m.videoCodec.text = tr("Video") + ": " + itemData.MediaSources[i].MediaStreams[0].DisplayTitle

Current Function:
086:          m.progressBar.width = progressWidthInPixels
087:          m.progressBar.visible = true
088:      end if
089:      ' Display current video_codec and check if there is more than one video to choose from...
090:      m.videoCodec.visible = false
091:      if isValid(itemData.MediaSources)
092:          for i = 0 to itemData.MediaSources.Count() - 1
093:              if item.selectedVideoStreamId = itemData.MediaSources[i].id and isValid(itemData.MediaSources[i].MediaStreams[0])
094:*                 m.videoCodec.text = tr("Video") + ": " + itemData.MediaSources[i].MediaStreams[0].DisplayTitle
095:                  SetupAudioDisplay(itemData.MediaSources[i].MediaStreams, item.selectedAudioStreamIndex)
096:                  exit for
097:              end if
098:          end for
Source Digest(s): 
pkg: dev 2.0.5 6f03fda3 Jellyfin

Type Mismatch. Operator "+" can't be applied to "String" and "Invalid". (runtime error &h18) in pkg:/components/tvshows/TVListDetails.brs(94)
Backtrace:
#0  Function itemcontentchanged() As Void
   file/line: pkg:/components/tvshows/TVListDetails.brs(94)
Local Variables:
global           Interface:ifGlobal
m                roAssociativeArray refcnt=2 count:12
item             roSGNode:TVEpisodeData refcnt=1
itemdata         roAssociativeArray refcnt=1 count:31
indexnumber      roString (2.1 was String) refcnt=1 val:"4. "
airdate          roDateTime refcnt=1
imageurl         roString refcnt=1 val:"http://jellyfin.lan:8096/Items/ba30e19a249c2586046fd9f026e36cce/Images/Primary?maxheight=250&m"...
runtime          <uninitialized>
progresswidthinpixels <uninitialized>
i                Integer val:0 (&h0)
Threads:
ID    Location                                Source Code
 0[u] ??
 1*   ...nts/tvshows/TVListDetails.brs(94)                   m.videoCodec.text = tr("Video") + ": " + itemData.MediaSources[i].MediaStreams[0].DisplayTitle
  *selected   [u]unattached(not debuggable)

Brightscript Debugger> 03-24 00:46:54.828 [beacon.signal] |AppExitInitiate -----------> TimeBase(194072 ms)

Screenshots

n/a

Connection Information

  • Is server local or remote? local
  • Is server connection HTTP or HTTPS? http

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions