[Wine] v2.97a: Unexpected Error on Start

Hi and I'm using Mp3tag via wine on Manjaro Linux. Every time I open Mp3tag, an "unexpected error" dialog appears around 10 seconds later and ask if I want a diagnostic file. Mp3tag seems to work fine if I ignore the dialog or click "yes" to let it dump, but it always crashes if I click "no".

Wine version: 4.12.1-1
Mp3tag version: v2.97a (also tested on several v2.8x and v2.7x versions; same behavior)

How to reproduce:

  1. Open Mp3tag: wine '~/.wine/drive_c/Program Files (x86)/Mp3tag/Mp3tag.exe'
  2. Do nothing
  3. Unexpected error dialogue appears ~10s later

Diagnostic file:
Mp3tag.dmp (36.0 KB)

Backtrace by winedbg after Mp3tag crashed:

Unhandled exception: page fault on read access to 0x00000008 in 32-bit code (0x7e1b2c17).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7e1b2c17 ESP:0245fd54 EBP:0245fd78 EFLAGS:00010206(  R- --  I   - -P- )
 EAX:00000000 EBX:00000000 ECX:0245fd80 EDX:0245fd88
 ESI:012b0818 EDI:000001bb
Stack dump:
0x0245fd54:  0000ffff 00001006 0245fd88 00000004
0x0245fd64:  012b0818 0245fe48 7e1be660 0115b220
0x0245fd74:  0115b220 0245fe48 7e1be685 00000000
0x0245fd84:  00000000 00002710 7e1bebec 00000028
0x0245fd94:  00000027 81fec000 00000000 012b0538
0x0245fda4:  0000012d 00000001 00000000 00110060
=>0 0x7e1b2c17 WinHttpAddRequestHeaders+0xffffffff() in winhttp (0x0245fd78)
  1 0x7e1be685 WinHttpQueryAuthSchemes+0x2de4() in winhttp (0x0245fe48)
  2 0x7e1b587a WinHttpAddRequestHeaders+0xffffffff() in winhttp (0x0245fe98)
  3 0x7bcbaeef NtGetCurrentProcessorNumber+0x1f2e() in ntdll (0x0245ff38)
  4 0x7bcab850 call_thread_func_wrapper+0xb() in ntdll (0x0245ff4c)
  5 0x7bcaed7e RtlCaptureStackBackTrace+0x1ed() in ntdll (0x0245ffdc)
  6 0x7bcab842 call_thread_exit_func+0x31() in ntdll (0x0245ffec)
0x7e1b2c17 WinHttpAddRequestHeaders+0xffffffff in winhttp: pushl	0x8(%eax)
Module	Address			Debug info	Name (125 modules)
PE	  350000-  371000	Deferred        tak_deco_lib
PE	  400000-  bbd000	Deferred        mp3tag
ELF	7b400000-7b844000	Deferred        kernel32<elf>
  \-PE	7b430000-7b844000	\               kernel32
ELF	7bc00000-7bd43000	Dwarf           ntdll<elf>
  \-PE	7bc30000-7bd43000	\               ntdll
ELF	7c000000-7c005000	Deferred        <wine-loader>
ELF	7c5af000-7c5b7000	Deferred        libxfixes.so.3
ELF	7c5b7000-7c5c4000	Deferred        libxcursor.so.1
ELF	7c5c4000-7c5d8000	Deferred        libxi.so.6
ELF	7c618000-7c6a5000	Deferred        setupapi<elf>
  \-PE	7c630000-7c6a5000	\               setupapi
ELF	7c6a5000-7c6d1000	Deferred        libxcb.so.1
ELF	7c6d1000-7c81e000	Deferred        libx11.so.6
ELF	7c81e000-7c834000	Deferred        libxext.so.6
ELF	7c837000-7c846000	Deferred        libxrandr.so.2
ELF	7c846000-7c854000	Deferred        libxrender.so.1
ELF	7c874000-7c92c000	Deferred        winex11<elf>
  \-PE	7c890000-7c92c000	\               winex11
ELF	7cb43000-7cb6f000	Deferred        libexpat.so.1
ELF	7cb6f000-7cbbb000	Deferred        libfontconfig.so.1
ELF	7cbbb000-7cc34000	Deferred        libpcre.so.1
ELF	7cc34000-7cd6c000	Deferred        libglib-2.0.so.0
ELF	7cd6c000-7ce73000	Deferred        libharfbuzz.so.0
ELF	7ce73000-7ce8d000	Deferred        libz.so.1
ELF	7ce8d000-7cecd000	Deferred        libpng16.so.16
ELF	7cecd000-7cfa2000	Deferred        libfreetype.so.6
ELF	7cfa3000-7cfaa000	Deferred        libxxf86vm.so.1
ELF	7cfaa000-7cfb2000	Deferred        libxdmcp.so.6
ELF	7cfb2000-7cfb7000	Deferred        libxau.so.6
ELF	7cfe2000-7d021000	Deferred        uxtheme<elf>
  \-PE	7cff0000-7d021000	\               uxtheme
ELF	7d021000-7da37000	Deferred        shell32<elf>
  \-PE	7d050000-7da37000	\               shell32
ELF	7da6b000-7da7d000	Deferred        libbz2.so.1.0
ELF	7da7d000-7dae0000	Deferred        oleacc<elf>
  \-PE	7da90000-7dae0000	\               oleacc
ELF	7dae0000-7db11000	Deferred        msacm32<elf>
  \-PE	7daf0000-7db11000	\               msacm32
ELF	7db11000-7dbdc000	Deferred        winmm<elf>
  \-PE	7db20000-7dbdc000	\               winmm
ELF	7dbdc000-7dc7d000	Deferred        gdiplus<elf>
  \-PE	7dc00000-7dc7d000	\               gdiplus
ELF	7dc7d000-7dd88000	Deferred        comdlg32<elf>
  \-PE	7dc90000-7dd88000	\               comdlg32
ELF	7dd88000-7ddc7000	Deferred        oledlg<elf>
  \-PE	7dd90000-7ddc7000	\               oledlg
ELF	7ddc7000-7ddee000	Deferred        imm32<elf>
  \-PE	7ddd0000-7ddee000	\               imm32
ELF	7ddee000-7de3d000	Deferred        usp10<elf>
  \-PE	7de00000-7de3d000	\               usp10
ELF	7de3d000-7dfa7000	Deferred        comctl32<elf>
  \-PE	7de70000-7dfa7000	\               comctl32
ELF	7dfa7000-7dffe000	Deferred        winspool<elf>
  \-PE	7dfb0000-7dffe000	\               winspool
ELF	7dffe000-7e03c000	Deferred        ws2_32<elf>
  \-PE	7e010000-7e03c000	\               ws2_32
ELF	7e03c000-7e178000	Deferred        oleaut32<elf>
  \-PE	7e070000-7e178000	\               oleaut32
ELF	7e178000-7e197000	Deferred        jsproxy<elf>
  \-PE	7e180000-7e197000	\               jsproxy
ELF	7e197000-7e1e9000	Dwarf           winhttp<elf>
  \-PE	7e1a0000-7e1e9000	\               winhttp
ELF	7e1e9000-7e284000	Deferred        rpcrt4<elf>
  \-PE	7e210000-7e284000	\               rpcrt4
ELF	7e284000-7e3f4000	Deferred        ole32<elf>
  \-PE	7e2c0000-7e3f4000	\               ole32
ELF	7e3f4000-7e4cf000	Deferred        msvcrt<elf>
  \-PE	7e420000-7e4cf000	\               msvcrt
ELF	7e4cf000-7e555000	Deferred        advapi32<elf>
  \-PE	7e4e0000-7e555000	\               advapi32
ELF	7e555000-7e6af000	Deferred        gdi32<elf>
  \-PE	7e580000-7e6af000	\               gdi32
ELF	7e6af000-7e8f1000	Deferred        user32<elf>
  \-PE	7e6e0000-7e8f1000	\               user32
ELF	7e8f1000-7e95a000	Deferred        shlwapi<elf>
  \-PE	7e900000-7e95a000	\               shlwapi
ELF	7ee5a000-7eede000	Deferred        kernelbase<elf>
  \-PE	7ee70000-7eede000	\               kernelbase
ELF	7eede000-7eef3000	Deferred        libnss_files.so.2
ELF	7eef3000-7efc0000	Deferred        libm.so.6
ELF	7efc1000-7efe9000	Deferred        shcore<elf>
  \-PE	7efd0000-7efe9000	\               shcore
ELF	7efe9000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f410b000-f4195000	Deferred        dbghelp<elf>
  \-PE	f4120000-f4195000	\               dbghelp
ELF	f4195000-f41c2000	Deferred        iphlpapi<elf>
  \-PE	f41a0000-f41c2000	\               iphlpapi
ELF	f41c2000-f4206000	Deferred        netapi32<elf>
  \-PE	f41d0000-f4206000	\               netapi32
ELF	f4206000-f4300000	Deferred        crypt32<elf>
  \-PE	f4220000-f4300000	\               crypt32
ELF	f451b000-f4563000	Deferred        secur32<elf>
  \-PE	f4530000-f4563000	\               secur32
ELF	f4563000-f45b1000	Deferred        libnss_resolve.so.2
ELF	f45b1000-f4600000	Deferred        libnss_mymachines.so.2
ELF	f4720000-f4739000	Deferred        libresolv.so.2
ELF	f4739000-f4756000	Deferred        libgcc_s.so.1
ELF	f476a000-f4772000	Deferred        libnss_dns.so.2
ELF	f4772000-f477d000	Deferred        librt.so.1
ELF	f4781000-f4799000	Deferred        kerberos<elf>
  \-PE	f4790000-f4799000	\               kerberos
ELF	f4799000-f47bd000	Deferred        bcrypt<elf>
  \-PE	f47a0000-f47bd000	\               bcrypt
ELF	f47bd000-f47d3000	Deferred        msimg32<elf>
  \-PE	f47c0000-f47d3000	\               msimg32
ELF	f7b21000-f7b37000	Deferred        api-ms-win-security-systemfunctions-l1-1-0<elf>
  \-PE	f7b30000-f7b37000	\               api-ms-win-security-systemfunctions-l1-1-0
ELF	f7b37000-f7b4d000	Deferred        api-ms-win-core-sysinfo-l1-2-1<elf>
  \-PE	f7b40000-f7b4d000	\               api-ms-win-core-sysinfo-l1-2-1
ELF	f7b4d000-f7b7a000	Deferred        wmvcore<elf>
  \-PE	f7b60000-f7b7a000	\               wmvcore
ELF	f7b7a000-f7b90000	Deferred        api-ms-win-core-localization-l1-2-1<elf>
  \-PE	f7b80000-f7b90000	\               api-ms-win-core-localization-l1-2-1
ELF	f7b98000-f7b9e000	Deferred        libdl.so.2
ELF	f7ba5000-f7bbb000	Deferred        api-ms-win-core-fibers-l1-1-1<elf>
  \-PE	f7bb0000-f7bbb000	\               api-ms-win-core-fibers-l1-1-1
ELF	f7bbb000-f7bd1000	Deferred        api-ms-win-core-synch-l1-2-0<elf>
  \-PE	f7bc0000-f7bd1000	\               api-ms-win-core-synch-l1-2-0
ELF	f7bd4000-f7bde000	Deferred        libuuid.so.1
ELF	f7bde000-f7dbd000	Deferred        libc.so.6
ELF	f7dbd000-f7ddf000	Deferred        libpthread.so.0
ELF	f7ddf000-f7f97000	Dwarf           libwine.so.1
ELF	f7f99000-f7fc4000	Deferred        ld-linux.so.2
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files (x86)\Mp3tag\Mp3tag.exe
	00000031    0
	0000002e    0 <==
	0000002d    0
	0000002b    0
	0000002a    0
	00000009    0
0000000e services.exe
	00000023    0
	0000001a    0
	00000013    0
	00000010    0
	0000000f    0
00000011 plugplay.exe
	00000017    0
	00000016    0
	00000012    0
00000018 winedevice.exe
	00000020    0
	0000001d    0
	0000001c    0
	0000001b    0
	00000019    0
0000001e explorer.exe
	00000029    0
	00000028    0
	00000027    0
	0000001f    0
00000021 winedevice.exe
	00000026    0
	00000025    0
	00000024    0
	00000022    0
System information:
    Wine build: wine-4.12.1
    Platform: i386 (WOW64)
    Version: Windows 10
    Host system: Linux
    Host version: 4.19.60-1-MANJARO

It seems to be related to an issue in WinHttp, which is part of Wine. The ~10 second delay is caused by Mp3tag only then checking for updates (which you can disable at "Options > Updates").

I don't think that I can do anything about that. I've checked the behavior with Wine 4.0.2 on macOS without any issues.