Mantas-2155X / illusion-wine-guide

GNU General Public License v3.0
51 stars 11 forks source link

Crash on title screen [fix included] #4

Closed jmfergeau closed 10 months ago

jmfergeau commented 3 years ago

Hi. I just tried your method for koikatsu (betterrepack). But while it somewhat works with the default wine prefix, (it launches but without mods) it now just refuses totally to start. The Illusion splash screen appears, the girl says "illusion", then the window closes. The console drops this in the logs:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x5400001
  Serial number of failed request:  540
  Current serial number in output stream:  541
wine: Unhandled page fault on read access to 0000000000000010 at address 00007FE4F3674424 (thread 0174), starting debugger...

In very rare cases, the window disappears but there's no error and koikatu.exe is still on. I can hear the music of the title screen but no window at all. Only way to quit it is to kill it in task manager.

Arch linux x64 with kernel 5.14.14-arch1-1, wine 6.18. Betterrepack RX7 updated with HF patch 3.12. no errors while following the instructions.

I could fix it by putting all the installed dlls to native, integrated instead of just native. Maybe you should add this detail in your guide ;)

Mantas-2155X commented 3 years ago

Hello, thank you for reporting the issue.

Unfortunately X Errors, I don't know why they happen or how to completely get rid of them. Usually just closing all wine applications and starting the game again works, sometimes a restart works.

What dlls are you setting to native, builtin? The only one you manually would need to change is winhttp and that is to enable mods.

jmfergeau commented 3 years ago

actually winetricks adds a big bunch of them (they can be spotted by the * at the beginning of their name in the "libraries" part of winecfg) and all of them are set to just native. these are the ones to set. and since there's like 25 of them, it can be fastidious to edit them one by one. :p i don't know if there's a way to explicitly tell winetricks to install them as native, integrated directly, though.

I'm seeing if i can make a playonlinux script based on your notes, to make the installation easier. I can pull request it to your repo if you want, eventually, if i manage to make it work. ^^

Mantas-2155X commented 3 years ago

oh, I believe all of them set by winetricks should be correct. It could be just a coincidence that the X errors stopped happening after changing it to n,b

I have been using these guide steps for years now and the only times X errors happened, they were completely unrelated to wine configuration (doing things like restarting the session or closing all wine apps would solve it).

Mantas-2155X commented 10 months ago

while I am not able to reproduce or test this, I have added it as a note in the guide