The Instances closing after some time
Closed this issue · 3 comments
Desktop (please complete the following information):
- CTVBot version: Latest 0.5.1
- Windows version: Windows 10 Single Language
Describe the bug
Im opening more then 100 instances and after 30 min later instances automaticly closes with TWITCH Instance died: Error. Please see ctvbot.log message. My pc is enough to use more then 100 instances at the same time. Ryzen 7 3800x with 70 GB ram.
Screenshots
If applicable, add screenshots to help explain your problem.
logs
2023-05-16 23:57:39,523;INFO;11_50;Thread-3;service;restart_loop;Restarting oldest instance 56. Restart interval: 14.285714285714286
2023-05-16 23:57:40,504;INFO;5_49;Thread-117;manager;instance_status_report_callback;RESTARTING instance 56
2023-05-16 23:57:53,811;INFO;12_50;Thread-3;service;restart_loop;Restarting oldest instance 58. Restart interval: 14.285714285714286
2023-05-16 23:57:54,746;INFO;5_49;Thread-120;manager;instance_status_report_callback;RESTARTING instance 58
2023-05-16 23:57:55,920;INFO;14_49;Thread-117;manager;instance_status_report_callback;INITIALIZED instance 56
2023-05-16 23:58:00,929;INFO;8_49;Thread-117;manager;instance_status_report_callback;WATCHING instance 56
2023-05-16 23:58:01,006;INFO;10_49;Thread-116;manager;instance_status_report_callback;INITIALIZED instance 55
2023-05-16 23:58:06,023;INFO;6_49;Thread-116;manager;instance_status_report_callback;WATCHING instance 55
2023-05-16 23:58:08,098;INFO;6_49;Thread-3;service;restart_loop;Restarting oldest instance 59. Restart interval: 14.285714285714286
2023-05-16 23:58:12,846;INFO;10_49;Thread-121;manager;instance_status_report_callback;RESTARTING instance 59
2023-05-16 23:58:20,043;WARNING;8_49;Thread-120;sites;todo_after_spawn;Cookie consent banner not found/clicked.
2023-05-16 23:58:22,386;INFO;9_49;Thread-3;service;restart_loop;Restarting oldest instance 60. Restart interval: 14.285714285714286
2023-05-16 23:58:25,899;INFO;8_49;Thread-123;manager;instance_status_report_callback;RESTARTING instance 60
2023-05-16 23:58:39,662;WARNING;48_49;Thread-121;sites;todo_after_spawn;Cookie consent banner not found/clicked.
2023-05-16 23:58:39,666;INFO;0_49;Thread-3;service;restart_loop;Restarting oldest instance 61. Restart interval: 14.285714285714286
2023-05-16 23:58:41,773;INFO;49_49;Thread-124;manager;instance_status_report_callback;RESTARTING instance 61
2023-05-16 23:58:45,669;INFO;36_49;Thread-120;manager;instance_status_report_callback;INITIALIZED instance 58
2023-05-16 23:58:47,891;INFO;22_49;Thread-123;manager;instance_status_report_callback;INITIALIZED instance 60
Instances closing one by one at the time...
I just started with 100 Instances to the stream and 83 left after one hour later.
And its only 50% ram using. Can you add maybe auto opening instances when we selected 100 or something will be great
Quite the beefy machine you got there. Judging by the cpu/ram usage, your system is not much impressed by the workload 👍
So, you are saying that after 60 minutes you lost 17 out of your 100 viewers and wonder why they disappeared?
In the logs you posted, there is nothing of interest. As you mentioned, there are exceptions occurring:
Can you search "exception" in the log-file to and post the exceptions and its trace back?
My preliminary guess is network communication issues.
I added the feature that each connection is tried three times. This should reduce the number of instances that die due to temporary system workload or traffic spikes. Please download the latest version:
https://github.com/jlplenio/crude-twitch-viewer-bot/releases/latest
Reopen if the problem persists.