@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias StopReason

    StopReason:
        | "quit"
        | "disable"
        | "uninstall"
        | "reload"
        | "upgrade"
        | "idle"
        | "failed"
        | "host-lost"

    Why the player stopped the plugin (DisposeInfo.reason, Plugin.stopReason).

    • quit: the player quits (or restarts after a lost GPU device). Every plugin is stopped at the same time, with 1 s in all (300 ms after a lost device).
    • disable: the user, or a plugin that manages plugins, switched the plugin off. Its session storage is cleared.
    • uninstall: the user uninstalls it.
    • reload: it is reloaded (from the plugin manager, or a development load with --plugin).
    • upgrade: an install or update replaces the running version; also a new version stopped because its install was cancelled (the previous version comes back).
    • idle: the plugin goes to standby and its next use starts it again; its menu items, keys, settings pages, resolvers and drop targets stay, and so does its session storage (Keep a command's state without keeping the plugin running). It comes after the idle time without use (30 s), right after a first run that holds nothing live, and when the player's limit on third-party processes or low system memory puts an idle plugin in standby early. A busy plugin never gets it, nor does a resident one (it held something live when it became ready).
    • failed: the player stops it for a fault it can still tell the plugin about: a malformed request, an unreadable or oversized line, a start that is not ready within the start timeout (60 s; the stop may come while activate still runs), an uncaught exception the shared process attributes to this plugin, and a request from the player (a resolution) it leaves unanswered for 5 minutes. The player may start it again afterwards (a built-in or resident plugin by itself, a plugin that has run before on its next use), until the fifth fault within 10 minutes.
    • host-lost: the plugin's runner saw its pipe to the player close without a stop: the player crashed or was killed. Requests are refused with disabled; clean up locally only. The player sends quit on a normal exit; read host-lost as "the player is gone", not as proof of a crash.

    Some ends are no stop at all: the plugin gets no reason and its Scope.onDispose cleanups do not run. That is the case when its own process is killed because its input queue is full or a write to it failed, when its own process fails to activate (the runner exits without cleaning up), when the process ended by itself (it crashed, or its JavaScript heap passed the 512 MB cap and V8 ended it: "ran out of memory"), and when the shared runner is restarted as a whole (a hang, a fault it cannot attribute, an unreadable line of its own, a member's full input queue, the runner exiting): every member is killed with it. Keep state that must survive such an end in storage as it changes, not only in a cleanup. Timings and restarts are in Limits.

    The player sends the reason with runtime.stop, and its runner reports host-lost. A stop that does not come from the player (a TestHost stop() without a reason) has none (undefined). A value this SDK does not know reads as undefined.

    0.6.4

    1.5.54