{"record":{"id":"e6dd42316f15d802","repo":"stablyai/orca","slug":"base-run-has-disable-gpu-hardware-acceleration","errorCode":null,"errorMessage":"Base run has --disable-gpu; hardware acceleration is disabled and would mask the GPU sandbox path.","messagePattern":"Base run has --disable-gpu; hardware acceleration is disabled and would mask the GPU sandbox path\\.","errorType":"exception","errorClass":"MissingReproductionError","httpStatus":null,"severity":"warning","filePath":"config/scripts/verify-linux-wayland-gpu-sandbox.mjs","lineNumber":270,"sourceCode":"          disableGpuSandbox: electronApp.commandLine.hasSwitch('disable-gpu-sandbox'),\n          disableGpu: electronApp.commandLine.hasSwitch('disable-gpu'),\n          ozonePlatform: electronApp.commandLine.getSwitchValue('ozone-platform'),\n          enableFeatures: electronApp.commandLine.getSwitchValue('enable-features')\n        })),\n      rendererSetupTimeoutMs\n    )\n    logPhase(\n      'app.switches',\n      `disableGpuSandbox=${commandLineSwitches.disableGpuSandbox} disableGpu=${commandLineSwitches.disableGpu}`\n    )\n\n    if (mode === 'expect-repro' && commandLineSwitches.disableGpuSandbox) {\n      throw new MissingReproductionError(\n        'Base run already has --disable-gpu-sandbox; cannot validate the unfixed Wayland path.'\n      )\n    }\n    if (mode === 'expect-repro' && commandLineSwitches.disableGpu) {\n      throw new MissingReproductionError(\n        'Base run has --disable-gpu; hardware acceleration is disabled and would mask the GPU sandbox path.'\n      )\n    }\n    if (mode === 'verify-fix' && !commandLineSwitches.disableGpuSandbox) {\n      throw new Error('Expected --disable-gpu-sandbox on Linux Wayland, but it was absent.')\n    }\n    if (mode === 'verify-fix' && commandLineSwitches.disableGpu) {\n      throw new Error('Expected hardware acceleration to remain enabled, but --disable-gpu is set.')\n    }\n\n    logPhase('window.first')\n    page = await runWithTimeout('first renderer window', () => app.firstWindow(), timeoutMs)\n    logPhase('window.load')\n    await runWithTimeout(\n      'renderer domcontentloaded',\n      () => page.waitForLoadState('domcontentloaded'),\n      rendererSetupTimeoutMs\n    )","sourceCodeStart":252,"sourceCodeEnd":288,"githubUrl":"https://github.com/stablyai/orca/blob/1136503c6a231a16dce8f921f6fadb63d181e8db/config/scripts/verify-linux-wayland-gpu-sandbox.mjs#L252-L288","documentation":"In --mode=expect-repro, if the launched Electron app has --disable-gpu set, hardware acceleration is off entirely and the GPU sandbox code path under test would never be exercised — a crash absence here would be meaningless. The script throws MissingReproductionError so a false 'bug fixed' conclusion cannot be drawn. Like 256, this is a harness-integrity guard, not an application defect.","triggerScenarios":"mode === 'expect-repro' AND electronApp.commandLine.hasSwitch('disable-gpu') is true at line 269. Caused by software-rendering mode, a flags file forcing --disable-gpu, or a headless/nested compositor with no GL.","commonSituations":"Running under weston/XVFB without GL acceleration so the launcher forces --disable-gpu; a stale flags file; a CI GPU-less runner.","solutions":["Run on a host/compositor that provides real GPU acceleration so --disable-gpu is not auto-applied.","Remove any Electron flags file or env that injects --disable-gpu for the expect-repro run.","Confirm the GL stack works (glxinfo/eglinfo) before re-running."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if (mode === 'expect-repro' && electronApp.commandLine.hasSwitch('disable-gpu')) {\n  console.error('expect-repro needs GPU acceleration ON; --disable-gpu masks the repro.')\n}","typeGuard":null,"tryCatchPattern":"try {\n  await runScenario(app, 'expect-repro')\n} catch (error) {\n  if (error instanceof MissingReproductionError) {\n    console.error('Harness cannot reproduce; not evidence of a fix:', error.message)\n  }\n  throw error\n}","preventionTips":["Run expect-repro on a host with real GPU acceleration (not a GL-less nested compositor).","Remove any flags/env that injects --disable-gpu."],"tags":["wayland","gpu","hardware-acceleration","reproduction","test-integrity","missing-repro"],"backgroundTag":null,"analyzedSha":"1136503c6a231a16dce8f921f6fadb63d181e8db","analyzedAt":"2026-08-12T23:15:58.167Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}