Nominate our 2022 Qt Champions!

QtJambi memory leak

  • I write a simple java program using Qt Jambi 4.8.7. I extend a QWidget then add one custom signal and one custom slot(I do nothing in the slot function) and connect the custom signal/slot together. After this, I new a java Timer to trigger my custom signal repeatly. Here is my source file :!AhrVYxu_vZ8An_MYuhd1hJMxQy0bWg

    After my code execute for 15 minutes, the jvm memory usage exceeds 120MB. The only thing I do is emitting a signal then do nothing in slot. It is strange to my sense. Any mistake I made in my code or something wrong in Qt Jambi?

    Environment :
    OS : Ubuntu 16.04.2 LTS - x64 version
    HW : Intel Core i7
    Qt Jambi : Pre-compiled binary package(4.8.7 for x64 linux) download from official web site.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    That version of QtJambi is not part of Qt. In fact QtJambi has been deprecated a long time ago and the version you are using is a community edition. You should ask the authors of it directly.