XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: