https://bugs.winehq.org/show_bug.cgi?id=48135
Bug ID: 48135 Summary: Can't start Winamax anymore (popup "called Tcl_Close on channel with refCount > 0") Product: Wine Version: 4.20 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: rotogluon@gmail.com Distribution: ---
Hi,
A few days ago, Winamax was working nicely and today when I tried to start it, I got a wine popup Window displaying :
"called Tcl_Close on channel with refCount > 0"
The title of the window is "Fatal error in installer"
Then when I click on the "OK" button, it's closing and nothing happens next.
I updated as I do it daily my Kubuntu 19.04 ("apt-get update").
---
% uname -a Linux hehe2 5.0.0-36-generic #39-Ubuntu SMP Tue Nov 12 09:46:06 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
% lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.04 Release: 19.04 Codename: disco
% cat /etc/debian_version buster/sid
% wine --version wine-4.20
https://bugs.winehq.org/show_bug.cgi?id=48135
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be Severity|blocker |normal
--- Comment #1 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
1. Issues in a single application is severity 'normal'. Read more about severity levels descriptions there: https://wiki.winehq.org/Bugs#severity
2. Please attach full, normal (=without WINEDEBUG), terminal output. You can find instructions there: https://wiki.winehq.org/FAQ#get_log
3. I found a free download to a 'Winamax' software there: https://www.winamax.fr/jouer-au-poker Is this the affected application?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=48135
--- Comment #2 from rotogluon@gmail.com --- Hi,
Thanks for your answer.
I dug into this a bit deeper and I actually found out something really weird which tends me to think it's not a wine related bug.
I edited the link from the Ubuntu "start menu" to see what file it was using.
I cat'ed that file :
% cat /home/hehe2/.local/share/applications/wine/Programs/Winamax/Winamax\ Poker.desktop [Desktop Entry] Name=Winamax Poker Exec=env WINEPREFIX="/home/hehe2/.wine" wine C:\\windows\\command\\start.exe /Unix /home/hehe2/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start\ Menu/Programs/Winamax/Winamax\ Poker.lnk Type=Application StartupNotify=true Comment=Winamax Poker Path=/home/hehe2/.wine/dosdevices/c:/users/hehe2/Winamax StartupWMClass=wlauncher.exe
From there, I can see that the link (which was automatically created when I
installed Winamax -- and yes btw, from the website you mentioned) is using a windows start menu link file.
Well, that file is "scrambled" a bit when I string it :
% strings '/home/hehe2/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start Menu/Programs/Winamax/Winamax Poker.lnk' fD(` home fD(`gDa` hehe2 .wine drive_c users hehe2 Winamax wlauncher.exe C:\users\hehe2\Winamax\wlauncher.exe
So, I thought I just could go there and "wine" the binary in the terminal to see the output :
% cd ~/.wine/drive_c/users/hehe2/Winamax % wine wlauncher.exe 0271:fixme:font:freetype_SelectFont Untranslated charset 255 0271:fixme:font:get_outline_text_metrics failed to read full_nameW for font L"Ani"! 0271:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot 0271:fixme:toolhelp:Heap32ListFirst : stub 0271:fixme:imm:ImmReleaseContext (00180158, 00F4DF70): stub
Nothing happens (not even the popup window I got when I'm using the Ubuntu link)
Then, if I try to start directly the "Winamax Poker.exe" binary :
[2019-11-20 01:08:57] hehe2@hehe2:/home/hehe2/.wine/drive_c/users/hehe2/Winamax% wine Winamax\ Poker/Winamax\ Poker.exe 0281:fixme:sync:SetWaitableTimerEx (00000154, 032DFE70, 0, 00000000, 00000000, 00000000, 500) semi-stub 027a:fixme:nls:get_dummy_preferred_ui_language (0x8 0x32dbf0 (nil) 0x32dbf4) returning a dummy value (current locale) 027a:fixme:nls:get_dummy_preferred_ui_language (0x8 0x32dbf0 0x1fc3d0 0x32dbf4) returning a dummy value (current locale) 027a:fixme:secur32:LsaGetLogonSessionData 0x32e5a8 0x32e5b8 stub 027a:fixme:pulse:AudioSessionControl_RegisterAudioSessionNotification (0x1f3780)->(0x1fbf80) - stub 027a:fixme:pulse:AudioSessionControl_UnregisterAudioSessionNotification (0x1f3780)->(0x1fbf80) - stub [2019-11-20 01:10:34] hehe2@hehe2:/home/hehe2/.wine/drive_c/users/hehe2/Winamax% 0287:fixme:font:freetype_SelectFont Untranslated charset 255 0287:fixme:font:get_outline_text_metrics failed to read full_nameW for font L"Ani"! 0287:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot 0287:fixme:toolhelp:Heap32ListFirst : stub 0287:fixme:imm:ImmReleaseContext (001C0164, 00F4BE38): stub 0296:fixme:sync:SetWaitableTimerEx (0000015C, 032DFE70, 0, 00000000, 00000000, 00000000, 500) semi-stub 028f:fixme:nls:get_dummy_preferred_ui_language (0x8 0x32dbf0 (nil) 0x32dbf4) returning a dummy value (current locale) 028f:fixme:nls:get_dummy_preferred_ui_language (0x8 0x32dbf0 0x1dd358 0x32dbf4) returning a dummy value (current locale) 028f:fixme:secur32:LsaGetLogonSessionData 0x32e5a8 0x32e5b8 stub 028f:fixme:pulse:AudioSessionControl_RegisterAudioSessionNotification (0x21b228)->(0x21afe8) - stub 028f:fixme:pulse:AudioSessionControl_UnregisterAudioSessionNotification (0x21b228)->(0x21afe8) - stub 028f:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733 028f:err:winsock:WSAIoctl -> SIO_ADDRESS_LIST_CHANGE request failed with status 0x2733 028f:fixme:imm:ImmReleaseContext (000501A6, 08672138): stub 02a2:fixme:font:freetype_SelectFont Untranslated charset 255 02a2:fixme:font:get_outline_text_metrics failed to read full_nameW for font L"Ani"! 02a2:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot 02a2:fixme:toolhelp:Heap32ListFirst : stub 02a2:fixme:imm:ImmReleaseContext (000A0126, 00F49EB8): stub
And then the login window appears and it's working.
So, I'm mind boggled because I'm not sure it's wine related any more...
I don't understand why I don't get the same behaviour using the Ubuntu start menu link and the "manual" launch and I especially don't understand why it was working for months and suddenly it's not any more.
The fact it's still working using the other ".exe" file is a good thing because it's not a blocker for me, it's just cumbersome and I'm pretty sure it eventually will be fixed in an upcoming "Ubuntu update" but I really don't know what component has a regression there...
https://bugs.winehq.org/show_bug.cgi?id=48135
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |https://www.winamax.fr/joue | |r-au-poker
--- Comment #3 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
1. URL field filed with link to the publisher's website.
2. I tested the current version of the application with Wine 4.19.
I couldn't reproduce the issue with a fresh install of the application in a clean wineprefix.
$ du -b wamInstall.exe 6752304 wamInstall.exe
$ sha256sum wamInstall.exe 3bc353292bde9b5483937af2811a397e51b24cc788fa3ae029bc975b76c00c40 wamInstall.exe
3. (In reply to rotogluon from comment #2)
Well, that file is "scrambled" a bit when I string it :
That's because .lnk files are binary files. Using a tool (lnk-parse-1.0 [1]), I got the details from the .lnk file on my system.
--- terminal output of lnk-parse-1.0.pl --- Link File: Winamax Poker.lnk Link Flags: HAS SHELLIDLIST | POINTS TO FILE/DIR | HAS DESCRIPTION | NO RELATIVE PATH STRING | HAS WORKING DIRECTORY | HAS CMD LINE ARGS | HAS CUSTOM ICON | File Attributes: Create Time: Mon Jan 01 1601 00:17:30 Last Accessed time: Mon Jan 01 1601 00:17:30 Last Modified Time: Mon Jan 01 1601 00:17:30 Target Length: 0 Icon Index: 0 ShowWnd: 1 SW_NORMAL HotKey: 0 Target is on local volume Volume Type: Fixed (Hard Disk) Volume Serial: 00000000 Vol Label: Base Path: C:\users\olivier\Winamax\wlauncher.exe (App Path:) Remaining Path: Description: Winamax Poker Working Dir: C:\users\olivier\Winamax Command Line: --mode unattended --unattendedmodeui none --cmdlaunch poker Icon filename: C:/users/olivier/Winamax/poker.ico --- end of output
As you can see, the .lnk sets some command-line parameters for wlauncher.exe. Without them wlauncher.exe doesn't seem to do anything.
Running this command manually (from the c:/users/olivier/Winamax) directory opens the login window:
wine wlauncher.exe --mode unattended --unattendedmodeui none --cmdlaunch poker
4.
So, I'm mind boggled because I'm not sure it's wine related any more...
The error "called Tcl_Close on channel with refCount > 0" is related to Tcl/Tk. If you get the error dialog again, please take a screenshot of it and attach it to this bug.
5.
I don't understand why I don't get the same behaviour using the Ubuntu start menu link and the "manual" launch and I especially don't understand why it was working for months and suddenly it's not any more.
I suspect this is an issue with the way .desktop files are run on your system. What is the result of this command (this is only one line)?
kioclient exec /home/hehe2/.local/share/applications/wine/Programs/Winamax/Winamax\ Poker.desktop >/home/hehe2/wine-bug48135.txt 2>&1
That command uses the 'kioclient exec' function to run the .desktop file. It's equivalent to clicking the shortcut, but from the command line. A 'wine-bug48135.txt' file should appear in your home directory.
Does that command start the application?
If not, then please attach the /home/hehe2/wine-bug48135.txt file to this bug. You can safely delete the /home/hehe2/wine-bug48135.txt file afterwards. It will be recreated/overwritten when you re-run the command.
Regards.
[1] https://sourceforge.net/projects/jafat/files/lnk-parse/lnk-parse-1.0/