http://bugs.winehq.org/show_bug.cgi?id=58793
Bug ID: 58793 Summary: iTunes 12.9.3 freezes after opening Product: Wine Version: 10.16 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: marc.rainier.lopez@gmail.com Distribution: ---
Created attachment 79439 --> http://bugs.winehq.org/attachment.cgi?id=79439 Log
iTunes opens successfully. It immediately becomes unresponsive to keyboard or mouse input
Installer used: https://drive.google.com/file/d/1-3h2JJSXNubNc5-Hwb-ZDJgrTsDod94a/view?usp=s...
Distribution: Ubuntu 24.04
Architecture: AMD64
http://bugs.winehq.org/show_bug.cgi?id=58793
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression CC| |gyebro69@gmail.com, | |rbernon@codeweavers.com Regression SHA1| |9038ef6d5be71955c6e0739f0e7 | |395e30ce57597 URL| |https://www.apple.com/itune | |s/download/win64 Component|-unknown |wineserver
--- Comment #1 from Béla Gyebrószki gyebro69@gmail.com --- I reproduced this bug using the currently available version of the iTunes application from https://www.apple.com/itunes/download/win64 App version is 12.13.8
Reverting commit 9038ef6d5be71955c6e0739f0e7395e30ce57597 fixes the problem for me.
iTunes64Setup.exe md5: 3796a9b7540b88a2f03088a4861c4407
Tested with wine-10.16-212-g6124fea1dde
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #2 from marc.rainier.lopez@gmail.com --- Trying out wine-10.16-212-g6124fea1dde with the reversion of commit 9038ef6d5be71955c6e0739f0e7395e30ce57597
Upon opening iTunes, I got an "iTunes has detected a problem with your audio configuration" error. Clicked "OK" and the program opened.
Clicks and typing now work. Cloud syncing with Apple Music and audio playback do not work.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- Works for me again in Wine-10.17, after commit 1d10eb5e9f0ece8967bc54f8d4083434c1e3c65a
http://bugs.winehq.org/show_bug.cgi?id=58793
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1d10eb5e9f0ece8967bc54f8d40 | |83434c1e3c65a Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Rémi Bernon rbernon@codeweavers.com --- Thanks! Marking as fixed.
http://bugs.winehq.org/show_bug.cgi?id=58793
marc.rainier.lopez@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |---
--- Comment #5 from marc.rainier.lopez@gmail.com --- It still does NOT work in Wine 10.17 and iTunes 12.9.3 32 bit.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #6 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 79480 --> http://bugs.winehq.org/attachment.cgi?id=79480 Possible fix
Sorry, it worked for me as well, but I found some more issues while investigating bug 58816.
Would the attached patch help?
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #7 from marc.rainier.lopez@gmail.com --- I'll let you know. After attempting to run my iTunes copy in Wine 10.17 without success, I reverted to Wine 10.14 and it works again.
My plan is to get commit d62035da4aa91327c6e38a2c8a66b829eb0983ed and then apply the patch you provided. Will give logs if it still doesn't work.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #8 from marc.rainier.lopez@gmail.com --- Created attachment 79489 --> http://bugs.winehq.org/attachment.cgi?id=79489 iTunes 12.9.3 log after patch
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #9 from marc.rainier.lopez@gmail.com --- Using wine-10.16-358-gd62035da4aa (wine 10.17 with the "Possible fix" patch). I was new to building wine and had several false starts before I got to the point of successfully installing iTunes.
iTunes still won't open a window.
I saw a line about "nouveau: driver missing" in the attached log. I'm using the proprietry nvidia-driver-580, so I'm unsure if it's an issue while I'm building it. I did encounter a "make install" error if I tried to include Vulkan in the 64-bit build of Wine.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #10 from Rémi Bernon rbernon@codeweavers.com --- Thank you for the log and the testing, it seems there's another thing going on related to D3D and OpenGL (which has also seen some changes in 10.17). Would you mind attaching another log with WINEDEBUG=+wgl environment variable?
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #11 from marc.rainier.lopez@gmail.com --- Created attachment 79492 --> http://bugs.winehq.org/attachment.cgi?id=79492 WINEDEBUG=+wgl log output
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #12 from Rémi Bernon rbernon@codeweavers.com --- Thank you! Are you using the wine wayland backend by any chance? It looks like the EGL library we find creates display meant for wayland.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #13 from Rémi Bernon rbernon@codeweavers.com --- Ah nevermind, I see that it is initializing X11. So probably the issue comes from the EGL library trying to target a wayland display.
As you have an NVIDIA GPU, this might be related to some missing egl-x11 platform (https://github.com/NVIDIA/egl-x11) although this is normally available in the 580 driver series. Are you using the Ubuntu provided package or installed from the NVIDIA installer?
You should be able check whether EGL is working by running `eglinfo`.
Otherwise, and in the meantime you can disable the use of EGL and force using GLX by running the following command in the prefix:
wine reg add "HKCU\Software\Wine\X11 Driver" /v UseEGL /d N /f
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #14 from marc.rainier.lopez@gmail.com --- Created attachment 79495 --> http://bugs.winehq.org/attachment.cgi?id=79495 eglinfo result
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #15 from marc.rainier.lopez@gmail.com --- Created attachment 79496 --> http://bugs.winehq.org/attachment.cgi?id=79496 iTunes crash log 2025-10-19
I think I'm using the Ubuntu provided package: nvidia-driver-580/noble,noble-updates,noble-proposed,now 580.95.05-0ubuntu0.24.04.2 amd64 [installed,automatic]
Running eglinfo ended in a segfault.
Ran "wine reg add "HKCU\Software\Wine\X11 Driver" /v UseEGL /d N /f". iTunes crashes afterwards.
eglinfo and iTunes crash logs attached.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #16 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 79497 --> http://bugs.winehq.org/attachment.cgi?id=79497 Workaround EGL device enumeration
From the eglinfo log it looks like that the X11 platform is actually available, but later something in the EGL library is causing a crash when enumerating EGL devices. This probably also triggers a crash in Wine as we now enumerate EGL devices too.
The attached patch might workaround the problem, by avoiding the device enumeration that causes the crash, but I'm not sure whether it'll accepted in Wine, this seems rather a problem in the EGL library itself, or in its packaging.
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #17 from Rémi Bernon rbernon@codeweavers.com ---
Ran "wine reg add "HKCU\Software\Wine\X11 Driver" /v UseEGL /d N /f". iTunes crashes afterwards.
This might still be related, as we try to enumerate EGL devices unconditionally, and the patch above should also hopefully help. Fwiw you can also undo that command and reset the option to its default (which is to use EGL for now) with:
wine reg delete "HKCU\Software\Wine\X11 Driver" /v UseEGL /f
http://bugs.winehq.org/show_bug.cgi?id=58793
--- Comment #18 from marc.rainier.lopez@gmail.com ---
wine reg delete "HKCU\Software\Wine\X11 Driver" /v UseEGL /f
Still crashes if I use 12.9.3. It will work however if I use 12.13.9.1, but I can't get internet connectivity to work with the self-built version of wine.
Going to revert to Wine 10.14 so that I can continue to use iTunes. Thanks for the assistance