Skip to content

error: Buffer size 323712232 is greater than the maximum buffer size (268435456) #80

Description

@TheRealMorgenfrue

Describe the bug
Loading the Gene Ontology (GO) causes the following panic:

panicked at /home/cachy/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-27.0.1/src/backend/wgpu_core.rs:1570:18:
wgpu error: Validation Error

Caused by:
  In Device::create_buffer, label = 'edge_line_vertex_buffer'
    Buffer size 323712232 is greater than the maximum buffer size (268435456)

Serialization info:

Total solutions: 217837
Elements       : 51842
Edges          : 70007
Labels         : 51853
Cardinalities  : 0
Characteristics: 0

To Reproduce
Steps to reproduce the behavior:

  1. Make sure WebGL is enabled (not WebGPU)
  2. Load the Gene Ontology
  3. Check browser console

Expected behavior
The only limit for the renderer should be available memory.

Note that while WebGPU does not panic with GO, it also suffers from this same problem (but only with buffers >1GB).

Desktop (please complete the following information):

  • OS: CachyOS x86_64
  • Browser: Firefox 148.0.2 64-bit

Additional context
We could maybe look into chunking large buffers, i.e., split a large buffer into multiple smaller buffers.
Some resources in that direction:

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebGLRelated to the WebGL backendWebGPURelated to the WebGPU backendbugSomething isn't working
    No fields configured for Visualization.

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions