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.8.0 seems to have memory issues

Qt 6.8.0 seems to have memory issues

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
4 Posts 3 Posters 490 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.
  • L Offline
    L Offline
    LZHD
    wrote on 11 Oct 2024, 15:13 last edited by
    #1

    I use multi-line build,if the loader switches too frequently or if too many projects are loaded or destroyed at one time, the memory will be exceeded or an exception will not be captured directly, the page will freeze directly or become unresponsive (stackview cannot be pushed). If you use Mediaplayer, this problem will occur more frequently and autoPlay will also fail. It is normal in 6.7.2.Is there any way to fix it?

    C 1 Reply Last reply 11 Oct 2024, 15:36
    0
    • L LZHD
      11 Oct 2024, 15:13

      I use multi-line build,if the loader switches too frequently or if too many projects are loaded or destroyed at one time, the memory will be exceeded or an exception will not be captured directly, the page will freeze directly or become unresponsive (stackview cannot be pushed). If you use Mediaplayer, this problem will occur more frequently and autoPlay will also fail. It is normal in 6.7.2.Is there any way to fix it?

      C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 11 Oct 2024, 15:36 last edited by
      #2

      @LZHD said in Qt 6.8.0 seems to have memory issues:

      there any way to fix it?

      Provide a minimal, compilable example to reproduce the issue and report a bug afterwards if the problem can be reproduced.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lorn.potter
        wrote on 12 Oct 2024, 01:04 last edited by
        #3

        What are the exact error messages in console?
        You might try adding
        target_link_options(<your target> PRIVATE -s MAXIMUM_MEMORY=1GB)
        to your CMakeLists.txt

        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
        • L Offline
          L Offline
          LZHD
          wrote on 12 Oct 2024, 03:06 last edited by
          #4

          I have tried enabling asynchronous, increasing initialization memory, and adjusting the maximum memory, but all have no effect. It is random and the browser console cannot capture useful errors. Sometimes it is memory access out of bounds at .wasm.QQuickDeliveryAgentPrivate:: Sometimes isUncaught RuntimeError: null function or function signature mismatch
          at .wasm.QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) It is also possible that there is only uncaught

          1 Reply Last reply
          0

          3/4

          12 Oct 2024, 01:04

          • Login

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