Skip to content

Web app: some exports can still run out of memory before their size limit #3153

Done

Description

@Mavrick-F

In the browser, an export that grows past the memory the tab has crashes it instead of being refused with a way out (AGENTS.md › Size for real data: running out of memory partway counts as a crash). #3124 bounds exports run by command: their writers stop at the 256 MiB download limit, and a layer read in place is refused before or while it is read. These paths are still built whole, or read whole, before any limit applies:

  • Export Features and Export Table buttons (ui.exportLayer / ui.exportTable download branch, crates/ui-egui/src/lib.rs): no size limit on the file, and a streamed layer is read whole first.
  • Pictures and finished documents: map PNG (up to 8192 × 8192 pixels), layout and report PNG and SVG, and a whole PDF are checked only once made. Capping them needs the render crate's writers to take the limit, or a streaming PNG encoder.
  • Tool file outputs (browser geoprocessing files, gp queue_file): built whole, then checked against the queue.
  • Exporting to another coordinate system: makes a projected copy of the whole layer before writing.

Each should either work in pieces or size its limit up front (memory::planned) and refuse past it, saying what to do instead (export a selection or a clipped layer, or use the desktop app), with a test that an over-limit export is refused without building the whole file.

Found while fixing #3124.

Activity

  1. Mavrick-F commented on Nov 28, 2026

    @Mavrick-F
    MemberAuthor

    One more, from the follow-up to #3124: the ribbon's save buttons in the web app (project, map, layer, style and the other item saves) download with no size limit, while the same saves run by command are now held to the 256 MiB download limit. They belong with the Export Features and Export Table buttons above.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions