RuntimeError: float unrepresentable in integer range
See original GitHub issueExecuting commands like the following in small but complex (shaded) images like photos will throw magick.js:74 exception thrown: RuntimeError: float unrepresentable in integer range,
["convert", "pic.jpg", "-charcoal", "5", "picOut.jpg"]
["convert", "pic.jpg", "-segment", "1x1", "+dither", "-colors", "2", "-edge", "1", "-negate", "-normalize", "picOut.jpg"]
Work on simple images, but fails with shaded pictures like photographs (very small ones).
Seems to be a known problem in emscripten that seems to be solved adding a compilation flag: https://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#trap-mode . I’m investigating what’s the case with this project, and I just wanted to track this problem in this issue. Thanks.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Float unpresentable in integer range? - Unity Forum
This is likely due to audio pitch setting being configured to a very small or very large value. You can disable that error...
Read more >RuntimeError: float unrepresentable in integer range · Issue #83
The problem is that these values are outside the range where 64-bit floats can represent every integer, so 0x7fff_ffff_ffff_ffff is the same ...
Read more >[WebGL] [SVG] "Runtime error: float unrepresentable in ...
[WebGL] [SVG] "Runtime error: float unrepresentable in integer range" is thrown on WebGL builds when using Vector Graphics.
Read more >[Bug][2.02.04] WebGL crash - float unrepresentable in integer ...
Hi There, If our WebGL project is left running, after ~70minutes, an exception occurs in the FMOD stack which throws every frame ...
Read more >WebAssembly error/bug ?! float unrepresentable in integer ...
I compiled a Qt app to WebAssembly using Emscripten. When I try to run the app in the browser I am seeing this...
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
https://github.com/KnicKnic/WASM-ImageMagick/pull/13 solves the problem.
(the problem with jpg support I was having locally seems to be fixed now)
Thanks for the FIX!