Skip to content

"Range Error: Invalid string length" in JS when launching web worker #1651

@corneliusroemer

Description

@corneliusroemer

Just got this error running on ~3k sequences, will try to pin it down to a single sequence using: https://master.clades.nextstrain.org/?dataset-name=nextstrain/sars-cov-2&input-tree=https://nextstrain.org/charon/getDataset?prefix=staging/nextclade/sars-cov-2

Also crashes on clades.nextstrain.org with standard SARS-CoV-2 dataset.

Crash appears to happen after the tree building part.

Sequences shared privately as they are GISAID: https://neherlab.slack.com/archives/C015PFP5V44/p1749989951782119


Error message: RangeError: Invalid string length

Nextclade version 3.15.0 (commit: d4174b1, branch: master)

Memory available: 3586 MBytes

User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Browser details: {"browser":{"name":"Chrome","version":"137.0.0.0"},"os":{"name":"macOS","version":"10.15.7","versionName":"Catalina"},"platform":{"type":"desktop","vendor":"Apple"},"engine":{"name":"Blink"}}

Call stack:

RangeError: Invalid string length
    at JSON.stringify (<anonymous>)
    at Object.eval [as run] (src/workers/AnalysisWorkerPool.ts:155:96)
    at WorkerPool.eval (node_modules/threads/dist/master/pool.js:85:48)
    at Generator.next (<anonymous>)
    at fulfilled (node_modules/threads/dist/master/pool.js:5:58)

Component stack:

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    s:nextclade_webt:bugType: bug, error, something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions