D
D
danis_20142017-02-10 17:41:20
Python
danis_2014, 2017-02-10 17:41:20

How to fix QImage: out of memory, returning null image error?

The essence of the program:
1. Downloads images from tape to VK, saves to a separate folder. Then the PyQT part.
2. For each photo in the folder: if the width of the photo is greater than X, then we reduce the photo to X (but the original is kept in the folder). The photo (processed) is inserted into the application window.
Suddenly this problem occurs:

QImage: out of memory, returning null image
createDIB: CreateDIBSection failed.

An error occurs at the moment when the pictures are inserted into the application. The application has been tested for quite a long time, that is, the error occurs in isolated cases.
What could be causing this error and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
danis_2014, 2017-02-11
@danis_2014

The problem turned out to be a large number of images in the application

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question