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. Out of Memory
Forum Update on Monday, May 27th 2025

Out of Memory

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 971 Views
  • 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.
  • M Offline
    M Offline
    mahd96
    wrote on last edited by mahd96
    #1

    windows stop allocating memory to my app after 1.7G memory usage. i have allocated some page file. but it seemed to not working because i have some logs that indicates appliucation is out of memory:
    QImage :: out of memory return null
    QPainter :: can not start ...
    QThread :: start() :: can not start
    and after these whenever a signal emits application crashs!
    what can i do before i optimize my memory usage that i decrease this crashes?

    JKSHJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Is it a 32 bit app ?
      What platform are you running it on ? also 32 bit ?
      There is hard limit of 32 bit of around 2GB and you might be hitting that.

      M 1 Reply Last reply
      3
      • mrjjM mrjj

        Hi
        Is it a 32 bit app ?
        What platform are you running it on ? also 32 bit ?
        There is hard limit of 32 bit of around 2GB and you might be hitting that.

        M Offline
        M Offline
        mahd96
        wrote on last edited by
        #3

        @mrjj yes application is 32bit but os is 64bit .
        hard limit?
        i checked it occures when RAM reached to 1.7G

        mrjjM 1 Reply Last reply
        0
        • M mahd96

          @mrjj yes application is 32bit but os is 64bit .
          hard limit?
          i checked it occures when RAM reached to 1.7G

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @mahd96
          Hi
          On the windows platform, please see here
          https://docs.microsoft.com/en-us/windows/desktop/Memory/4-gigabyte-tuning
          So your app has around 2 GB to use.
          https://docs.microsoft.com/en-us/windows/desktop/Memory/memory-limits-for-windows-releases#physical-memory-limits-windows-10
          So most likely at 1.7 GB, you try to allocate a QImage that want to use way more memory (than 300 MB) and it fails.

          1 Reply Last reply
          4
          • M mahd96

            windows stop allocating memory to my app after 1.7G memory usage. i have allocated some page file. but it seemed to not working because i have some logs that indicates appliucation is out of memory:
            QImage :: out of memory return null
            QPainter :: can not start ...
            QThread :: start() :: can not start
            and after these whenever a signal emits application crashs!
            what can i do before i optimize my memory usage that i decrease this crashes?

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by JKSH
            #5

            @mahd96 said in Out of Memory:

            what can i do before i optimize my memory usage that i decrease this crashes?

            You can create a 64-bit app. That allows your app to use more than 2GB without changing Windows settings.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            2

            • Login

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