Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. float unrepresentable in integer range
Qt 6.12 LTS is out! See what's new in the release blog

float unrepresentable in integer range

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 2 Posters 804 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mikhail_kr
    wrote on last edited by
    #1

    Hi

    I get the following "Uncaught RuntimeError" in Chrome browser while running "Application Example" (one of the standard qt sample projects):

    application.wasm:1 Uncaught RuntimeError: float unrepresentable in integer range
    at __ZN20QWasmEventTranslator12processMouseEiPK20EmscriptenMouseEvent (http://localhost:30005/application.wasm:wasm-function[870]:0x3bda48)
    at __ZN20QWasmEventTranslator8mouse_cbEiPK20EmscriptenMouseEventPv (http://localhost:30005/application.wasm:wasm-function[859]:0x3ba36f)
    at dynCall_iiii (http://localhost:30005/application.wasm:wasm-function[22872]:0x14ddc02)
    at eval (eval at completeLoadEmscriptenModule (http://localhost:30005/qtloader.js:443:14), <anonymous>:1893:22)
    at Object.mouseEventHandlerFunc [as handlerFunc] (eval at completeLoadEmscriptenModule (http://localhost:30005/qtloader.js:443:14), <anonymous>:11907:13)
    at HTMLCanvasElement.jsEventHandler (eval at completeLoadEmscriptenModule (http://localhost:30005/qtloader.js:443:14), <anonymous>:7894:24)

    I have tried to add this in my project file: QMAKE_CXXFLAGS += -s "BINARYEN_TRAP_MODE='clamp'"

    But it does not help me.

    Any ideas how to solve this

    1 Reply Last reply
    0
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on last edited by
      #2

      What version of Qt and what version of Emscripten are you using?

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved