Skip to content

[Bug]: Windows x64 3.1.23 安装器初始化即崩溃(0xC0000005,NSIS 的 System.dll @0x1581),解包出的程序也无法启动(0x80000003) #642

Backlog

Description

@Explicit33

Product or interface

Desktop app

Version

Windows 11

Platform

Windows

OS version and architecture

Windows 11 x64

Issue area

Startup / install / update

Desktop log upload ID (optional)

No response

Steps to reproduce

  1. Download MiniMax Code Setup 3.1.23-x64.exe (302,103,024 bytes) from the CN download page.
    • Get-AuthenticodeSignature → Valid, signer CN=上海稀宇科技有限公司
    • SHA256 3B55923D206E780055620E170E425ECD6FF0243C8C1FD177F9049D00BFA33D1A
  2. Double-click it (or run Start-Process -ArgumentList '/S'): 1–2 s busy cursor, then nothing. No wizard, no UAC prompt, no SmartScreen prompt, no error dialog — the process is simply gone. Reproduced >10 times, identical every time.
  3. Fallback attempt: open the installer as an NSIS archive, extract $PLUGINSDIR\app-64.7z (947 files / 178 folders / 1,068,261,419 bytes — verified identical to the archive listing), run MiniMax Code.exe. It exits in ~70 ms with 0x80000003; no window, no dialog, no log.

Expected and actual behavior

Evidence — failure 1

The installer's own log contains exactly one line and nothing else, so it dies right after init:

%LOCALAPPDATA%\MiniMax\installer-logs\nsis-com.minimax.agent.cn-3.1.23-<pid>.log
ts_ms=... pid=... version=3.1.23 nsis_error=1 event=installer_init install_dir=C:\Users\<user>\AppData\Local\Programs\MiniMax Code exe=...

Application event log (ID 1000):

Faulting application name: MiniMax Code Setup 3.1.23-x64.exe, version: 3.1.23.240, time stamp: 0x5c157f86
Faulting module name: System.dll, version: 0.0.0.0, time stamp: 0x5c157efa
Exception code: 0xc0000005   Fault offset: 0x00001581

The WER report shows that System.dll is not a Windows DLL — it is an NSIS plug-in unpacked from the installer's own data:

LoadedModule[42]=C:\Users\<user>\AppData\Local\Temp\nsuB7AD.tmp\System.dll   (PE32, 12,288 bytes, unsigned)
LoadedModule[43]=C:\Users\<user>\AppData\Local\Temp\nsuB7AD.tmp\UAC.dll

Parsing the plug-in as a PE, 0x1581 sits inside its exported Store function and is a byte-copy loop:

2b cf      sub  ecx, edi
8a 04 11   mov  al, byte ptr [ecx+edx]   <-- access violation
88 02      mov  byte ptr [edx], al
75 f7      jnz  short loop

i.e. memcpy(dst, src, len) was called with a NULL/invalid pointer — the installer's init code hands the plug-in a bad pointer and the plug-in does not check it.

Evidence — failure 2

  • --enable-logging=stderr --v=1 --log-file=<path> writes zero bytes; %APPDATA%\MiniMax, %LOCALAPPDATA%\MiniMax Code, %USERPROFILE%\.minimax are never created → the main-process JS never runs.
  • Renaming resources\app.asar away changes nothing (same 0x80000003, same timing) → not caused by MiniMax's JS.
  • --disable-gpu, --disable-gpu --disable-gpu-compositing, --use-angle=swiftshader, --use-gl=swiftshader, --in-process-gpu, --single-process, --no-sandbox, --user-data-dir=<ascii>, --disable-gpu-info-collection — all exit 0x80000003, 56–82 ms, 6/6 identical runs.
  • The app ships dist/main/modules/gpu-guard.js, whose header documents exactly this code:
/**
 * Windows GPU crash guard.
 *
 * Some Windows GPU drivers can crash Chromium during startup with
 * STATUS_BREAKPOINT (0x80000003). The guard writes a startup sentinel before
 * the GPU process is likely to initialize; if the previous launch did not clear
 * it, the next launch falls back to software rendering for the same Electron
 * version.
 */

Its fallback is a JSON sentinel at %APPDATA%\MiniMax\.gpu-crash-sentinel ({"electronVersion":"42.11.16"}) that makes the next launch call app.disableHardwareAcceleration(). I pre-created that sentinel by hand and launched again: still 0x80000003, and the userData directory stayed empty — the abort happens before the guard can run, so the guard can never fire on this machine.

  • Binary versions: electron 42.11.16, chrome 148.0.7778.280, node 24.19.0.

What has been ruled out

Check Result
Installer signature / integrity Authenticode Valid, MiniMax signer, hash above
Extracted payload integrity 947 files / 1,068,261,419 bytes exactly match app-64.7z; both exes signed; PE machine 0x8664 (x64) — not a wrong-arch payload
Disk / filesystem 130 GB free (C:), 86 GB free (H:), both NTFS and healthy
Permissions Per-user install, manifest asInvoker, target %LOCALAPPDATA% — no elevation needed
SmartScreen / Defender No prompt, no SmartScreen events; Defender real-time protection off
DEP / ASLR / CFG / HVCI All defaults (DataExecutionPrevention_SupportPolicy=2, no Get-ProcessMitigation overrides, HVCI disabled)
AppLocker / CodeIntegrity / IFEO No block events, no Image File Execution Options entry for either exe
ANSI code page ACP=936 (the "Beta: UTF-8 worldwide" option is not enabled)
Memory / commit 18.9 GB / 30.3 GB committed (62 %), 5 GB free physical — no allocation pressure
Security-software interception No block/quarantine entries in the locally installed AV log; pausing its protection changed nothing for either failure
Leftover state No residual MiniMax* process, registry key or partial install directory

Related issue

#640 reports the identical faulting module and offset (System.dll @ 0x1581) on arm64 / 3.1.22. Same defect, different architecture and build — so this is an installer bug, not a machine-specific environment problem.

Suggested fix

  1. In the installer .onInit, NULL-check the results of System::Alloc / System::StrAlloc / System::Copy and fail with a readable message instead of passing NULL into the plug-in.
  2. Ship a portable/zip download (or expose app-64.7z officially). Today, if the NSIS installer fails, users have no supported way to obtain the app — and extracting it manually fails too (failure 2).
  3. Move the gpu-guard decision earlier — a JS-level sentinel cannot help when the browser process aborts before the main script runs. Decide it in C++/launcher code and expose a documented "force software rendering" switch.

Additional context

Full WER dumps are available (10 AppCrash reports) plus the plug-in hash for comparison:

System.dll SHA256: 3EB38AE99653A7DBC724132EE240F6E5C4AF4BFE7C01D31D23FAF373F9F2EACA

Redacted error summary

Screenshots

No response

Before submitting

  • I have searched existing issues.
  • I have included my version and removed sensitive information.

Activity

  1. added
    bug
    needs-triage
    on Dec 4, 2026
  2. added
    desktop
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdesktopneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions