Skip to content

Bug: SIGINT during --headless running doesn't close Grayjay #569

@VictorVow

Description

@VictorVow

Reproduction steps

  1. Run Grayjay in a terminal in headless mode (e.g. /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=Grayjay app.grayjay.Grayjay --headless
  2. CTRL + C to send a SIGINT signal
  3. Process does not close

Actual result

Process stays alive, and it shows this error immediately after SIGINT:

[2025-06-20 19:31:07.567] [ERROR] [T] An exception occurred in the IPC
Exception: Unable to read beyond the end of the stream.
Stack Trace:    at System.IO.Stream.ReadAtLeastAsyncCore(Memory`1 buffer, Int32 minimumBytes, Boolean throwOnEndOfStream, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at DotCef.DotCefProcess.<Start>b__28_3()

Expected result

Grayjay process should close.

Grayjay Version

8

What plugins are you seeing the problem on?

All

Plugin Version

No response

Which operating system are you using?

Linux

Which OS version are you using?

Kubuntu 25.04

When do you experience the issue?

  • While logged in
  • While logged out
  • N/A

Are you using a VPN?

No

References

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions