Skip to content

"Maximum call stack size exceeded" on Safari 18.2 #2

@rhashimoto

Description

@rhashimoto

@maccman @vojto @ocavue

After many queries, Safari 18.2 can hang or produce a "Maximum call stack size exceeded" WebAssembly error from wa-sqlite.

Reproduce with this test page. This fails for me after ~4000-10000 queries (depending if you use dist or debug wa-sqlite) on Safari 18.2 while it has not been observed to fail on Safari Technology Preview, Chrome 132, or Firefox 134 for 1 million queries.

It is possible this is a stack leak similar to this one - this can be investigated as done here.

I think a browser bug is also a strong possibility. Since it doesn't appear in Safari Technology Preview, we can look at recently closed WebKit bugs to see if there is anything interesting there.

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