Question

Recently I opened a fairly large project in QtCreator, and on running it, I got and error saying "virtual memory exhausted: Cannot allocate memory" and it terminated. (Unfortunately I dint save that message and havent been able to reproduce it again.)

I reinstalled QtCreator as was suggested on some QtForums regarding this issue.

Now, when I run this project, my machine starts slowing down slowly before it just freezes completely.

Anything I can try doing to avoid such issue ?

Ubuntu 13.04

Qt 5.2.0

RAM : 3 GB

Swap Space : 2 GB

Project: https://github.com/bdoin/GCompris

Was it helpful?

Solution 2

For those having the same problem:

  1. One similar question was asked here : cc1plus: Virtual memory exhausted

This dint work fine for me though.

  1. Some people (on other forums) suggested re installing QtCreator, which dint help either.

  2. Finally someone suggested (on other forums) to reinstall the build-essential package and it worked for me.

To make it clear, I realized ther was a process 'cc1plus' which was just taking memory continuously. After re installation also it takes lot of memory, but not enough to cause errors.

OTHER TIPS

This is fixed now in GCompris. It was creating huge qrc files (Qt resource files). Now each activity in GCompris has its own qrc and they are loaded dynamically at runtime instead of being statically integrated in the binary. This process was using a lot of memory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top