SuperGouge / ChanThreadWatch

Fork of the original discontinued ChanThreadWatch.
90 stars 13 forks source link

ctw crash/hang during heavy i/o activity #39

Open fJo81VzbYs2laS9o opened 9 years ago

fJo81VzbYs2laS9o commented 9 years ago

So I've noticed ctw more inclined to hang and then crash during heavy I/o activity and when I use other apps with ctw running. Is there any way to remedy this? And any news on the next release?

SuperGouge commented 9 years ago

It's really hard to find the cause of these kind of issues because they're so reliant on the ecosystem you're running the program on. As a matter of fact, when I run CTW I usually have a lot of threads being watched concurrently, with other programs downloading or simply running and I've never had CTW crash on me. Can you check if an error message was generated in the log file?

As for the next release, it will be whenever I add or fix more stuff. I don't like releasing a new version every time I add or fix anything (except for critical bugs) and those changes have to be tested which takes some time considering I don't use CTW on a daily basis. However, I always commit any significant change I make to this repository so if you'd really like to live on the edge you can always clone the repository and compile it yourself.

snorta commented 9 years ago

I think the crashing issue might be a result of auto-following an archived thread. An auto-followed archived thread stalls when trying to download the new archived thread. There definitely needs to be a fix for this

SuperGouge commented 9 years ago

Are you sure this is related to this issue? Does this causes a crash/freeze for you? Auto-following an archived thread works fine for me. If this is unrelated you can open a different issue providing more details and I'll look into it.

snorta commented 9 years ago

Most of my threads stall when I have a thread on auto-follow, which then gets archived. It just stalls, saying its downloading, but nothing happens and cpu usage spikes. Every stalled thread was archived by 4chan.

SuperGouge commented 9 years ago

If this does not freeze or crash the whole program, please open another issue. Also, provide any way to reproduce this behavior (links to those threads, etc.) 100% of the time if possible.

snorta commented 9 years ago

I can only suggest that you try following pic heavy camwhore threads on /soc/. CTW behaves oddly when autofollowing multiple threads on this board. Maybe the archived threads are written with non standard code causing conflicts with CTW?

hardliner5000 commented 7 years ago

How can I solve the freeze 'hang' thread - constant showing "downloading" without any loaded files issue? I can't even stop/start the thread. Or even restarting CTW won't solve it. I always delete the url in the thread.txt but that deletes other threads for some reason. How can I delete specific url of the hang thread in the threas.txt WITHOUT affecting the rest? Hopefully my description of this bug was clear enough to understand my concern!

Thanks a lot for your great effort.

SuperGouge commented 7 years ago

If you are using the latest version, each thread in the threads.txt is described by 13 lines. So if you want to remove a thread manually from this file, you have to remove the line containing its URL and the following 12 lines.

As for your problem, I don't think it is related to this issue. It could very well be a network-related issue. Try removing the thread manually as you suggested and adding it again. If the problem persists, please feel free to open another issue.

hardliner5000 commented 7 years ago

Thanks But by removing the URL and the 12 related lines manually from threads.txt it removes multiple threads as well for some reason. How can I delete a thread URL without messing other threads?

SuperGouge commented 7 years ago

It shouldn't interfere with other threads, even when they are linked to each other. Is there anything in the log file?