CocoaSplit crashes when I write displayed text file
gobzer opened this issue · 3 comments
gobzer commented
Hi,
CocoaSplit 2.1.12 crashes when displaying contents of a file being rewritten by an external process.
To reproduce:
- make file sample.txt write some text to it.
- Open CocoaSplit and add text file source. Source the text from sample.txt
- Run this script:
python2
cnt = 0
while True:
cnt = cnt + 1
f = open("sample.txt", "w")
f.write(str(cnt))
f.close()
CocoaSplit 2.1.12 should crash.
Rewriting text files by an external process is useful either for chat or donations.
I tried to do the same on OBS, but it doesn't crash.
Attached crash report and console messages.
crash_write_to_file.txt
console_write_to_file.txt
gobzer commented
Yes. It's not crashing now. But sometimes it skips states.
For example. I count to infinity with a timed interval. On live view the the source sometimes becomes blank. Skips number or two:
import time
cnt = 0
while True:
time.sleep(1)
cnt = cnt + 1
f = open("sample.txt", "w")
f.write(str(cnt))
f.close()