emscripten-core / emscripten-core/emscripten

fstream::write on a thread fails in a way that cannot be caught

Open
#16,548 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

My app uses std::fstream to write to the file system (IDBFS) in a thread. The write eventually fails with "RangeError: Out of memory" in _fd_write. Unfortunately control never returns from _fd_write, so there seems to be no way to gracefully handle that error. Is that the expected behaviour when out of memory?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.