emscripten-core / emscripten-core/emscripten

Long preloaded file not properly read on Windows

Offen
#19,955 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
27.6k
Forks
3.6k
Ø Merge
1 T. 6 Std.
Gemergte PRs (30 T.)
109

Beschreibung

**Version of emscripten/emsdk:**
```
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.42 (6ede0b8fc1c979bb206148804bfb48b472ccc3da)
clang version 17.0.0 (https://github.com/llvm/llvm-project f3b64887de61020c09404bfee97b2fadd30df10a)
Target: wasm32-unknown-emscripten
Thread model: posix
```

**Bug Description**

In short, if a very long file (in my case, 116363 lines) is preloaded using `--preload-file`, nothing will go wrong when opening the html or js on linux. However on Windows, not all lines are included (in my case, only 112130 lines could be read), no matter using _node_ or a browser.

A reproducing example can be found at https://github.com/hjenryin/wasm_test. How results can be reproduced can be found in the readme file.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.