google / google/sagetv

Playback of file crashes when loading external SRT file

Open
#467 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
287
Forks
172
PR merge metrics
No merged PRs in 30d

Description

I think the important part of the log is below. There may have been a problem with the subtitle file. I think it would be a good idea to see if SageTV can handle this failure a little more cleanly.

```
Fri` 12/17 8:49:19.498 [VideoFrame-4a414f44444a@a55ffe2] openURL0(stv://192.168.0.5/\\brazil\movies\Christmas Story, A (1983)\A Christmas Story_1983_1080p_H264.mkv)
Fri 12/17 8:49:19.499 [VideoFrame-4a414f44444a@a55ffe2] Sigma video dim=java.awt.Dimension[width=720,height=480]
Fri 12/17 8:49:19.499 [VideoFrame-4a414f44444a@a55ffe2] setMute0()
Fri 12/17 8:49:19.501 [VideoFrame-4a414f44444a@a55ffe2] getDuration : 0
Fri 12/17 8:49:19.501 [VideoFrame-4a414f44444a@a55ffe2] VideoFrame.timeSelected2(Fri 11/16 10:40:58.807, true) currFile=MediaFile[id=55562695 A[56516593,55562696,"A Christmas Story",0@1116.10:40,93,V] mask=V host=sagetv encodedBy= format=MATROSKA 1:33:23 12183 kbps [#0 Video[H.264 23.975986 fps 1904x1080 238:135 progressive id=0]#1 Audio[AC3 48000 Hz 1 channels 192 kbps idx=1 id=0 eng]#2 Subpic[SRT id=0 eng]#3 Subpic[SRT id=0 por]#4 Subpic[SRT id=0 spa]#5 Subpic[SRT path=\\brazil\movies\Christmas Story, A (1983)\A Christmas Story_1983_1080p_H264.srt]{MediaType=Movie, metadata.tmdb.id=850, metadata.lastupdated=1615213050195}] \\brazil\movies\Christmas Story, A (1983)\A Christmas Story_1983_1080p_H264.mkv, Seg0[Fri 11/16 10:40:58.807-Fri 11/16 12:14:21.847]] realDur=0
Fri 12/17 8:49:19.501 [VideoFrame-4a414f44444a@a55ffe2] playPush0()
Fri 12/17 8:49:19.503 [VideoFrame-4a414f44444a@a55ffe2] Channel Change Time=1639748959503 NOTE: Not valid if this was not a direct channel change!
Fri 12/17 8:49:19.503 [VideoFrame-4a414f44444a@a55ffe2] VIDEO FRAME EXCEPTION THROWN:java.lang.NullPointerException
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] java.lang.NullPointerException
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] java.io.File.(Unknown Source)
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] sage.media.sub.SRTSubtitleHandler.loadSubtitlesFromFiles(SRTSubtitleHandler.java:248)
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] sage.media.sub.SRTSubtitleHandler.loadSubtitlesFromFiles(SRTSubtitleHandler.java:131)
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] sage.media.sub.SubtitleHandler.createSubtitleHandler(SubtitleHandler.java:372)
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] sage.VideoFrame.processJob(VideoFrame.java:2516)
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] sage.VideoFrame.run(VideoFrame.java:1614)
Fri 12/17 8:49:19.504 [VideoFrame-4a414f44444a@a55ffe2] sage.Pooler$PooledThread.run(Pooler.java:254)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.