hydrixos / raycaster-rust Goto Github PK
View Code? Open in Web Editor NEWA Ray Caster in Rust (+Webassembly)
License: MIT License
A Ray Caster in Rust (+Webassembly)
License: MIT License
Hi!
I forked your project and modified it to use hyperbolic space, and would like to release it for web.
Problem is, when I build it for web using build-web.sh
using latest stable Rust and latest Emscripten SDK, I'm getting blank window in the browser and the console says this:
Calling stub instead of sigaction() 3 raycaster.js:1:200486
emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up. raycaster.js:1:100579
_emscripten_set_main_loop_timing https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
_eglSwapInterval https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:0
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:576087
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:556576
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:223620
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:207062
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:98679
invoke_vii https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:63431
invoke_vii https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:55167
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:60324
invoke_ii https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:124368
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:58224
createExportWrapper https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
callMain https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
doRun https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
run https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
runCaller https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
removeRunDependency https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
receiveInstance https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
receiveInstantiatedSource https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
(asynchroniczny: promise callback)
instantiateAsync https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
(asynchroniczny: promise callback)
instantiateAsync https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
createWasm https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
exception thrown: RuntimeError: unreachable executed,@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[438]:0x180cb
invoke_vii@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:221535
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[346]:0xf8f1
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[321]:0xe343
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[344]:0xf3b8
browserIterationFunc@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:186476
runIter@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:105494
Browser_mainLoop_runner@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:103972
FrameRequestCallback*requestAnimationFrame@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:114682
Browser_mainLoop_scheduler_rAF@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:101118
setMainLoop@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:104348
_emscripten_set_main_loop@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:186491
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[320]:0xd77f
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[336]:0xeba4
invoke_ii@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:222359
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[561]:0x1e5d0
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:wasm-function[322]:0xe370
createExportWrapper/<@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:22853
callMain@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:257917
doRun@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:258509
run@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:258673
runCaller@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:257350
removeRunDependency@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:21746
receiveInstance@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:23923
receiveInstantiatedSource@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:24220
promise callback*instantiateAsync/<@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:24806
promise callback*instantiateAsync@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:24709
createWasm@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:25266
@https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1:218429
raycaster.js:1:105616
Uncaught Error: undefined raycaster.wasm:98507:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:98507
invoke_vii https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:63729
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:58179
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:62392
browserIterationFunc https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
runIter https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
Browser_mainLoop_runner https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
(asynchroniczny: FrameRequestCallback)
requestAnimationFrame https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
Browser_mainLoop_scheduler_rAF https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
setMainLoop https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
_emscripten_set_main_loop https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:55167
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:60324
invoke_ii https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:124368
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.wasm:58224
createExportWrapper https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
callMain https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
doRun https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
run https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
runCaller https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
removeRunDependency https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
receiveInstance https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
receiveInstantiatedSource https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
(asynchroniczny: promise callback)
instantiateAsync https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
(asynchroniczny: promise callback)
instantiateAsync https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
createWasm https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
<anonimowa> https://elo-siema.github.io/hyperbolic-raycaster-rust/html/raycaster.js:1
This happens both when hosted and using emrun index.html
, and with both your original project and my fork.
Would you mind trying to build and run it with your current toolchain, or perhaps do you know what was the latest Rust and Emscripten versions that were able to build it?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.