Skip to content
  • 0 Votes
    1 Posts
    161 Views
    No one has replied
  • 0 Votes
    6 Posts
    1k Views
    JonBJ

    @vicky_mac said in Memory leak in QML example project:

    Is there anyway we can prevent that?

    No, as already replied in your other thread asking exactly the same, which you have not referenced from this topic. But you can keep asking the same. Or, you can look through the source code, find the exact point of the leak you claim, and fix it.

    Apologies, that was https://forum.qt.io/topic/152049/stackview-is-cause-of-memory-leak, you do not seem to be the same author, though they look similar.

    I also notice you are using Qt 5.12. Qt Company is not going to be addressing anything in that version.

  • 0 Votes
    1 Posts
    266 Views
    No one has replied
  • 0 Votes
    8 Posts
    1k Views
    SGaistS

    One possible alternative could be to use a Docker container to build your application with a suitably old Ubuntu or maybe a VM which would be even simpler,

  • 0 Votes
    1 Posts
    127 Views
    No one has replied
  • 0 Votes
    5 Posts
    683 Views
    D

    Problem solved.
    The issue was the default seat inside of the compositor was unset. Means the keymap attributes were emtpy. I have set it manually and now it works.

    0948-0046-07-0A-TJ-0.jpeg

  • Qml application closing issue

    Unsolved QML and Qt Quick
    3
    0 Votes
    3 Posts
    474 Views
    dheerendraD

    As suggested by @JKSH Simple sample code to handled the same

    Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle{ anchors.fill : parent color: "blue" radius : test.val1 } onClosing : { console.log("Window is closed") } }
  • 0 Votes
    3 Posts
    493 Views
    JoeCFDJ

    @vicky_mac The old gstreamer versions have memory leaks. Which gstreamer version are you using? Try to upgrade to the latest gstreamer.
    Your Qt is old as well. Upgrade your Qt to at least 5.15.2.

  • 0 Votes
    1 Posts
    235 Views
    No one has replied
  • 0 Votes
    3 Posts
    890 Views
    B

    @JKSH Seems you were correct :

    QML debugging is enabled. Only use this in a safe environment. Info: Starting QML Puppet ((null):0, (null)) Info: Could not load the Qt platform plugin "xcb" in "" even though it was found. ((null):0, (null)) Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: wayland, offscreen, minimal, wayland-egl, xcb, linuxfb, minimalegl, vnc, vkkhrdisplay, eglfs. ((null):0, (null))

    ldd returns :

    linux-vdso.so.1 (0x00007ffed5dfb000) libQt6XcbQpa.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6XcbQpa.so.6 (0x00007f3bda977000) libxkbcommon-x11.so.0 => /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 (0x00007f3bda955000) libxkbcommon.so.0 => /lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f3bda90f000) libxcb-cursor.so.0 => not found libxcb-icccm.so.4 => /lib/x86_64-linux-gnu/libxcb-icccm.so.4 (0x00007f3bda908000) libxcb-image.so.0 => /lib/x86_64-linux-gnu/libxcb-image.so.0 (0x00007f3bda900000) libxcb-keysyms.so.1 => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 (0x00007f3bda8fb000) libxcb-randr.so.0 => /lib/x86_64-linux-gnu/libxcb-randr.so.0 (0x00007f3bda8e9000) libxcb-render-util.so.0 => /lib/x86_64-linux-gnu/libxcb-render-util.so.0 (0x00007f3bda8e2000) libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f3bda8dd000) libxcb-sync.so.1 => /lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f3bda8d4000) libxcb-xfixes.so.0 => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 (0x00007f3bda8c9000) libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f3bda8bb000) libxcb-shape.so.0 => /lib/x86_64-linux-gnu/libxcb-shape.so.0 (0x00007f3bda8b6000) libxcb-xkb.so.1 => /lib/x86_64-linux-gnu/libxcb-xkb.so.1 (0x00007f3bda898000) libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f3bda86e000) libQt6OpenGL.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6OpenGL.so.6 (0x00007f3bda7cc000) libQt6Gui.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6Gui.so.6 (0x00007f3bd9e00000) libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f3bd9d79000) libQt6Core.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6Core.so.6 (0x00007f3bd9600000) libX11-xcb.so.1 => /lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f3bda7c5000) libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f3bd94c2000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3bd9d72000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3bd9d6d000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3bd9200000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3bd9117000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3bd9d49000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3bd8e00000) libxcb-cursor.so.0 => not found libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f3bd8cb9000) libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f3bd9d42000) libxcb-util.so.1 => /lib/x86_64-linux-gnu/libxcb-util.so.1 (0x00007f3bd9d39000) libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f3bd9d33000) libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f3bd9d29000) libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f3bd9d16000) libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f3bd9cc8000) libQt6DBus.so.6 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libQt6DBus.so.6 (0x00007f3bd9051000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3bd9caa000) libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f3bd8bef000) libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f3bd8b37000) libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f3bd9490000) libicui18n.so.56 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libicui18n.so.56 (0x00007f3bd8600000) libicuuc.so.56 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libicuuc.so.56 (0x00007f3bd8200000) libicudata.so.56 => /home/user/Qt/Tools/QtDesignStudio/qt6_design_studio_reduced_version/plugins/platforms/./../../lib/libicudata.so.56 (0x00007f3bd6800000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3bd9ca1000) /lib64/ld-linux-x86-64.so.2 (0x00007f3bdaa32000) libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f3bd8a9d000) libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f3bd9c8c000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f3bd9026000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f3bd67b2000) libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f3bd85c8000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f3bd9483000) libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f3bd9476000) libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f3bd66e2000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f3bd66bf000) libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f3bd901a000) libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f3bd6577000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f3bd6545000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f3bd6491000) liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f3bd646e000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f3bd6448000)

    I installed libxcb-cursor and the problem is solved, thanks a lot !

  • 0 Votes
    2 Posts
    260 Views
    R

    @Richard-Buchmann I guess I put this issue in the wrong place. I send a bug report there : https://bugreports.qt.io/browse/QTBUG-116681

  • 0 Votes
    5 Posts
    781 Views
    SeDiS

    @Kamichanw Unfortunately, you can't. "ReferenceError: main is not defined"

  • 0 Votes
    1 Posts
    282 Views
    No one has replied
  • Q_property connection in qml

    Unsolved QML and Qt Quick
    2
    0 Votes
    2 Posts
    264 Views
    sierdzioS

    @praveen_03 The code you have shared is correct. PErhapos it would be good to see the QML part, too ;-)

  • 2 Votes
    3 Posts
    605 Views
    A

    UPDATE: This is a known bug in Qt https://bugreports.qt.io/browse/QTBUG-113616

  • TabView Error: "TabView is Not a type"

    Unsolved QML and Qt Quick
    2
    0 Votes
    2 Posts
    598 Views
    JoeCFDJ

    @Imman_Manny
    it is gone in Qt6. You can check it out in the doc from here
    https://doc.qt.io/qt-6/qmltypes.html
    also read the following:
    https://forum.qt.io/topic/132653/alternative-to-tabview-in-qt-6

  • 0 Votes
    2 Posts
    315 Views
    E

    @esvo
    [PROBLEM SOLVED]
    Turns out its a problem that is independent of windeployqt or qtcharts. Will be logging my findings here in case anyone else comes across this specific-ish issue as well. (Or if anyone has other insights)

    The qml files with the charts being loaded in use singletons. I registered these singletons in the c++ main. When I registered the singletons I have the code looking into the working directory for the singleton qml files using the QDir::currentPath() function.

    The folder including all the singletons must be included in the same folder as the exe for the app to have access to these files. Dropping the folder with the singleton qml files into the same folder as the exe fixes the problem.