Skip to content

Increase shared memory allocation for linux runners #14119

@vitvakatu

Description

@vitvakatu

I found out in #14069 that our package tests are running inside a docker container with very limited shared memory available. According to my research, it is only 64 Mb by default, while it can take multiple gigabytes on a typical user machine.

Low shared memory limit can cause crashes of Chrome renderer when running the app without special Chrome options:

  • enable-native-gpu-memory-buffers: true
    Enable native CPU‑mappable GPU memory buffer support (primarily for Linux)
  • ignore-gpu-blocklist: true
    Override Chrome’s blocked GPU list to allow GPU acceleration on otherwise blocked hardware.

Surprisingly, both these options are required to make our package viable. We should rather increase shared memory allocation using --shm-size flag for docker, and remove these Chrome options from electron-client/index.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    -ci-guig-electronGUI: electron application specific

    Type

    No type

    Projects

    Status

    ❓New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions