Forum Discussion

rockstar1's avatar
rockstar1
Visitor
9 years ago

Tool to capture crashes in Roku

Is there any tool to analyze crashes in Roku, like Crashlytics or test fairy?

3 Replies

  • No.
    The Co. "has the technology" - they collect the data of field crashes but they just sit on it, as far as outside-dev channels are concerned.
  • I just noticed GetLastRunRuntimeError() and GetLastRunCompileError(), but unfortunately GetLastRunRuntimeError() gives only error code, is there any pre defined list of such error codes to easily identify the type of error. Also, once the error occur, now whenever I run my code, it always show me the same error, is there a way to clear this record once the data has been captured from this function.

    Regarding GetLastRunCompileError(), this function never returns anything. I am looking to send crash logs to my server whenever roku app crashes. Is there any different approach I should follow?
  • "rockstar1" wrote:
    I just noticed GetLastRunRuntimeError() and GetLastRunCompileError(), but unfortunately GetLastRunRuntimeError() gives only error code, is there any pre defined list of such error codes to easily identify the type of error.
    Unfortunately the codes are undocumented in TFM.
    But try extracting them with a call from this dusty corner https://sdkdocs.roku.com/display/sdkdoc/Component+Architecture#ComponentArchitecture-bslBrightScriptErrorCodes()asObject

    Reminds me much "The Hitchhiker's Guide to the Galaxy": viewtopic.php?f=34&t=71686#p448091

    Also, once the error occur, now whenever I run my code, it always show me the same error, is there a way to clear this record once the data has been captured from this function.

    Regarding GetLastRunCompileError(), this function never returns anything.
    RokuCo dis-courages, dis-supports and dis-recommends using these, see viewtopic.php?f=34&t=95690#p535128

    I am looking to send crash logs to my server whenever roku app crashes. Is there any different approach I should follow?
    ... but no, there is no other way 8-)