Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved float unrepresentable in integer range

    Qt for WebAssembly
    2
    2
    256
    Loading More Posts
    • 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
      mikhail_kr last edited by

      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 Reply Quote 0
      • lorn.potter
        lorn.potter last edited by

        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 Reply Quote 0
        • First post
          Last post