XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • GUI: Painting
    • None
    • VS 2015, Windows 7 SP1, Windows 8

      Crash when loading large JPG.

      QPixmap p;
      p.load("image.jpg");
      

      Crash in

      QPMCache::insert(const QString&, const QPixmap &, int)

      when

      QCache<QPixmapCache::Key, QPixmapCacheEntry>::insert

      return false.

      cacheKeys.remove(key);
      releaseKey(cacheKey);
      

      After removing key from the cacheKeys, the cacheKey calls deref and self destroys. releaseKey is call with already destroyed object.
      Probably, releaseKey should be called before removing from the cacheKeys.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            sargtlin Kozlov Ilya
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes