Results 1 to 7 of 7

Thread: Out of graphic memory - application crash after days

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Out of graphic memory - application crash after days

    The attachment link seems to be invalid.

    From the sound of it you are leaking memory, like having unmatched new/delete, or you are keeping memory around that you actually don't need anymore.

    Cheers,
    _

  2. #2
    Join Date
    Oct 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Out of graphic memory - application crash after days

    yeah, sounds like that to me too. However, I cannot find, where the issue comes from. Do you have any suggestions?

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Out of graphic memory - application crash after days

    Check if all new are paired with delete, check if you store things in a map or hash and maybe never remove anything.

    You can also disable certain code, e.g.not do anything for updates and see if that does not increase memory.
    Then the leak must be in the update handling and so forth.

    Ideally of course you'd use a leak checker, not sure if Windows has something like Vagrind for Unix systems.

    Maybe the clang address sanitizer if you can build with clang.

    Cheers,
    _

  4. #4
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    512
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Out of graphic memory - application crash after days

    Hi, I often used Visual Leak Detector together with Visual Studio.

    Ginsengelf

  5. The following user says thank you to Ginsengelf for this useful post:

    anda_skoa (17th October 2016)

  6. #5
    Join Date
    Oct 2016
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Out of graphic memory - application crash after days

    Quote Originally Posted by anda_skoa View Post
    The attachment link seems to be invalid.
    Oh, just saw that the code is not readable. Let me link the file once more: QPainter_Issue.cpp

    Thx.

    Dirk

  7. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Out of graphic memory - application crash after days

    My guess would be QImageController::_images growing endlessly.

    Cheers,
    _

Similar Threads

  1. Superposition when displaying Qt Graphic application on embedded Linux
    By requinham in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th April 2012, 07:17
  2. Replies: 2
    Last Post: 7th September 2011, 13:12
  3. Replies: 4
    Last Post: 22nd July 2011, 10:42
  4. Replies: 3
    Last Post: 29th April 2010, 15:18
  5. Memory allocation failure and crash in QVector
    By ashatilo in forum Qt Programming
    Replies: 16
    Last Post: 20th October 2007, 23:27

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.