Forum Discussion

abhishek's avatar
abhishek
Channel Surfer
8 years ago

Execution Timeout

What is the reason for Execution Timeout error?

The app works fine on Roku 3 and some other models as well, but in some models, the same app provides the Execution Timeout Error?

How can we avoid the error? 
  • destruk's avatar
    destruk
    Streaming Star
    If your routine is causing a timeout, run it in a task thread instead of the render thread.
  • abhishek's avatar
    abhishek
    Channel Surfer
    "destruk" wrote:
    If your routine is causing a timeout, run it in a task thread instead of the render thread.

    I don't have any long running task in render thread.  It's either in main thread or in Task thread only. That's why it is running on most of Roku Device models. Having the issue only in few.
  • destruk's avatar
    destruk
    Streaming Star
    You will only experience a timeout if it is running in a render thread.  Timeouts are not active for the main thread or task thread.  So you may want to re-examine your code.  If the device runs slower (some models) then it will take longer to execute your routine and cause a timeout.  If you are accessing a server and the server takes longer than 30 seconds to respond, then you would get a url transfer timeout, not an execution timeout.  But that is the only exception.
  • abhishek's avatar
    abhishek
    Channel Surfer
    "destruk" wrote:
    You will only experience a timeout if it is running in a render thread.  Timeouts are not active for the main thread or task thread.  So you may want to re-examine your code.  If the device runs slower (some models) then it will take longer to execute your routine and cause a timeout.  If you are accessing a server and the server takes longer than 30 seconds to respond, then you would get a url transfer timeout, not an execution timeout.  But that is the only exception.

    Thanks for your reply and your point is valid as well. but the issue is Roku made it so difficult to debug the issue and find the piece of code which is causing the issue. Anyways will look into it.