Results 1 to 2 of 2

Thread: Qt application crashes intermittently while updating UI

  1. #1
    Join Date
    Apr 2021
    Posts
    7
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Qt application crashes intermittently while updating UI

    Hello,

    I have a Qt application which sometimes gets crashed while updating the UI. Since the issue is rarely observed, I'm not able to find the cause of the crash. The stack trace below shows Qt related functions.

    Qt Code:
    1. Stack trace of thread 40351:
    2. #0 0x00007f1e5b04a7ff raise (libc.so.6)
    3. #1 0x00007f1e5b034c35 abort (libc.so.6)
    4. #2 0x00007f1e5b08d987 __libc_message (libc.so.6)
    5. #3 0x00007f1e5b094d8c malloc_printerr (libc.so.6)
    6. #4 0x00007f1e5b097dbc _int_malloc (libc.so.6)
    7. #5 0x00007f1e5b099412 malloc (libc.so.6)
    8. #6 0x00007f1e5c280332 _ZN10QArrayData8allocateEmmm6QFlagsINS_16AllocationOptionEE (libQt5Core.so.5)
    9. #7 0x00007f1e5c2f1a28 _ZN7QString17fromLatin1_helperEPKci (libQt5Core.so.5)
    10. #8 0x00007f1e5d49354d _ZNK24QStyleSheetStyleSelector9nodeNamesEN4QCss13StyleSelector7NodePtrE (libQt5Widgets.so.5)
    11. #9 0x00007f1e5cfcaf11 _ZN4QCss13StyleSelector17styleRulesForNodeENS0_7NodePtrE (libQt5Gui.so.5)
    12. #10 0x00007f1e5d479665 _ZNK16QStyleSheetStyle10styleRulesEPK7QObject (libQt5Widgets.so.5)
    13. #11 0x00007f1e5d47f803 _ZNK16QStyleSheetStyle10renderRuleEPK7QObjectiy (libQt5Widgets.so.5)
    14. #12 0x00007f1e5d4817a1 _ZN16QStyleSheetStyle11setGeometryEP7QWidget (libQt5Widgets.so.5)
    15. #13 0x00007f1e5d4846d7 _ZN16QStyleSheetStyle6polishEP7QWidget (libQt5Widgets.so.5)
    16. #14 0x00007f1e5d48383f _ZL13updateObjectsRK5QListIPK7QObjectE (libQt5Widgets.so.5)
    17. #15 0x00007f1e5d483964 _ZN16QStyleSheetStyle8repolishEP7QWidget (libQt5Widgets.so.5)
    To copy to clipboard, switch view to plain text mode 

    Could anyone please help on the possible reasons why this crash is observed ?

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    468
    Thanks
    10
    Thanked 62 Times in 60 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt application crashes intermittently while updating UI

    Hi, malloc() seems to be involved, so I would check if you have a memory leak somewhere. Also check if this happens when you disable all stylesheets.

    Ginsengelf

Similar Threads

  1. How to keep updating the Qt-Application?
    By mayanka_medhe in forum Newbie
    Replies: 2
    Last Post: 26th June 2018, 07:17
  2. Left audio channel intermittently drops out (QAudioOutput, Linux)
    By QtDrivesMeCrazy in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2016, 23:09
  3. pyqt5 graphicsview app freezes intermittently
    By schollii in forum Newbie
    Replies: 1
    Last Post: 13th April 2015, 16:16
  4. Application crashes
    By waynew in forum Newbie
    Replies: 1
    Last Post: 2nd November 2009, 10:31
  5. My application crashes
    By sophister in forum Qt Programming
    Replies: 13
    Last Post: 27th April 2009, 07:39

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.