Get error "Uncaught RuntimeError: unreachable" when initialize
See original GitHub issueDescribe the bug Hi,
Im getting this error:
It happen when i call FPDF.Init()
.
It start happen only after use recent version of “emscripten”. Im using now “2.0.34” (but tested with others) to keep it updated, but need solve this error.
To Reproduce
- Download latest pdfium from my branch: https://www.dropbox.com/s/n1bz12hcvif2h0a/artifact-wasm-4692.zip?dl=1
- Unzip it:
unzip artifact-wasm-4692.zip
- Untar it:
tar -xzvf wasm.tgz
- Execute:
cd "release/node"
- Execute:
python -m http.server
- Open in browser:
http://localhost:8000/?debug=1
- Execute on browser console:
FPDF.Init()
Expected behavior
Initialize PDFium without problems.
Screenshots
System (please complete the following information):
- OS: [e.g. macos]
- Version [e.g. bigsur]
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
RuntimeError: unreachable in rustwasm - Stack Overflow
The issue is that dm.children.len() is 1 so immediately after the first iteration of the while loop, then i becomes 1 which triggers...
Read more >JS catch wasm out of memory?
My understanding is that if a WASM module running in a JS host crashes, then a WebAssembly. RuntimeError exception is thrown. You should...
Read more >Getting error: RuntimeError: unreachable - Bug Reports
I have one user who is reporting occasionally getting this error. I haven't been able to reproduce it on any other computer but...
Read more >Warning: unreachable code after return statement - JavaScript
When an expression exists after a valid return statement, a warning is given to indicate that the code after the return statement is...
Read more >Debugging - Rust and WebAssembly
Rather than getting cryptic, difficult-to-debug RuntimeError: unreachable executed error messages, this gives you Rust's formatted panic message.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried all optimization levels, but still failling.
My stacktrace:
I change again to “2.0.24” to finish the PR and will open another PR to solve it.
I tried the same thing for emscripten 3.0.0 and this problem still 😦