ruanformigoni / gameimage

Gameimage - FlatImage Game Packer
Apache License 2.0
265 stars 2 forks source link

Write access error #62

Closed Blad3forc3 closed 6 months ago

Blad3forc3 commented 7 months ago

Hi Ruan, Ive got a game that when run in normal wine it runs fine but when previewing it running in gameimage i get a write access error age-of-mythology aom.exe runs fine but it's the expansion (aomx.exe) that complains about the write access error of the log file within gameimage setup When i set the wineprefix to the prefix created in gameimage (after the game is installed) and run

WINEPREFIX=/media/ade/Temp/Temp/build/Age-Of-Mythology-The-Titans/wine wine ./aomx.exe

its runs fine but when clicking the preview button during the setup i get that error

ruanformigoni commented 7 months ago

Hi @Blad3forc3 , thanks for the bug report! I'll look into it.

Blad3forc3 commented 6 months ago

I've found another game that runs in regular wine but not when previewing it in a flatimage

commandos-2-hd-remaster

ruanformigoni commented 6 months ago

Hi @Blad3forc3 , thanks for the reference! Please avoid sharing links to unsafe websites. The write access error usually happens when the application is trying to access something outside the sandbox.

Blad3forc3 commented 6 months ago

Apologies for that. I have found another game that runs fine (Runner3 gog) when executing it from the terminal manually but when running through gameimage i get this error in the logfile

I :: [o] :: I :: [e] :: [wine.sh] wine: Unhandled stack overflow at address 7AF07DDD (thread 025c), starting debugger...

then doesnt run

ruanformigoni commented 6 months ago

Hi @Blad3forc3 , I just updated the wine runner with a fix to a similar error that prevented overcooked 2 to work properly, let me know if that helps.

Blad3forc3 commented 6 months ago

I've tried it on 3 games that showed this problem and they all run from the preview (which is good) only problem is after creating the flatimage to the end and then running the flatimage it doesnt open. Ive attached the log file. Is the missing libXinerama.so.1 the problem near the end? It is installed on my system already log.txt

ruanformigoni commented 6 months ago

I discovered this error after the update, should be fixed in this pipeline.

Blad3forc3 commented 6 months ago

So just start a fresh build folder and try?

ruanformigoni commented 6 months ago

Yes, or you can erase the wine.tar.xz and wine.dwarfs files from the build directory and re-download them.

Blad3forc3 commented 6 months ago

OK that seems to have sorted the problems out Ruan. I have noticed i'm getting this opcode error, it doesnt stop the flatimage preview or the created flatimage running but it definitely wasnt there previously

I :: [o] :: I :: [o] :: [wine.sh] /fim/mount/wine/bin/wine I :: [o] :: I :: [o] :: [wine.sh] Wine version: wine-9.8 (Staging) I :: [o] :: I :: [o] :: [wine.sh] Switched directory to: /media/ade/Temp/Temp/build/Bit-Trip-Runner-3/wine/drive_c/GOG Games/Runner3 I :: [o] :: I :: [o] :: [wine.sh] X Error of failed request: XI_BadDevice (invalid Device parameter) I :: [o] :: I :: [o] :: [wine.sh] Major opcode of failed request: 131 (XInputExtension) I :: [o] :: I :: [o] :: [wine.sh] Minor opcode of failed request: 3 (X_OpenDevice) I :: [o] :: I :: [o] :: [wine.sh] Device id in failed request: 0x5e00003 I :: [o] :: I :: [o] :: [wine.sh] Serial number of failed request: 213 I :: [o] :: I :: [o] :: [wine.sh] Current serial number in output stream: 213 I :: [o] :: I :: [o] :: [wine.sh] Mono path[0] = 'C:/GOG Games/Runner3/Runner3_Data/Managed' I :: [o] :: I :: [o] :: [wine.sh] Mono config path = 'C:/GOG Games/Runner3/Runner3_Data/Mono/etc' I :: [o] :: I :: [o] :: [wine.sh] Wine log : /media/ade/Temp/Temp/build/Bit-Trip-Runner-3/wine/wine.log I :: [o] :: I :: Finished Command: '/fim/mount/wine/bin/wine.sh /media/ade/Temp/Temp/build/Bit-Trip-Runner-3/wine/drive_c/GOG Games/Runner3/Runner3.exe' I :: Finished Command: '/media/ade/Temp/Temp/build/wine.flatimage fim-exec /media/ade/Temp/Temp/build/Bit-Trip-Runner-3/boot' test returned successfully

ruanformigoni commented 6 months ago

Nice! It probably was, but now it is shown in the terminal. I also fixed the issue of some missing wine output there.