Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start GOG game in CrossOver 23.5 #3118

Closed
CyrosX opened this issue Oct 6, 2023 · 8 comments · Fixed by #3308
Closed

Cannot start GOG game in CrossOver 23.5 #3118

CyrosX opened this issue Oct 6, 2023 · 8 comments · Fixed by #3308
Labels
bug:unconfirmed Someone works on identifying the issue

Comments

@CyrosX
Copy link

CyrosX commented Oct 6, 2023

Describe the bug

I've had Heroic on my system already installed and updated.
Trying to start Witcher 3 (my first and only - downloaded and installed Heroic game) is not working.
The "Heroic" bottle exists in CrossOver. D3DMetal is enabled and ESync. But changing these (to e.g. DXVK) does not change the outcome.
It seems as it does not use the CrossOver Wine instance.
My custom wine/proton path is empty.
Game defaults shows CrossOver 23.5 and bottle name Heroic.
Heroic is also the default bottle in CrossOver. (Nothing is installed in it)

The game launches when using CrossOver directly.

Add logs

System Info:
CPU: 10x Apple M1 Pro
Memory: 34.36 GB (used: 16.44 GB)
GPUs:

OS:  14.0.0 (darwin)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.9.2 Boa Hancock
  Legendary: 0.20.32 Dark Energy (hotfix #6)
  gogdl: 0.7.3
  Nile: 1.0.0 Jonathan Joestar

Game Settings: {
	"autoInstallDxvk": true,
	"autoInstallVkd3d": true,
	"preferSystemLibs": false,
	"enableEsync": true,
	"enableFsync": true,
	"nvidiaPrime": false,
	"enviromentOptions": [],
	"wrapperOptions": [],
	"showFps": false,
	"targetExe": "",
	"useGameMode": false,
	"language": "de",
	"wineVersion": {
		"bin": "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine",
		"name": "CrossOver - 23.5",
		"type": "crossover",
		"wineserver": "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wineserver"
	},
	"wineCrossoverBottle": "Heroic",
	"winePrefix": "/Users/cyrosx/.wine",
	"gogSaves": [
		{
			"name": "saves",
			"location": "/Users/cyrosx/Library/Application Support/CrossOver/Bottles/Heroic/dosdevices/c:/users/crossover/Documents/The Witcher 3"
		}
	]
}

Game launched at: Fri Oct 06 2023 13:23:54 GMT+0200 (Central European Summer Time)

Launch Command: HEROIC_APP_NAME=1495134320 HEROIC_APP_RUNNER=gog HEROIC_APP_SOURCE=gog LD_PRELOAD= DOTNET_BUNDLE_EXTRACT_BASE_DIR= CX_BOTTLE=Heroic WINE_FULLSCREEN_FSR=0 WINEESYNC=1 WINEFSYNC=1 /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl launch "/Users/cyrosx/Games/Heroic/The Witcher 3 Wild Hunt GOTY" 1495134320 --platform windows --prefer-task 2

Game Log:
Traceback (most recent call last):
  File "gogdl/cli.py", line 51, in <module>
  File "gogdl/cli.py", line 47, in main
  File "gogdl/launch.py", line 173, in launch
  File "subprocess.py", line 951, in __init__
  File "subprocess.py", line 1837, in _execute_child
OSError: [Errno 8] Exec format error: '/Users/cyrosx/Games/Heroic/The Witcher 3 Wild Hunt GOTY/bin/x64/witcher3.exe'
[83360] Failed to execute script 'cli' due to unhandled exception!
Launch command: ['/Users/cyrosx/Games/Heroic/The Witcher 3 Wild Hunt GOTY/bin/x64/witcher3.exe']

Steps to reproduce

  1. Go to 'Library'
  2. Click on 'Witcher 3 - Play'
    // Choosing one of the launch options from the details page, does not change this behavior.
    (Options: The Witcher 3 - Wild Hunt, The Witcher 3 - Wild Hunt (DX11)
  3. Wait. Button says "Stop" but after some time it is back to "Play"
  4. See error in logs

Expected behavior

Game launches.

Screenshots

No response

Heroic Version

Latest Stable

System Information

  • OS [e. g. "Ubuntu"]: macOS 14.0
  • Crossover 23.5

Additional information

No response

@CyrosX CyrosX added the bug:unconfirmed Someone works on identifying the issue label Oct 6, 2023
@cptryd
Copy link

cptryd commented Oct 7, 2023

I'm having the same issue with GoG games starting from version 2.9.0. It seems that the launch command is missing the --wine parameter. Without it it tries to execute the windows executable directly which leads to above "Exec format error".

@nonoche2
Copy link

nonoche2 commented Oct 7, 2023

same for me (on macOS), I can only launch games from EGS with Heroic. Games from Amazon and GoG install but do not launch. I can launch these games from CrossOver. This has been happening for the past couple versions of Heroic (reported the issue in July)

@thysanoptera
Copy link

I just spend the whole day trying to figure this out. Same situation on MacOS, Exec format error when launching any GOG game.

@cptryd
Copy link

cptryd commented Oct 9, 2023

It works if I explicitly add game arguments which Heroic should do automatically when it runs a windows command on MacOS.
game_arguments

@nonoche2
Copy link

nonoche2 commented Oct 9, 2023

confirmed, this solves the issue for me, both for GOG and Amazon games

@Alex0007
Copy link

Alex0007 commented Dec 10, 2023

I can confirm @cptryd solution. This is definitely a bug.

Also it's unclear to me: Esync is turned off in bottle configuration, but it turned on in logged "game settings" from logs. What will be a result of this?

Software Versions:
  Heroic: 2.11.0 Kumachi
  Legendary: 0.20.33 Undue Alarm
  gogdl: 0.7.3
  Nile: 1.0.0 Jonathan Joestar

Game Settings: {
	"autoInstallDxvk": true,
	"autoInstallVkd3d": false,
	"preferSystemLibs": false,
	"enableEsync": true,
	"enableFsync": false,

@flavioislima
Copy link
Member

Can you guys test the build from this PR #3308 ?
you can download from the macOS build and then run xattr -d -r com.apple.quarantine Heroic.app if it says its corrupted.

We only need to confirm it's working so we can merge and add it on the next release.

@Alex0007 @CyrosX @cptryd @nonoche2

@Alex0007
Copy link

@flavioislima I have tested released version and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:unconfirmed Someone works on identifying the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants