question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RuntimeError: float unrepresentable in integer range

See original GitHub issue

Executing 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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cancerberoSgxcommented, Sep 21, 2018

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)

0reactions
KnicKniccommented, Sep 22, 2018

#13 solves the problem.

Thanks for the FIX!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found