Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segment written error: invalid argument - endless loop? #68

Open
PixelByte1 opened this issue Aug 22, 2024 · 2 comments
Open

segment written error: invalid argument - endless loop? #68

PixelByte1 opened this issue Aug 22, 2024 · 2 comments

Comments

@PixelByte1
Copy link

Hey,

At some point the programm bahaves strange (I can't explain it from the log) and ends in an endless loop with the "segment written error: invalid argument". Then, at some point, the programm crashes without an error (maybe because of the heavy output, my log file has around 470M lines because of the endless loop). I saw this behaviour the first time, maybe it's related to the fix for #66. Here's a slightly adjusted log where the problem appears (I deleted the "channel offline" messages from other channels for better reading).

[2024-08-22 03:22:51] [INFO] [xxx/] segment #4482 written
[2024-08-22 03:22:51] [INFO] [xxx/] segment #4483 written
[2024-08-22 03:22:51] [INFO] [xxx/] segment #4484 written
[2024-08-22 03:22:53] [ERROR] [xxx/] segment #4672 request error, ignored: received status code 404
[2024-08-22 03:22:59] [ERROR] [xxx/] segment #4675 request error, ignored: received status code 404
[2024-08-22 03:23:12] [WARN] [xxx/] segment #4485 not found in buffer, skipped
[2024-08-22 03:23:12] [INFO] [xxx/] segment #4486 written
[2024-08-22 03:23:12] [INFO] [xxx/] segment #4487 written
[2024-08-22 03:23:12] [WARN] [xxx/] segment #4488 not found in buffer, skipped
[2024-08-22 03:23:12] [INFO] [xxx/] segment #4489 written
[2024-08-22 03:23:12] [INFO] [xxx/] segment #4490 written
[2024-08-22 03:23:33] [WARN] [xxx/] segment #4491 not found in buffer, skipped
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4492 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4493 written
[2024-08-22 03:23:33] [WARN] [xxx/] segment #4494 not found in buffer, skipped
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4495 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4496 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4497 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4498 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4499 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4500 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4501 written
[2024-08-22 03:23:33] [INFO] [xxx/] segment #4502 written
[2024-08-22 03:23:39] [ERROR] [xxx/] segment #4695 request error, ignored: received status code 404
[2024-08-22 03:23:45] [ERROR] [xxx/] segment #4698 request error, ignored: received status code 404
[2024-08-22 03:23:48] [ERROR] [xxx/] segment list error, will try again [0/10]: ticket/private stream?
[2024-08-22 03:23:51] [ERROR] [xxx/] segment list error, will try again [1/10]: ticket/private stream?
[2024-08-22 03:23:54] [WARN] [xxx/] segment #4503 not found in buffer, skipped
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4504 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4505 written
[2024-08-22 03:23:54] [ERROR] [xxx/] segment list error, will try again [2/10]: ticket/private stream?
[2024-08-22 03:23:54] [WARN] [xxx/] segment #4506 not found in buffer, skipped
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4507 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4508 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4509 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4510 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4511 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4512 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4513 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4514 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4515 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4516 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4517 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4518 written
[2024-08-22 03:23:54] [INFO] [xxx/] segment #4519 written
[2024-08-22 03:23:57] [ERROR] [xxx/] segment list error, will try again [3/10]: ticket/private stream?
[2024-08-22 03:24:00] [ERROR] [xxx/] segment list error, will try again [4/10]: ticket/private stream?
[2024-08-22 03:24:03] [ERROR] [xxx/] segment list error, will try again [5/10]: ticket/private stream?
[2024-08-22 03:24:06] [ERROR] [xxx/] segment list error, will try again [6/10]: ticket/private stream?
[2024-08-22 03:24:09] [ERROR] [xxx/] segment list error, will try again [7/10]: ticket/private stream?
[2024-08-22 03:24:12] [ERROR] [xxx/] segment list error, will try again [8/10]: ticket/private stream?
[2024-08-22 03:24:15] [WARN] [xxx/] segment #4520 not found in buffer, skipped
[2024-08-22 03:24:15] [INFO] [xxx/] segment #4521 written
[2024-08-22 03:24:15] [INFO] [xxx/] segment #4522 written
[2024-08-22 03:24:15] [WARN] [xxx/] segment #4523 not found in buffer, skipped
[2024-08-22 03:24:15] [INFO] [xxx/] segment #4524 written
[2024-08-22 03:24:15] [INFO] [xxx/] segment #4525 written
[2024-08-22 03:24:15] [INFO] [xxx/] segment #4526 written
[2024-08-22 03:24:15] [INFO] [xxx/] segment #4527 written
[2024-08-22 03:24:16] [ERROR] [xxx/] segment list error, will try again [9/10]: ticket/private stream?
[2024-08-22 03:24:19] [ERROR] [xxx/] segment list error, will try again [10/10]: ticket/private stream?
[2024-08-22 03:24:22] [INFO] [xxx/] channel is offline, check again 1 min(s) later
[2024-08-22 03:24:36] [WARN] [xxx/] segment #4528 not found in buffer, skipped
[2024-08-22 03:24:36] [ERROR] [xxx/] segment #4529 written error: invalid argument
[2024-08-22 03:24:36] [ERROR] [xxx/] segment #4529 written error: invalid argument
[2024-08-22 03:24:36] [ERROR] [xxx/] segment #4529 written error: invalid argument
[endless loop segment #4529 written error]
[program crash]

@YamiOdymel
Copy link
Member

Could you provide the country you live in, and do you use a VPN?

It might be a networking issue where the program fetched an empty segment and tried to write it to the file.

@PixelByte1
Copy link
Author

I am from Germany and currently I don‘t use a VPN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants