Skip to content

Index out of bounds error with WebGL #1705

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

Open
kvark opened this issue Dec 29, 2017 · 0 comments
Open

Index out of bounds error with WebGL #1705

kvark opened this issue Dec 29, 2017 · 0 comments

Comments

@kvark
Copy link
Member

kvark commented Dec 29, 2017

Not much info I could extract so far, since we can only use "Release" configuration, where there is no symbols... Creating to keep track of the issue anyway.
Issue happens when running "shadow" and "skybox" examples

RuntimeError: index out of bounds

wasm-function[1320]
file:///home/kvark/Code/gfx/target/wasm32-unknown-emscripten/release/examples/skybox-4ca3e9545fd8312a.js:624823:1
wasm-function[1724]
file:///home/kvark/Code/gfx/target/wasm32-unknown-emscripten/release/examples/skybox-4ca3e9545fd8312a.js:1036433:1
Module.dynCall_iiii
file:///home/kvark/Code/gfx/target/wasm32-unknown-emscripten/release/examples/skybox-4ca3e9545fd8312a.js:1:264075
handlerFunc
file:///home/kvark/Code/gfx/target/wasm32-unknown-emscripten/release/examples/skybox-4ca3e9545fd8312a.js:1:135663
jsEventHandler
file:///home/kvark/Code/gfx/target/wasm32-unknown-emscripten/release/examples/skybox-4ca3e9545fd8312a.js:1:132158
bors bot added a commit that referenced this issue Dec 29, 2017
1706: More Emscripten support r=msiglreith a=kvark

## Intro
This is a big follow-up to #1681 and #1685

After being blocked by rust-lang/rust#47023, I got stuff building in release, so continued porting the examples over. Note: there is a lot of shader code duplication, we need some (simple) templating/preprocessor there.

## Environment

OS: Linux + Firefox Nightly,

Emscripten: built from source with the following changes:
  - integrated emscripten-core/emscripten#5951
  - `USE_WEBGL2=1` is forcefully set in "settings.js"

## Status

🎉 Work 🎉 : triangle, cube, flowmap, blend, gamma, terrain, ubo_tilemap

Almost works: mipmap - see #1704

Not tested: deferred (too many shaders!), performance

Blocked by the lack of buffer mapping: instancing

Blocked by the lack of geometry/tessellation shader support: particle, render_target, terrain_tessellated

Fail to run: shadow, skybox - see #1705

## Proof
![gfx-emscripten-ubo_tilemap](https://user-images.githubusercontent.com/107301/34429974-5e6678d8-ec2d-11e7-91c7-2e4f3746e416.png)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant