https://bugs.winehq.org/show_bug.cgi?id=46320
Bug ID: 46320 Summary: Kindle don't get installed: abnormal program temrination Product: Wine Version: 4.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: raffamaiden@gmail.com Distribution: ---
Created attachment 63054 --> https://bugs.winehq.org/attachment.cgi?id=63054 command line log file + screenshot
Kindle for PC version 1.24.51068 don't even get installed. After the installer showing up the dialog in which it says it is decompressing the files, after the dialog in which it says it is copying (I presume?) the files, an error message shows up "abnormal program termination"
I attach log and screenshot
https://bugs.winehq.org/show_bug.cgi?id=46320
--- Comment #1 from raffamaiden@gmail.com --- Created attachment 63075 --> https://bugs.winehq.org/attachment.cgi?id=63075 Kindle .125 installation crash log
https://bugs.winehq.org/show_bug.cgi?id=46320
raffamaiden@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #63075|Kindle .125 installation |Kindle 1.25 log of the description|crash log |crash at installation
https://bugs.winehq.org/show_bug.cgi?id=46320
raffamaiden@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #63075|Kindle 1.25 log of the |Kindle 1.25.52064 log of description|crash at installation |the crash at installation
https://bugs.winehq.org/show_bug.cgi?id=46320
forgottenumbrella@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |forgottenumbrella@tutanota. | |com
--- Comment #2 from forgottenumbrella@tutanota.com --- I can confirm that recent versions of Kindle for PC do not install successfully.
https://bugs.winehq.org/show_bug.cgi?id=46320
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bug.reporter@mail.sheugh.co | |m
--- Comment #3 from Fabian Maurer dark.shadow4@web.de --- *** Bug 48602 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=46320
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |dark.shadow4@web.de Keywords| |download URL| |https://www.amazon.com/kind | |le-dbs/fd/kcp Summary|Kindle don't get installed: |Amazon Kindle for PC |abnormal program |installer crashes with |temrination |"abnormal program | |termination" Ever confirmed|0 |1
--- Comment #4 from Fabian Maurer dark.shadow4@web.de --- Confirming the problem. Also adding a download link
https://bugs.winehq.org/show_bug.cgi?id=46320
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Amazon Kindle for PC |Amazon Kindle for PC |installer crashes with |crashes with "abnormal |"abnormal program |program termination" |termination" |
--- Comment #5 from Fabian Maurer dark.shadow4@web.de --- Correction: The installer completes just fine, then starts the Kinde.exe automatically, and that crashes.
https://bugs.winehq.org/show_bug.cgi?id=46320
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |waghamareshridhar@gmail.com
--- Comment #6 from Fabian Maurer dark.shadow4@web.de --- *** Bug 48998 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=46320
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Amazon Kindle for PC |Multiple applications and |crashes with "abnormal |games need support for |program termination" |Windows Vista+ User Shell | |Folder layout, specifically | |'Local AppData' (Amazon | |Kindle for PC) Component|-unknown |shell32 CC| |focht@gmx.net URL|https://www.amazon.com/kind |https://s3.amazonaws.com/ki |le-dbs/fd/kcp |ndleforpc/57030/KindleForPC | |-installer-1.28.57030.exe
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
--- snip --- $ WINEDEBUG=+seh,+relay,+msi,+msvcrt wine ./KindleForPC-installer-1.28.57030.exe >>log.txt 2>&1
0035:Call KERNEL32.CreateDirectoryW(09146db0 L"\\?\C:\users\focht\Local Settings\Application Data\Amazon",00000000) ret=6714b46b ... 0035:Ret KERNEL32.CreateDirectoryW() retval=00000000 ret=6714b46b ... 0035:Call KERNEL32.CreateDirectoryW(09146da8 L"\\?\C:\users\focht\Local Settings\Application Data\Amazon\Kindle",00000000) ret=6714b46b ... 0035:Ret KERNEL32.CreateDirectoryW() retval=00000000 ret=6714b46b ... 0035:Call shell32.SHGetSpecialFolderPathW(00000000,0032f73c,0000001c,00000000) ret=67152905 ... 0035:Call advapi32.RegCreateKeyW(80000001,7dbe56a0 L"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders",0032e878) ret=7db89ae0 ... 0035:Call advapi32.RegQueryValueExW(000000c8,7dbe6f20 L"Local AppData",00000000,0032e880,0032f3e8,0032e884) ret=7db89b1f ... 0035:Call advapi32.RegCreateKeyExW(80000002,7dbe5820 L"Software\Microsoft\Windows NT\CurrentVersion\ProfileList",00000000,00000000,00000000,000f003f,00000000,0032e010,0032e638) ret=7db885fe ... 0035:Call advapi32.RegQueryValueExW(000000cc,7dbe57e0 L"ProfilesDirectory",00000000,0032dfc8,0032e228,0032dfcc) ret=7db8548e ... 0035:Call shlwapi.PathFileExistsW(0032f1e0 L"C:\users\focht\Local Settings\Application Data") ret=7db8ce2e 0035:Call kernelbase.PathFileExistsW(0032f1e0 L"C:\users\focht\Local Settings\Application Data") ret=7bc9f754 ... 0035:Ret kernelbase.PathFileExistsW() retval=00000001 ret=7bc9f754 0035:Ret shlwapi.PathFileExistsW() retval=00000001 ret=7db8ce2e 0035:Ret shell32.SHGetSpecialFolderPathW() retval=00000001 ret=67152905 ... 0035:Call msvcp120.?in@?$codecvt@_WDH@std@@QBEHAAHPBD1AAPBDPA_W3AAPA_W@Z(091726a0,0032f998,09172658 "C:\users\focht\AppData\Local\Amazon\Kindle\crashdump",0917268c "",0032f9a0,0032fa10,0032fc10,0032f994) ret=012eaa6d ... 0035:Call KERNEL32.GetFileAttributesW(090561f8 L"C:\users\focht\AppData\Local\Amazon\Kindle\crashdump") ret=012ef321 ... 0035:Ret KERNEL32.GetFileAttributesW() retval=ffffffff ret=012ef321 0035:Call KERNEL32.GetLastError() ret=012eec64 0035:Ret KERNEL32.GetLastError() retval=00000003 ret=012eec64 0035:Call KERNEL32.CreateDirectoryW(090561f8 L"C:\users\focht\AppData\Local\Amazon\Kindle\crashdump",00000000) ret=012ed334 ... 0035:Ret KERNEL32.CreateDirectoryW() retval=00000000 ret=012ed334 ... 0035:Call KERNEL32.GetLastError() ret=012ed357 0035:Ret KERNEL32.GetLastError() retval=00000003 ret=012ed357 ... 0035:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0032fb44) ret=7da3ac65 0035:Call ntdll.memcpy(0032faa8,0032fb44,0000000c) ret=7b00dba1 0035:Ret ntdll.memcpy() retval=0032faa8 ret=7b00dba1 0035:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b00dbb1 ip=7b00dbb1 tid=0035 0035:trace:seh:raise_exception info[0]=19930520 0035:trace:seh:raise_exception info[1]=0032fbe4 0035:trace:seh:raise_exception info[2]=03bb2960 0035:trace:seh:raise_exception eax=0032fa94 ebx=00000003 ecx=0032fb44 edx=0032fa94 esi=00000003 edi=0032fb00 0035:trace:seh:raise_exception ebp=0032fae8 esp=0032fa94 cs=320023 ds=ffff002b es=002b fs=f7c60063 gs=006b flags=00000212 0035:trace:seh:call_stack_handlers calling handler at 0x16c18e8 code=e06d7363 flags=1 0035:trace:seh:call_stack_handlers handler at 0x16c18e8 returned 1 0035:trace:seh:call_stack_handlers calling handler at 0x16609b9 code=e06d7363 flags=1 0035:trace:seh:call_stack_handlers handler at 0x16609b9 returned 1 0035:trace:seh:call_stack_handlers calling handler at 0x1661282 code=e06d7363 flags=1 0035:trace:seh:call_stack_handlers handler at 0x1661282 returned 1 0035:trace:seh:call_stack_handlers calling handler at 0x169be26 code=e06d7363 flags=1 0035:trace:seh:call_stack_handlers handler at 0x169be26 returned 1 0035:trace:seh:call_stack_handlers calling handler at 0x14173cc code=e06d7363 flags=1 ... 0035:Call user32.MessageBoxIndirectW(0032d398) ret=7da4676b ... 0035:Call winex11.drv.SetWindowText(0002007c,0880e140 L"Runtime error!\n\nProgram: C:\Program Files (x86)\Amazon\Kindle\Kindle.exe\nabnormal program termination\n\nPress OK to exit the program, or Cancel to start the Wine debugger.\n") ret=7e84ebf5 ... 0035:Ret user32.MessageBoxIndirectW() retval=00000001 ret=7da4676b 0035:trace:seh:MSVCRT_raise (22) 0035:trace:msvcrt:MSVCRT__exit (3) ... --- snip ---
The application uses different ways to determine the 'Local Application Data' base path. It asks the OS using win32 API and also makes hard-coded assumptions that rely on Windows Vista+ user shell folder layout.
--- snip --- $ grep -ral '\AppData\Local' .wine/drive_c .wine/drive_c/Program Files (x86)/Amazon/Kindle/CrashReporter.exe .wine/drive_c/Program Files (x86)/Amazon/Kindle/Kindle.exe --- snip ---
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vi...)
--- quote --- The 'AppData\Local' folder in Windows Vista is the same as the 'Documents and Settings\username\Local Settings\Application Data' folder in Windows XP. --- quote ---
-------------------------------------------------------------------- | Windows Vista Profile Location | Windows XP Profile Location | -------------------------------------------------------------------| | Users\username | Documents and Settings\username | | AppData\Local | Local Settings\Application Data | --------------------------------------------------------------------
Windows maintains backwards compatibility by using junctions in appropriate places. For example 'Documents and Settings' is a junction to 'c:\users\'. '%USERPROFILE%/Local Settings" is a junction to 'AppData\Local' and so on ...
Wine uses a mixture of Windows XP style layout and Vista+. Due to missing junctions it lacks certain (sub)folder as well.
Kindle app has some code paths that recursively create the missing sub-folder structure. It uses 'boost::filesystem::create_directories' and subsequently 'boost::filesystem::create_directory'.
Before the crash, Kindle tried to create a Vista+ style 'C:\users\focht\AppData\Local\Amazon\Kindle\crashdump' path that obviously doesn't exist. Earlier, the app code operated on Windows XP shell user folder layout because of Wine's implementation/registry settings. The app code makes the assumption that the directory structure already exists up to the level before 'crashdump' directory hence only used 'boost::filesystem::create_directory' which fails if parent path elements are not present.
'Local AppData' -> '%USERPROFILE%\Local Settings\Application Data'
Vista+ 'AppData\Local' is not present (because Wine doesn't use junctions). There are more inconsistencies/mixups though.
With some quick hacks locally applied to fix most required things, Amazon Kindle for PC starts successfully from the install part (and manually later).
A quick search in Bugzilla reveals there are more issues reported which are about the same underlying problem. Will merge as needed.
$ sha1sum KindleForPC-installer-1.28.57030.exe 158897d98df7aa53c666a62747a0843b85b18129 KindleForPC-installer-1.28.57030.exe
$ du -sh KindleForPC-installer-1.28.57030.exe 54M KindleForPC-installer-1.28.57030.exe
$ wine --version wine-5.6
Regards
https://bugs.winehq.org/show_bug.cgi?id=46320
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |devilj@outlook.pt
--- Comment #8 from Anastasius Focht focht@gmx.net --- *** Bug 47408 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=46320
forgottenumbrella@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|forgottenumbrella@tutanota. | |com |
https://bugs.winehq.org/show_bug.cgi?id=46320
Ori Avtalion ori@avtalion.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ori@avtalion.name
--- Comment #9 from Ori Avtalion ori@avtalion.name --- In the case of Kindle for PC, after creating the AppData/Local/Amazon/Kindle/crashdump manually, it runs just fine.
https://bugs.winehq.org/show_bug.cgi?id=46320
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://s3.amazonaws.com/ki |https://web.archive.org/web |ndleforpc/57030/KindleForPC |/20200304070153/https://s3. |-installer-1.28.57030.exe |amazonaws.com/kindleforpc/5 | |7030/KindleForPC-installer- | |1.28.57030.exe
--- Comment #10 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download via Internet Archive:
https://web.archive.org/web/20200304070153/https://s3.amazonaws.com/kindlefo...
@ comment #9
--- quote --- In the case of Kindle for PC, after creating the AppData/Local/Amazon/Kindle/crashdump manually, it runs just fine. --- quote ---
Well, that's mentioned and explained in my comment #7. I guess people don't like reading a wall of text.
$ wine --version wine-6.1-187-g4f1b297a14b
Regards
https://bugs.winehq.org/show_bug.cgi?id=46320
--- Comment #11 from Ori Avtalion ori@avtalion.name --- I missed it in your report. I only noticed "some quick hacks locally applied to fix most required things".
I've updated AppDB, noting the latest 1.30 works fine with the workaround.
The previous popular version, 1.16, that works without modification and is installed by winetricks, no longer functions after Amazon disabled its ability to communicate with its servers.
https://bugs.winehq.org/show_bug.cgi?id=46320
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4111801ab317529c3e24c39a6a9 | |7e7043438231a Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/4111801ab317529c3e24c39a6a... ("shell32: Use winvista+ AppData paths.").
Thanks Andrew
Before (Wine 6.9):
--- snip --- $ tree --charset=ANSI ~/.wine/drive_c/users/$USER/AppData/
/home/focht/.wine/drive_c/users/focht/AppData/ `-- LocalLow --- snip ---
After (wine-6.9-148-gce151dd681f):
--- snip --- $ tree --charset=ANSI ~/.wine/drive_c/users/$USER/AppData/
/home/focht/.wine/drive_c/users/focht/AppData/ |-- Local | `-- Microsoft | `-- Windows | |-- History | |-- INetCache | `-- INetCookies |-- LocalLow `-- Roaming `-- Microsoft `-- Windows |-- Network Shortcuts |-- Printer Shortcuts |-- Recent |-- SendTo |-- Start Menu | `-- Programs | |-- Administrative Tools | `-- StartUp |-- Templates -> /home/focht/ `-- Themes --- snip ---
$ wine --version wine-6.9-148-gce151dd681f
Regards
https://bugs.winehq.org/show_bug.cgi?id=46320
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.10.