Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ratish
Level 7

calling task.control = "STOP" reboots the box

Wanted to stop a task which i started so that i can reuse the task to spawn similar task with new set of data. But calling task.control = "STOP" reboots the roku.
Am i doing it wrong?
0 Kudos
5 Replies
belltown
Level 7

Re: calling task.control = "STOP" reboots the box

Define your own interface field for the Task node. Observe the field from within the Task, and exit the Task's main loop when the field is set.
https://github.com/belltown/
0 Kudos
EnTerr
Level 9

Re: calling task.control = "STOP" reboots the box

"belltown" wrote:
Define your own interface field for the Task node. Observe the field from within the Task, and exit the Task's main loop when the field is set.

That's a crutch... but in principle .control = "stop" should work, no? Definitely shouldn't be a YAWRR
0 Kudos
belltown
Level 7

Re: calling task.control = "STOP" reboots the box

The only thing I've managed to get from reading https://sdkdocs.roku.com/display/sdkdoc/Task is a big headache. I have no clue what they're talking about. I've managed to get Tasks working to do what I need. I have about 5 or 6 Tasks running quite happily communicating with each other and the renderer thread, some of them using the "multiple times for several identical asynchronous operations" use case, and some of them using the "continuous server" use case. I never "STOP" any of my tasks, however. I've tried, just to see what happens, and in my case it hangs the renderer thread, requiring a device re-boot.
https://github.com/belltown/
0 Kudos
EnTerr
Level 9

Re: calling task.control = "STOP" reboots the box

"belltown" wrote:
... "STOP" any of my tasks, however. I've tried, just to see what happens, and in my case it hangs the renderer thread, requiring a device re-boot.

Thanks.
I haven't tried STOP myself but on other occasions have experienced the RSG "wedged" issue that requires reboot
0 Kudos
dan_shneider
Level 7

Re: calling task.control = "STOP" reboots the box

"belltown" wrote:
The only thing I've managed to get from reading https://sdkdocs.roku.com/display/sdkdoc/Task is a big headache. I have no clue what they're talking about. I've managed to get Tasks working to do what I need. I have about 5 or 6 Tasks running quite happily communicating with each other and the renderer thread, some of them using the "multiple times for several identical asynchronous operations" use case, and some of them using the "continuous server" use case. I never "STOP" any of my tasks, however. I've tried, just to see what happens, and in my case it hangs the renderer thread, requiring a device re-boot.

Hey.
Could you please share how did you implement "continuous server" mode? I need this functionality as well.
0 Kudos