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: 
MrLlama
Channel Surfer

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 2
RokuPam
Streaming Star

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
Channel Surfer

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