Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QImage: out of memory, returning null image
Forum Updated to NodeBB v4.3 + New Features

QImage: out of memory, returning null image

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 7.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    isaacEnrique
    wrote on last edited by
    #1

    Greetings.

    I'm using QImage in the project I'm working, which works with histological images (images quite large, of 4000 * 3000 pixels).

    I'm constantly creating new images QImage at runtime.
    At one point it generates the following error message:

    "QImage: out of memory, returning null image"

    Did I guess obviously this is because you run out of available memory, or am I wrong?.

    Well my specific questions are:

    1. Where or who (which function) generates this error message ... Is it perhaps the QImage constructor?

    2. Alternative solutions that I have ... How do you approach such problems normally?

    Thanks in advance for any responses and / or comments

    Isaac Pérez
    Programming is understanding.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      [quote author="isaacenrique" date="1364839367"]
      "QImage: out of memory, returning null image"
      [/quote]
      There is not much to guess about the message. You are right.

      The question is how you are assigning and release memory?
      If you are assigning the memory with new and do not release the memory, you may run out of memory. Which could explain the message.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved