Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emscripten_get_orientation_status breaks with ASSERTIONS #21447

Closed
cwoffenden opened this issue Feb 28, 2024 · 0 comments
Closed

emscripten_get_orientation_status breaks with ASSERTIONS #21447

cwoffenden opened this issue Feb 28, 2024 · 0 comments

Comments

@cwoffenden
Copy link
Contributor

Tested with the latest main (6105e76) and 3.1.55 Emscripten. A simple repro is:

#include <emscripten/html5.h>

int main() {
	EmscriptenOrientationChangeEvent e;
	emscripten_get_orientation_status(&e);
}

Build with: emcc -O0 -g3 -s ASSERTIONS=2 -o index.html test.c

This is also part of the existing HTML5 tests:

ret = emscripten_get_orientation_status(&oce);

A pre-built version of the simple repro can be seen here:

https://wip.numfum.com/2024-02-28/emscripten/orientation-status/index.html

The error being:

[Error] Aborted(Assertion failed: value (-2147483648) too small to write as 32-bit value)
[Error] RuntimeError: Aborted(Assertion failed: value (-2147483648) too small to write as 32-bit value)

A fix was put in #21428. This breaks for the same reason as #21362.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant