[Bug 50674] New: Hearthstone Deck Tracker won't download images

WineHQ Bugzilla wine-bugs at winehq.org
Mon Feb 15 22:28:47 CST 2021


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 at winehq.org
          Reporter: alaharon123 at 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.13.25/Hearthstone.Deck.Tracker-v1.13.25.zip
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/Hearthstone%20Deck%20Tracker/Utility/Assets/AssetDownloader.cs
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.downloadfiletaskasync?view=net-5.0#System_Net_WebClient_DownloadFileTaskAsync_System_Uri_System_String_
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/Hearthstone%20Deck%20Tracker/Utility/Assets/AssetDownloaders.cs
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

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list