emscripten-core / emscripten-core/emscripten
fstream::write on a thread fails in a way that cannot be caught
Open
- 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
Assessment
This issue has not been assessed yet.