Post #1608433
2026-03-02 03:42 UTC
@kalleboo Is anything you are doing in this loop mutating the number of lines?
Replies (1)
-
@kalleboo@bitbang.social 2026-03-02 03:51
@_the_cloud Nope, nothing in linesResp is being mutated. Basically what this code does is read everything out of linesResp and send it off as individual events to the GUI code. It's a bit funky since it's a packed array since the string of each line is a different length. My current leading theories are either the packet gets truncated on this machine (ATP fragmentation?), or I have an off by one error sometimes Here's the abbreviated code https://gist.github.com/kalleboo/6f1e9e9f0684069c7e436f0c5c6d7c4d