Roku Developer Program

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

BUG: calling socket.accept() from BrightScript Debugger causes device to restart

Attempting to call `.accept()` on a roStreamSocket from the BrightScript Debugger command line causes the entire device to hang and reboot:

Brightscript Debugger> server = CreateObject("roStreamSocket")

Brightscript Debugger> addr = CreateObject("roSocketAddress")

Brightscript Debugger> addr.SetPort(9999)

Brightscript Debugger> server.setaddress(addr)

Brightscript Debugger> ? server.listen(1)
true

Brightscript Debugger> conn = server.accept()

Brightscript Debugger> Connection closed by foreign host.

Again, this doesn't just cause the debugger to disconnect, it causes the entire device to lock up and reboot.  This issue only occurs when .accept() is called in interactive mode.

0 Kudos
2 Replies
RokuPam
Roku Employee
Roku Employee

Re: BUG: calling socket.accept() from BrightScript Debugger causes device to restart

Hi @MrLlama,

This sounds like a bug we definitely want to investigate further. Can you provide the firmware and device you're seeing this issue on?

0 Kudos
MrLlama
Level 7

Re: BUG: calling socket.accept() from BrightScript Debugger causes device to restart

Tested on a 50" and 55" TCL TV, both running 9.4.0/4190

0 Kudos