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. pthread send an error (qtloader.js)
Forum Updated to NodeBB v4.3 + New Features

pthread send an error (qtloader.js)

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 2 Posters 567 Views
  • 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.
  • B Offline
    B Offline
    banana.joe
    wrote on 12 Oct 2020, 08:01 last edited by
    #1

    Hey,

    currently I'm porting my PyQT based project (Pythonic) to Qt WASM.

    It general it works pretty well but I got stuck when I wanted to use multi-threading due to drag & drop support. I followed the instructions on the related wiki page:

    • Cloned the Qt Git-repository (git://code.qt.io/qt/qt5.git)
    • Checkout 5.15.1 branch
    • Init repository
    • Configured and build with emsdk 1.39.8

    To provide the webdata I run the eventlet WSGI server: I also set the header:

    alt text

    When I open http://localhost:7000/ on Firefox 81.0.1, I only see the Qt logo but it gets stuck during loading. The console output in Firefox says:

    pthread sent an error! qtloader.js:382:25
    

    The mentioned line in qtloader.js is only the Module.prinerr method so I assume that not the root cause.

    What could went wrong here?
    How can I further debug this issue?
    Should I have used Qt v5.15 instead of 5.15.1?

    You can reproduce the behavoir with the following steps:

    • git clone https://github.com/hANSIc99/Pythonic.git
    • git checkout dev
    • cd Pythonic/src/PythonicWeb/
    • python3 main.py
    • Open A browser an go to http://localhost:7000/

    Thank you in advance!

    J 1 Reply Last reply 12 Oct 2020, 08:07
    0
    • B banana.joe
      12 Oct 2020, 08:01

      Hey,

      currently I'm porting my PyQT based project (Pythonic) to Qt WASM.

      It general it works pretty well but I got stuck when I wanted to use multi-threading due to drag & drop support. I followed the instructions on the related wiki page:

      • Cloned the Qt Git-repository (git://code.qt.io/qt/qt5.git)
      • Checkout 5.15.1 branch
      • Init repository
      • Configured and build with emsdk 1.39.8

      To provide the webdata I run the eventlet WSGI server: I also set the header:

      alt text

      When I open http://localhost:7000/ on Firefox 81.0.1, I only see the Qt logo but it gets stuck during loading. The console output in Firefox says:

      pthread sent an error! qtloader.js:382:25
      

      The mentioned line in qtloader.js is only the Module.prinerr method so I assume that not the root cause.

      What could went wrong here?
      How can I further debug this issue?
      Should I have used Qt v5.15 instead of 5.15.1?

      You can reproduce the behavoir with the following steps:

      • git clone https://github.com/hANSIc99/Pythonic.git
      • git checkout dev
      • cd Pythonic/src/PythonicWeb/
      • python3 main.py
      • Open A browser an go to http://localhost:7000/

      Thank you in advance!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Oct 2020, 08:07 last edited by
      #2

      @banana-joe said in pthread send an error (qtloader.js):

      multi-threading due to drag & drop support

      Why do you need multi-threading for drag&drop?!

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply 12 Oct 2020, 08:26
      0
      • J jsulm
        12 Oct 2020, 08:07

        @banana-joe said in pthread send an error (qtloader.js):

        multi-threading due to drag & drop support

        Why do you need multi-threading for drag&drop?!

        B Offline
        B Offline
        banana.joe
        wrote on 12 Oct 2020, 08:26 last edited by
        #3

        @jsulm I get an exception message when the exec() method (QDrag) is called (toolmaster.h: mousePressEvent). I thought it wad due to the missing multithreading support.

        This is the error message when I compile it with the default 5.15.1 binaries (console output in Firefox):

        Uncaught Please compile your program with async support in order to use asynchronous operations like emscripten_sleep
        
        1 Reply Last reply
        0

        1/3

        12 Oct 2020, 08:01

        • Login

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