emscripten-core / emscripten-core/emscripten

Why does Firefox sometimes throws an error using fread()?

Open
#14,954 1 comment 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

Hi, why does Firefox Desktop/Mobile sometimes throws an error using fread() especially after pressing the refresh button?

```
FILE *file = fopen(filepath.c_str(), "rb");
char buffer[100];
size_t bufferSize = fread(buffer, sizeof(char), sizeof(buffer), file);
```

`exception thrown: RuntimeError: indirect call to null,@http://192.168.0.200/website/plugin/emsc.wasm:wasm-function[721]:0x2306c`

On Chrome, Edge, Opera and Mozilla Nightly it works.

Thanks...

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.