Results 1 to 4 of 4

Thread: virtual memory exhausted

  1. #1
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default virtual memory exhausted

    Hi
    I have around 2300 images , that I am importing to a .qrc file (resource file)
    but when I build the application , I get error
    "virtual memory exhausted, cannot allocate memory"

    I tried the following
    1) Changed the vm.max_map_count to 1GB (screenshot_mapcount)

    but that doesnt work ,
    anyone has any idea on how to fix it.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: virtual memory exhausted

    Quote Originally Posted by kamlmish View Post
    anyone has any idea on how to fix it.
    Yes, do not include 2300 images in your executable! The resource system is only for a small amount of images! How big are your images combined?

  3. #3
    Join Date
    May 2010
    Location
    slovakia
    Posts
    47
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Maemo/MeeGo

    Default Re: virtual memory exhausted

    omg, at least put them in folder (not qrc) and load them on demand if you're not using DB...

  4. #4
    Join Date
    Mar 2010
    Posts
    54
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: virtual memory exhausted

    Got the solution

    I created a ini file and used QSettings in order to import all the images.

    Thanks for all your support

Similar Threads

  1. Error : Virtual memory Exhausted - while doing make
    By augusbas in forum Qt Programming
    Replies: 0
    Last Post: 10th June 2010, 13:12
  2. QHash : Virtual memory not released
    By jbenoit in forum Qt Programming
    Replies: 16
    Last Post: 14th November 2009, 16:35
  3. Virtual memory allocation problem
    By morfei in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2009, 11:30
  4. Virtual memory problem
    By Rahul in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2007, 13:29
  5. Virtual Memory in Qt 4.2.2
    By Shuchi Agrawal in forum Newbie
    Replies: 3
    Last Post: 5th March 2007, 23:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.