Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 6.2 - EGLFS app incorrect destruction
Qt 6.11 is out! See what's new in the release blog

Qt 6.2 - EGLFS app incorrect destruction

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 388 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.
  • T Offline
    T Offline
    therealmatiss
    wrote on last edited by
    #1

    Hello!

    I was profiling my Qt 6/QML program on Nvidia Jetson TX2 device (Ubuntu 18.04, Qt 6.2.2, EGLFS display) with GCC Address sanitizer and I noticed that every time it doesn't cleanly exit - it always has SUMMARY: AddressSanitizer: 141686 byte(s) leaked in 1185 allocation(s). Exactly same bytes in same allocation count.

    I thought it was an issue with my code but then I created single EGLFS Qt6/QML program with one screen and it happens as well. This is the minimal code needed for this to happen. I have attached the AddressSanitizer log as well - all issues looks like are with EGLFS.

    int main(int argc, char* argv[]) {
      initLogger();
    
      QGuiApplication app(argc, argv);
      QQmlApplicationEngine engine;
    
      // Signal handler
      initializeSignalHandler(Daemon::getInstance(), app, engine);
    
      // Start program
      // This is simply a black rectangle QML screen, nothing happens here
      const QUrl url(u"qrc:/main.qml"_qs); 
      engine.load(url);
      auto main_ret = app.exec();
    
    // Here I press CTRL + C and my signal handler calls:
    // engine.exit(0);
    // app.exit(0);
    
    // This happens after app.exit() - signal handler continues to exit and destroy all objects 
      SPDLOG_WARN("Cleaning up resources & exiting");
      return main_ret;
    }
    

    These are my Qt app running parameters:

    QT_QPA_PLATFORM=eglfs
    QT_QPA_EGLFS_INTEGRATION=eglfs_kms_egldevice
    

    Attachment (Address Sanitizer output):
    https://drive.google.com/file/d/1R_v5AgRSB6wxGiBRws_BLrFpbof7QmLq/view?usp=drive_link

    What is the issue here? Is this a Qt bug?

    1 Reply Last reply
    0

    • Login

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