https://bugs.winehq.org/show_bug.cgi?id=50674
Bug ID: 50674 Summary: Hearthstone Deck Tracker won't download images Product: Wine Version: 6.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: alaharon123@gmail.com Distribution: Debian
Created attachment 69389 --> https://bugs.winehq.org/attachment.cgi?id=69389 wine log
Distribution: Debian 11 Bullseye Architecture: amd64 Wine setup: I set up a new wine prefix to have the least changes necessary to reproduce this bug: 1. create new 32-bit prefix 2. use winetricks to install dotnet472 in it 3. use winetricks to install corefonts in it 4. run regedit in it and navigate to/create HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics and create DisableHWAcceleration with the value 1 (DWORD Value) 5. download Hearthstone Deck Tracker at https://github.com/HearthSim/Hearthstone-Deck-Tracker/releases/download/v1.1... 6. extract it to <wine prefix>/drive_c/Program Files 7. from your wine prefix run <wine prefix>/drive_c/Program Files/Hearthstone Deck Tracker.exe
To easily reproduce the bug, copy a deck code (example one: ###Weapon Warrior AAEBAQcGyAP6DoUX3q0DwLkDqtIDDLAC/wPuBucH+bwC18oCm84C9s8C48wDi9AD99QDgeQDAA==), open Hearthstone Deck Tracker, click import > from deck code > save only > save, and hover over one of the cards. You will see an image of a blank card that says loading, but doesn't load.
Since Hearthstone Deck Tracker is an open source program, I did some sleuthing and found out a bunch of things that should be helpful: 1. go to <wine prefix>/drive_c/users/<user>/Application Data/Logs/hdt_log.txt and you will see the error code `Unable to download <cardId>.png: The underlying connection was closed: An unexpected error occurred on a send.` 2. the file in the source code that starts this error is https://github.com/HearthSim/Hearthstone-Deck-Tracker/blob/master/Hearthston... It creates a WebClient https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient and runs DownloadFileTaskAsync(Uri, String) https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadfil... 3. It gets far enough in the process to create the blank files in <wine prefix>/drive_c/users/<user>/Application Data/HearthstoneDeckTracker/Images/CardImages/_inProgress, but it fails when downloading the actual images. I'm not sure if creating those files is part of DownloadFileTaskAsync(Uri, String) or if that's done earlier in the code. 4. The code with the information on where to download from is at https://github.com/HearthSim/Hearthstone-Deck-Tracker/blob/master/Hearthston... and the documentation on how to use the site that it downloads cards from is at https://hearthstonejson.com/docs/images.html
When I look at the WINE log, the lines that stand out to me are the following, but obviously I'm attaching the whole log. I'm also attaching the HDT log in case that's useful. 0128:fixme:secur32:schannel_get_cipher_algid unknown algorithm 23 0128:fixme:secur32:schannel_get_mac_algid unknown algorithm 200, cipher 23 0128:fixme:secur32:schannel_get_cipher_algid unknown algorithm 23 0128:fixme:secur32:schannel_get_mac_algid unknown algorithm 200, cipher 23 0120:fixme:wincodecs:BitmapScaler_Initialize unsupported mode 3 0128:fixme:crypt:CNG_VerifySignature Failed to verify signature: c000a000
https://bugs.winehq.org/show_bug.cgi?id=50674
alaharon123@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/HearthSi | |m/Hearthstone-Deck-Tracker/ | |releases/tag/v1.13.25 Keywords| |dotnet, download, source
https://bugs.winehq.org/show_bug.cgi?id=50674
--- Comment #1 from alaharon123@gmail.com --- Created attachment 69390 --> https://bugs.winehq.org/attachment.cgi?id=69390 hdt log