Skip to content

[BUG] Command exited with code 256 #113

@funniman-exe

Description

@funniman-exe

Does an issue for this already exist?

  • I have searched the existing issues
  • I have ensured my environment (operating system, app launcher, etc) is up to date

Operating System and Version

Fedora Linux 43

Launcher

Lutris (Recommended)

Launcher Installation

Flatpak (Recommended)

Other Install

No response

Wine Version

ElementalWarrior (Recommended)

Affinity Version

2.6.5

Desktop Environment

KDE Plasma

Description

The process fails during winetricks setup, returning -1 (256 when unsigned). Wine fails to find C:\Windows\system32\wineboot.exe then properly fails after reporting it encountered the error code c0000135 when attempting to launch start.exe.

Steps to reproduce

  1. Proceed with the installation process (issue occurs with both Affinity Photo 2, and Canva Affinity)
  2. Issue occurs under Installing Affinity Suite

Expected behaviour

Installer completes without a hitch

Screenshots

Image

Logs

2026-01-04 16:11:50,271: Non existent path: /home/funniman.exe/.var/app/net.lutris.Lutris/cache/lutris/installer/affinity-suite
2026-01-04 16:12:20,953: Download completed
2026-01-04 16:12:20,953: All files available
2026-01-04 16:12:20,953: All files are available, continuing install
2026-01-04 16:12:20,953: Launching installer commands
2026-01-04 16:12:20,956: Creating a win64 prefix in /home/funniman.exe/affinity-suite
2026-01-04 16:12:20,956: Winepath: /home/funniman.exe/.var/app/net.lutris.Lutris/data/lutris/runners/wine/ElementalWarriorWine-x86_64/bin/wine
2026-01-04 16:12:24,474: win64 Prefix created in /home/funniman.exe/affinity-suite

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_CA.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 2301811 bytes (2248 KiB)            

Extracting archive: /home/funniman.exe/affinity-suite/WinMetadata.zip
--
Path = /home/funniman.exe/affinity-suite/WinMetadata.zip
Type = zip
Physical Size = 2301811

Everything is Ok

Folders: 1
Files: 20
Size:       6765760
Compressed: 2301811
2026-01-04 16:12:24,582: Accessing game config while runner wasn't given one.
2026-01-04 16:12:24,592: Get Registry Key function returned NoneType to variable folder.
Started initial process 298 from /home/funniman.exe/.var/app/net.lutris.Lutris/data/lutris/runtime/winetricks/winetricks -q --unattended --force vcrun2022 dotnet48 renderer=vulkan corefonts tahoma win11
Start monitoring process.
Executing cd /home/funniman.exe/.var/app/net.lutris.Lutris/data/lutris/runtime/winetricks
------------------------------------------------------
warning: Your version of wine 7.9-15231-ga7c9b19e1a2 is no longer supported upstream. You should upgrade to 8.x
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: You appear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this.
------------------------------------------------------
------------------------------------------------------
WINEPREFIX INFO:
Drive C: total 0
drwxr-xr-x. 1 funniman.exe funniman.exe  14 Jan  4 16:12 .
drwxr-xr-x. 1 funniman.exe funniman.exe 122 Jan  4 16:12 ..
drwxr-xr-x. 1 funniman.exe funniman.exe  32 Jan  4 16:12 windows

Registry info:
/home/funniman.exe/affinity-suite/system.reg:#arch=win64
/home/funniman.exe/affinity-suite/userdef.reg:#arch=win64
/home/funniman.exe/affinity-suite/user.reg:#arch=win64
------------------------------------------------------
------------------------------------------------------
warning: /home/funniman.exe/.var/app/net.lutris.Lutris/data/lutris/runners/wine/ElementalWarriorWine-x86_64/bin/wine cmd.exe /c echo '%AppData%' returned empty string, error message "wine: failed to open L"C:\windows\system32\wineboot.exe": c0000135
wine: failed to load start.exe: c0000135" 
------------------------------------------------------
Monitored process exited.
Initial process has exited (return code: 256)
Exit with return code 256
2026-01-04 16:12:25,593: Command exited with code 256
2026-01-04 16:12:25,593: Error handling timeout function: Command exited with code 256
Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/lutris/exception_backstops.py", line 79, in error_wrapper
    return handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/lutris/util/jobs.py", line 131, in wrapper
    repeat = func(*a, **kw)
             ^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/lutris/installer/commands.py", line 439, in _monitor_task
    raise ScriptingError(_("Command exited with code %s") % command.return_code)
lutris.installer.errors.ScriptingError: Command exited with code 256

Config

No response

Self-service

  • I'd be willing to fix this issue myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EvaluateUnder testing and reviewbugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions