Forum Discussion

dbulli's avatar
dbulli
Visitor
12 years ago

Firmware 5.2 TrackIDSubtitle+roVideoPlayer.Stop() = CRASH

So since firmware 5.2:

If I set a TrackIDSubtitle on a clip that I use with roVideoPlayer there is a crash of app when I call roVideoPlayer.Stop(). In development mode it crashes Roku player sometimes.

This only happens on the end of a stream. When i am tearing down my roVideoPlayer I perform a cleanup and call roVideoPlayer.Stop(). If the video is playing there is no issue, but once I call this with end of stream the player crashes. Not sure if this happened before firmware 5.2, but there was no caption support prior to 5.2 so I did not test before upgrade.

4 Replies

  • Can you provide a stack trace of the crash? It sounds like you may have de-referenced the video player prior to calling Stop().
  • "TheEndless" wrote:
    Can you provide a stack trace of the crash? It sounds like you may have de-referenced the video player prior to calling Stop().


    Endless, there is no stack trace, just crashes in a bad way. And Roku restarts. Maybe if I could do a try catch.
  • "dbulli" wrote:
    "TheEndless" wrote:
    Can you provide a stack trace of the crash? It sounds like you may have de-referenced the video player prior to calling Stop().


    Endless, there is no stack trace, just crashes in a bad way. And Roku restarts. Maybe if I could do a try catch.

    You said "there is a crash of the app", which would suggest it returns to the homescreen. If that's the case, then it's almost certainly a BrightScript crash. You also indicated that "sometimes" it crashes the player in development mode. Is there no stack trace when it crashes the app in development mode, but doesn't crash the player?

    Also, if there's no stack trace, how do you know it's the call to Stop() that's causing it?
  • Can you dropbox me, via a PM, an example .zip that demonstrates this crash that I can test and attach to a bug report?

    Thanks,

    -Joel