Skip to content

Unity activation fails inside Windows Docker container (exit code -1073741515) when using game-ci/unity-builder@v4 ... @4.7.0 #758

Description

@IamBiswajitSahoo

Bug description

The Unity build fails during the activation step when running on the Windows Docker image unityci/editor:windows-2022.3.62f2-windows-il2cpp-3.

The process exits with code -1073741515, indicating a possible missing dependency or runtime issue within the container.

NOTE: All Unity credentials and license parameters are provided and verified as correct.

Error Log

Run game-ci/unity-builder@v4
  with:
    projectPath: DummyProject
    targetPlatform: StandaloneWindows64
    buildsPath: builds
    allowDirtyBuild: true
    buildMethod: DummyNamespace.Editor.EditorCIBuildConfigurations.BuildCI
    customParameters: --buildType beta --customBuildPath builds
    versioning: None
    unityVersion: auto
    androidExportType: androidPackage
    androidSymbolType: none
    runAsHostUser: false
    dockerIsolationMode: default
    containerRegistryRepository: unityci/editor
    containerRegistryImageVersion: 3
    awsStackName: game-ci
    providerStrategy: local
    kubeVolumeSize: 5Gi
    watchToEnd: true
    cacheUnityInstallationOnMac: false
    dockerWorkspacePath: /github/workspace
    skipActivation: false
  env:
    BUILD_TYPE: beta
    UNITY_EMAIL: ***
    UNITY_PASSWORD: ***
    UNITY_SERIAL: ***

Warning: 
      Library folder does not exist.
      Consider setting up caching to speed up your workflow,
      if this is not your first build.
    
Versioning strategy is set to none, so android version code should not be applied.
Building locally
C:\Windows\system32\reg.exe export "HKLM\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0" c:/regkeys/winsdk.reg /y
C:\Windows\system32\docker.exe run --workdir c:/github/workspace --rm --env UNITY_EMAIL=*** --env UNITY_PASSWORD=*** --env UNITY_SERIAL=*** --env SKIP_ACTIVATION=false --env UNITY_VERSION=2022.3.62f2 --env PROJECT_PATH=DummyProject --env BUILD_TARGET=StandaloneWindows64 --env BUILD_NAME=StandaloneWindows64 --env BUILD_PATH=builds/StandaloneWindows64 --env BUILD_FILE=StandaloneWindows64.exe --env BUILD_METHOD=DummyNamespace.Editor.EditorCIBuildConfigurations.BuildCI --env MANUAL_EXIT=false --env ENABLE_GPU=false --env VERSION=none --env ANDROID_VERSION_CODE=0 --env ANDROID_EXPORT_TYPE=androidPackage --env ANDROID_SYMBOL_TYPE=none --env "CUSTOM_PARAMETERS=--buildType beta --customBuildPath builds -logFile ./unity-editor.log" --env RUN_AS_HOST_USER=false --env GITHUB_REF=refs/heads/cycle21/fix/fix-unity-build-ci-broken --env GITHUB_SHA=adfc08ad2987f19c02dfe8ef6aed11838449518d --env GITHUB_REPOSITORY=DummyOrg/DummyProject --env GITHUB_ACTOR=DummyUser --env "GITHUB_WORKFLOW=Staging Windows and MacOS"
The operation completed successfully.
Unable to find image 'unityci/editor:windows-2022.3.62f2-windows-il2cpp-3' locally
windows-2022.3.62f2-windows-il2cpp-3: Pulling from unityci/editor
[Docker layer pulls...]
Status: Downloaded newer image for unityci/editor:windows-2022.3.62f2-windows-il2cpp-3

No .upmconfig.toml found at C:\githubhome
The operation completed successfully.
GIT_PRIVATE_TOKEN unset skipping

---------- git config --list -------------
[Standard git config output redacted for brevity]
remote.origin.url=https://github.com/DummyOrg/DummyProject
http.https://github.com/.extraheader=AUTHORIZATION: basic ***
branch.cycle21/fix/fix-unity-build-ci-broken.remote=origin
branch.cycle21/fix/fix-unity-build-ci-broken.merge=refs/heads/cycle21/fix/fix-unity-build-ci-broken

###########################
#        Activating       #
###########################
Requesting activation
Activation failed, with exit code -1073741515
Error: Build failed with exit code 1

How to reproduce

Use the following GitHub Actions workflow step on a windows-latest runner.

- name: Build Player
  id: build_step
  uses: game-ci/unity-builder@v4
  env:
    UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
    UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
    UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
  with:
    projectPath: DummyProject
    targetPlatform: StandaloneWindows64
    buildsPath: 'builds'
    allowDirtyBuild: true
    buildMethod: DummyNamespace.CIBuildConfigurations.BuildCI
    customParameters: '--buildType ${{ env.BUILD_TYPE }} --customBuildPath builds'
    versioning: None

The build will fail at the Unity activation step with the reported exit code.

Expected behavior

Unity should activate successfully within the Windows container and continue with the build process without exiting early.

Additional details

  • The same action and project was getting successfully built on 10th Oct 2025. But failing now.
  • Fails consistently for Windows IL2CPP builds.
  • Docker image used: unityci/editor:windows-2022.3.62f2-windows-il2cpp-3
  • Action version: game-ci/unity-builder@v4.7.0
  • Unity version: 2022.3.62f2
  • Build log attached above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions