MrLlama
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2021
09:20 AM
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.
2 REPLIES 2

RokuPam
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2021
03:55 PM
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?
MrLlama
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2021
05:28 PM
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