emscripten-core / emscripten-core/emscripten

Unwind error in game

Open
#16,071 5 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

Please include the following in your bug report:

**Version of emscripten/emsdk:**
3.1

My simple game is throwing:
```
Uncaught (in promise) unwind
```

There is a code in generate .js file:

```
if (simulateInfiniteLoop) {
throw "unwind"
}
```

![image](https://user-images.githubusercontent.com/395096/150266927-58e1cf58-35b0-4cbb-80d9-a15f72e43ea8.png)

Demo:
https://nativium.s3.amazonaws.com/game/1.0.0/index.html

This only happen when i start the game from function `Game.Core.Initialize(640, 640, 1);`. If i let it from `main` function, no error happen.

What im doing wrong?

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.