tdl icon indicating copy to clipboard operation
tdl copied to clipboard

[Bug] When telegram downloads a 4000M large file, sometimes the progress is stuck at 100%

Open mhdy2233 opened this issue 11 months ago • 9 comments

Describe the bug

When telegram downloads a 4000M large file, sometimes the progress is stuck at 100%

Restart download by 'restart' flag
All files will be downloaded to './downloads' dir
CPU: 2.00% Memory: 32.83 MB Goroutines: 40
『秋实红叶』 硕果累累(1958124156):60 ->~ ... 100.0% [#######.] [3.91 GB in 23m6.523s; ~ETA: 14s; 2.88 MB/s]
[################################################.] [23m7s; 2.88 MB/s]

After a long period of time, the program will report an error and end running, unless it is terminated manually.

To Reproduce

tdl dl -u https://t.me/1958124156/60 --template {{.FileName}} -d ./downloads --restart

Restart download by 'restart' flag
All files will be downloaded to './downloads' dir
CPU: 2.00% Memory: 32.83 MB Goroutines: 40
『秋实红叶』 硕果累累(1958124156):60 ->~ ... 100.0% [#######.] [3.91 GB in 23m6.523s; ~ETA: 14s; 2.88 MB/s]
[################################################.] [23m7s; 2.88 MB/s]

Expected behavior

At this point the file has finished downloading and it should not be stuck at 100%

Version

Version: 0.18.5 Commit: 2321013 Date: 2025-01-25T11:11:37Z

go1.21.13 linux/amd64

Which OS are you running tdl on?

Linux

Additional context

No response

mhdy2233 avatar Feb 14 '25 03:02 mhdy2233

hey can you help me out with setting up? im a newbie

titularmonarch avatar Feb 22 '25 16:02 titularmonarch

嘿,您能帮我设置吗?我是新手

I'd love to help you, but I don't know much about it so I probably can't help you much.

mhdy2233 avatar Feb 22 '25 17:02 mhdy2233

maybe you could download some files for me? 😅

titularmonarch avatar Feb 22 '25 17:02 titularmonarch

maybe you could download some files for me? 😅

A small amount is ok

mhdy2233 avatar Feb 22 '25 17:02 mhdy2233

Whats your instagram? 😁

titularmonarch avatar Feb 22 '25 18:02 titularmonarch

Whats your instagram? 😁

I don't use instagram, I only use telegram and discord

mhdy2233 avatar Feb 22 '25 18:02 mhdy2233

sharpie0426 on discord

titularmonarch avatar Feb 22 '25 18:02 titularmonarch

sharpie0426 on discord

I have sent a friend request to sharpie0426

mhdy2233 avatar Feb 22 '25 18:02 mhdy2233

Same as #611

Reducing Threads (-t 2) decreases the chances of happening but it can still happen.

AKL55 avatar Mar 07 '25 04:03 AKL55