Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Qt 6.5 WASM Failing to start on iOS or Safari
Forum Updated to NodeBB v4.3 + New Features

Qt 6.5 WASM Failing to start on iOS or Safari

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
2 Posts 1 Posters 474 Views 1 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.
  • AkaiA Offline
    AkaiA Offline
    Akai
    wrote on last edited by
    #1

    Is anyone else experiencing a WASM issue of not starting on Safari properly (any current version) since moving to Qt 6.5 from 6.4.*?

    I have a test site http://minebombing.surge.sh
    this runs on android, windows but won't run on iOS or on Mac using Safari with the error:
    "Application exit (SyntaxError: The string did not match the expected pattern.)"

    Trying to debug this online using a Safari emulator (grateful to SauceLabs.com to do this with) found that when trying to get the OpenGLWidget context on creation, that converting the object string (I think that's what it is called) from an int value to a cString using UTF8ArrayToString would convert it from a number to a blank string while in the findEventTarget function. I don't know if that is the issue, but just after that I get the error.

    //stack
    [...]
    doRun
    callMain
    (AnonymousFunction)
    _emscripten_webgl_do_create_context
    findCanvasEventTarget
    findEventTarget
    maybeCStringToJsString
    UTF8ToString
    UTF8ArrayToString

    1 Reply Last reply
    1
    • AkaiA Offline
      AkaiA Offline
      Akai
      wrote on last edited by
      #2

      Here is the same code compiled with Qt 6.4.3 and emsdk 3.1.14:

      http://bombmining.surge.sh/

      This runs on Safari and iOS fine - and from the looks of it there have been a number of changes in the HTML, and perhaps elsewhere too between this version Qt 6.4.3 emsdk 3.1.14 and the Qt 6.5 emsdk 3.1.25 version that isn't running on iOS and Safari

      Any help would be greatly appreciated, Thanks!

      1 Reply Last reply
      1

      • Login

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