Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
abhishek
Channel Surfer

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? 
0 Kudos
4 REPLIES 4
destruk
Streaming Star

Re: Execution Timeout

If your routine is causing a timeout, run it in a task thread instead of the render thread.
0 Kudos
abhishek
Channel Surfer

Re: Execution Timeout

"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.
0 Kudos
destruk
Streaming Star

Re: Execution Timeout

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.
0 Kudos
abhishek
Channel Surfer

Re: Execution Timeout

"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.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.