AchetaGames / Epic-Asset-Manager

A frontend to Assets purchased on Epic Games Store
https://flathub.org/apps/details/io.github.achetagames.epic_asset_manager
MIT License
363 stars 21 forks source link

Internet goes out with every download #267

Closed ImDevinC closed 1 day ago

ImDevinC commented 2 weeks ago

Describe the bug I can start downloading assets without issue, but within ~30 seconds my internet stops working with every download. It will eventually start working again within a few minutes if I close the asset manager.

To Reproduce Steps to reproduce the behavior:

  1. Login to Epic Asset Manager
  2. Find any content in the marketplace that you have in your account
  3. Choose either "Download" or "Add to Project"
  4. Wait ~30 seconds, at which point the internet stops working for both Epic Asset Manager (download hangs) and other applications on my machine

Expected behavior Internet should not stop working

Desktop (please complete the following information):

Debug logs

run --user --env=RUST_LOG=debug io.github.achetagames.epic_asset_manager                                                                                                                                 
<epic_asset_manager> - [DEBUG] - /app/share/epic_asset_manager                                                                                                                                                       
<epic_asset_manager> - [DEBUG] -                                                                                                                                                                                     
<epic_asset_manager> - [DEBUG] - 3.8.6                                                                                                                                                                               
<epic_asset_manager::application> - [INFO] - Epic Asset Manager (io.github.achetagames.epic_asset_manager)                                                                                                           
<epic_asset_manager::application> - [INFO] - Version: 3.8.6 ()                                                                                                                                                       
<epic_asset_manager::application> - [INFO] - Datadir: /app/share/epic_asset_manager                                                                                                                                  
<epic_asset_manager::application::imp> - [DEBUG] - GtkApplication<EpicAssetManager>::startup                                                                                                                         
<epic_asset_manager::tools::epic_web> - [ERROR] - Error parsing json: reqwest::Error { kind: Decode, source: Error("expected value", line: 1, column: 1) }                                                           
<epic_asset_manager::tools::epic_web> - [ERROR] - Failed to query EULA status: EulaQuery/hasAccountAccepted: Request failed with status code 401 with response: {"errorCode":"errors.com.epicgames.common.authenticat
ion.authentication_failed","errorMessage":"Authentication failed for /api/public/agreements/unreal_engine/identities/b12afdb85fef4abc9d8a92c15b769477","messageVars":["/api/public/agreements/unreal_engine/identitie
s/b12afdb85fef4abc9d8a92c15b769477"],"numericErrorCode":1032,"originatingService":"com.epicgames.eulatracking.public","intent":"prod","errorStatus":401}                                                             
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic                                                                                                                                                 
<egs_api::api::types::download_manifest> - [ERROR] - No header magic  
<epic_asset_manager::ui::widgets::download_manager::asset> - [ERROR] - Failed to start chunk download, trying again later: error sending request for url (https://download.epicgames.com/Builds/Rocket/Automated/Anci
entG02ff5dddb8ffV1/CloudDir/ChunksV3/95/3856DC2135A0C0E5_5AC5D8314EA536D53A8507AC14F92F63.chunk): error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution     
<epic_asset_manager::ui::widgets::download_manager::asset> - [ERROR] - Failed to start chunk download, trying again later: error sending request for url (https://fastly-download.epicgames.com/Builds/Rocket/Automat
ed/AncientG02ff5dddb8ffV1/CloudDir/ChunksV3/72/E48727E27E7E96A6_D52808DA4F5955B3F96A83B19F31547F.chunk): error trying to connect: dns error: failed to lookup address information: Temporary failure in name resoluti
on
....

This message repeats until I Ctrl + C

ImDevinC commented 2 weeks ago

Some anecdotal evidence I'll continue testing, but I disabled my wireless adapter (I don't use wifi on this machine) and downloads seem to be working much more reliably now.

I realized that systemctl status NetworkManager showed the following:

Jun 16 23:45:46 archlinux NetworkManager[612]: <info>  [1718606746.9674] device (wlan0): set-hw-addr: set MAC address to 8E:B4:B1:54:05:49 (scanning)
Jun 16 23:45:47 archlinux NetworkManager[612]: <info>  [1718606747.0040] device (wlan0): supplicant interface state: inactive -> disconnected
Jun 16 23:45:47 archlinux NetworkManager[612]: <info>  [1718606747.0040] device (p2p-dev-wlan0): supplicant management interface state: inactive -> disconnected
Jun 16 23:45:47 archlinux NetworkManager[612]: <info>  [1718606747.0078] device (wlan0): supplicant interface state: disconnected -> inactive
Jun 16 23:45:47 archlinux NetworkManager[612]: <info>  [1718606747.0078] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> inactive
Jun 16 23:52:39 archlinux NetworkManager[612]: <info>  [1718607159.9510] device (wlan0): set-hw-addr: set MAC address to D6:29:71:62:A6:E8 (scanning)
Jun 16 23:55:36 archlinux NetworkManager[612]: <info>  [1718607336.9659] manager: NetworkManager state is now CONNECTED_SITE

So I disable wlan0 and I haven't had issues since.

aknarts commented 2 weeks ago

That is a strange thing to have happened, I did use this with dual nic machine before and had no issues. I need to expose the amount of download threads as a config option, that might help mitigate or at least investigate the issue.

ImDevinC commented 1 day ago

I was wrong, this is still happening, but is clearly an issue with my machine so I'll close this.