Closed InsaneSlay closed 2 years ago
Hello,
Do you experience the same issue if you upload the files one by one without using ParallelForEachAsync? What is the average size of a mp4 file (so I can try to reproduce your scenario)?
Thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description: uploading multiple files within folder (containing images and videos)
Actual Behavior: uploading photos work overall and relatively fast. however when getting to the videos, they will upload and then progressively slow down until it just stops uploading and freezes.
Code snippet: (using AsyncEnumerator in order to easily upload multiple items at once asynchronously)
fileList = list of files in directory itemFolder = parent, does switch between 2 folders called "photos" and "videos" due to 2 different file types being uploading in dedicated folders
await fileList.ParallelForEachAsync(async v => { try { await client.UploadFileAsync(v, itemFolder); } catch { Console.WriteLine("wow there was an error"); } < no exception is ever called. it just stops uploading }, maxDegreeOfParallelism: config.upthreads);
Here's a little log that I have of timestamps when an action is done. on the last video i waited up to 30 minutes and didnt get any sign of it uploading, even checked how much upload data is being used on my pc, which was sitting at 0kb/s. Also I checked the state of the video to see if it was corrupted and it wasn't nothing was wrong and all videos were viewable.
Yes the videos are all different sizes, however, there still should be a sign of them uploading rather than no data being transferred.
[2021-12-30 06:21:26.529][/MegaClient] -> Uploaded File: videos\0gmchroiebhbw3ho1p22n.mp4 [2021-12-30 06:21:40.111][/MegaClient] -> Uploaded File: videos\0gmfm2p7op8685rvppqmx.mp4 [2021-12-30 06:22:03.251][/MegaClient] -> Uploaded File: videos\0gmfmmgztwb7tzf4qa9n3.mp4 [2021-12-30 06:22:14.652][/MegaClient] -> Uploaded File: videos\0gmg8u752l5ls8eoju2b3.mp4 [2021-12-30 06:24:20.681][/MegaClient] -> Uploaded File: videos\0gmgeywlo0kuykibp2sjc.mp4 [2021-12-30 06:24:28.189][/MegaClient] -> Uploaded File: videos\0gmgf0zy3tb0e33loyxrh.mp4 [2021-12-30 06:24:38.884][/MegaClient] -> Uploaded File: videos\0gmgf121c4qrh940yritc.mp4 [2021-12-30 06:26:51.936][/MegaClient] -> Uploaded File: videos\0gmkvd43k7bomydne5dyd.mp4 [2021-12-30 06:27:27.383][/MegaClient] -> Uploaded File: videos\0gn5no6uykjn9mnyt3jjl.mp4
MegaApiClient Version: 1.10.2