Memory leak when building Qt 4.4.2?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Memory leak when building Qt 4.4.2?

Arkadiusz Lewandowski
This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.
_______________________________________________
Hello,

I am trying to build Qt 4.4.2 libraries using the current version of mingw
tools. I made the changes in the Qt code posted in this e-mail list. I am
building the release and debug version of libraries.

The libraries build fine on my office computer with Win XP SP3,Pentium 4,
2GB RAM, however, I am running into strange problems when building them
on my ThinkPad T42, Pentium M 2.1 GHz, 2 GB RAM, Win XP SP3. It
seems that towards the end of compilation the system is running out of
memory  (when building examples). Below is a sample of what I see:

mingw32-make[4]: Entering directory `C:/App/Qt/4.4.2/examples/xml/dombookmarks'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\include\QtCore" -I"..\..\..\include\QtCore"
-I"..\..\..\include\QtGui" -I"..\..\..\include\QtGui"
-I"..\..\..\include\QtXml" -I"..\..\..\include\QtXml"
-I"..\..\..\include" -I"c:\App\Qt\4.4.2\include\ActiveQt"
-I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -o
tmp\obj\release_shared\main.o main.cpp
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\include\QtCore" -I"..\..\..\include\QtCore"
-I"..\..\..\include\QtGui" -I"..\..\..\include\QtGui"
-I"..\..\..\include\QtXml" -I"..\..\..\include\QtXml"
-I"..\..\..\include" -I"c:\App\Qt\4.4.2\include\ActiveQt"
-I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -o
tmp\obj\release_shared\mainwindow.o mainwindow.cpp
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"..\..\..\include\QtCore" -I"..\..\..\include\QtCore"
-I"..\..\..\include\QtGui" -I"..\..\..\include\QtGui"
-I"..\..\..\include\QtXml" -I"..\..\..\include\QtXml"
-I"..\..\..\include" -I"c:\App\Qt\4.4.2\include\ActiveQt"
-I"tmp\moc\release_shared" -I"." -I"..\..\..\mkspecs\win32-g++" -o
tmp\obj\release_shared\xbeltree.o xbeltree.cpp
In file included from ../../../include/QtGui/QtGui:3,
                from xbeltree.cpp:44:
../../../include/QtGui/qaccessible2.h:1:51:
../../../include/QtGui/../../src/gui/accessible/qaccessible2.h: Not
enough space
In file included from xbeltree.cpp:44:
../../../include/QtGui/QtGui:4:31:
../../../include/QtGui/qaccessiblebridge.h: Not enough space
../../../include/QtGui/QtGui:5:31:
../../../include/QtGui/qaccessibleobject.h: Not enough space
../../../include/QtGui/QtGui:6:31:
../../../include/QtGui/qaccessibleplugin.h: Not enough space
../../../include/QtGui/QtGui:7:31:
../../../include/QtGui/qaccessiblewidget.h: Not enough space
../../../include/QtGui/QtGui:8:38:
../../../include/QtGui/qabstractpagesetupdialog.h: Not enough space
../../../include/QtGui/QtGui:9:34:
../../../include/QtGui/qabstractprintdialog.h: Not enough space


I repeated the process a few times and the errors occur for different
source files. When I restart the computer after the failed build and rerun
make, I am able to finish building the libraries. Also, when I build
the release or debug version of libraries separately everything goes fine.

The computer has quite a fresh install of Win XP and I do not see any
process in the task manager eating up too much memory. I turned off the
antivirus (AVG 8.0 free), but the problem still persists. I checked my
hardware (using PC-Doctor) and everything is fine.

Does anyone have a suggestion what the reason for this problem could be?

Regards,

Arek

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users