ratish
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017
03:44 AM
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?
Am i doing it wrong?
5 REPLIES 5
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017
09:59 AM
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.
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017
10:52 AM
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
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017
12:07 PM
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.
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2017
12:22 PM
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
dan_shneider
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2017
11:53 PM
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.