Skip to content

kyty: on Windows, a translation stop in a compile-ahead job is not contained by KYTY_FALLBACKS #297

Done

Description

@simnJS

Found by @Ryongen in #294. On Windows, a shader translation that stops (Common::SoftExitError) inside a compile-ahead job is not contained by KYTY_FALLBACKS=1: Fallback::Containable() returns false on Windows, so the stop ends the run. Forcing Containable() to true is not a fix either: the throw then goes through the guest libc.prx __cxa_throw, whose unwinder does not find the handler in libSceAgcDriver.prx, and the process ends with terminate called after throwing an instance of 'Common::SoftExitError'.

On Linux the same stop is contained (#256 / #257 built the recompiler with exceptions for that).

What to do. Make a failed translation in a compile-ahead job on Windows end as "this program is refused" (the draw is skipped and the run goes on, as on Linux), without throwing across the guest/host module boundary. For example, catch it inside the job, in the module that throws it, and turn it into an error result, so no exception ever crosses into guest code. Keep the strict stop when KYTY_FALLBACKS is off.

Check: a Windows test where a compile-ahead job hits a translation stop: the run continues with KYTY_FALLBACKS=1, and stops as today without it. The Windows CI must stay green.

Activity

  1. added
    bug
    area: shaders
    area: windows
    medium
    needs: Windows
    on Nov 25, 2026
  2. simnJS commented on Nov 25, 2026

    @simnJS
    OwnerAuthor

    Fixed by #299 (ce1c67df6a), thanks @Ryongen.

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

    area: shadersarea: windowsbugmediumneeds: Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions