Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » cc1plus.exe: out of memory allocating 65536 bytes
cc1plus.exe: out of memory allocating 65536 bytes [message #51079] Mon, 21 January 2019 14:30 Go to next message
imos is currently offline  imos
Messages: 17
Registered: July 2017
Promising Member
Hi
When compiling a program in windows 10:

...
C:/upp/out/MyApps/plugin/jpg/MINGW.Debug.Debug_Full.Gui.Nobl itz\jpg.a (1863834 B) created in (0:01.06)
----- ScatterDraw ( GUI GCC DEBUG DEBUG_FULL WIN32 ) (12 / 17)
ScatterDraw.cpp
DataSource.cpp

cc1plus.exe: out of memory allocating 65536 bytes
Equation.cpp

cc1plus.exe: out of memory allocating 65536 bytes
PieDraw.cpp
ScatterDraw: 4 file(s) built in (1:39.92), 24980 msecs / file, duration = 122078 msecs

There were errors. (8:03.90)

How to solve this?
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51081 is a reply to message #51079] Mon, 21 January 2019 17:37 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2948
Registered: August 2008
Veteran
Dear imos

I have compiled and run ScatterCtrl sample using MINGW and MINGWx64 in Windows 10. No problem.

This is a Setup/Build Methods screenshot for MINGWx64. For MINGW (32 bits) it is the same just changing "mingw64/64" with "mingw64/32". Is it similar for you?
index.php?t=getfile&id=5751&private=0
  • Attachment: Captura.JPG
    (Size: 69.96KB, Downloaded 89 times)


Best regards
Iñaki
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51082 is a reply to message #51079] Mon, 21 January 2019 22:25 Go to previous messageGo to next message
imos is currently offline  imos
Messages: 17
Registered: July 2017
Promising Member
Yes, it is the same.
If I compile some samples they work but this project does not.
The only thing that come to my mind is that this specific project was copied from Linux e.g. the project was created in Upp in linux and now I want to see if it also works in windows (even if it needs some tunning) but the compilation error is too abstract
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51083 is a reply to message #51082] Mon, 21 January 2019 22:31 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2948
Registered: August 2008
Veteran
Could you upload the smallest version of your project having this problem?

Best regards
Iñaki
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51089 is a reply to message #51079] Tue, 22 January 2019 12:19 Go to previous messageGo to next message
imos is currently offline  imos
Messages: 17
Registered: July 2017
Promising Member
I found the problem!!
The genearated .exe takes about 200MB and during compilation it needs hundreds of MB!
I was running In virtual box and although with 900MB free it was not enought to compile the big project Smile
I have increased VM disk space in order to install another app and i tried to compiled upp app gain and now with success!

I thought that presented error was related with RAM but it seems that it is realted with disk space (or not) ?! but now it compiles also over windows and over Linux

Upp is great!!

Thanks
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51100 is a reply to message #51089] Wed, 23 January 2019 22:33 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2948
Registered: August 2008
Veteran
Great. But, a 200MB .exe? Shocked Shocked

Best regards
Iñaki

[Updated on: Wed, 23 January 2019 22:34]

Report message to a moderator

Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51102 is a reply to message #51079] Thu, 24 January 2019 10:12 Go to previous messageGo to next message
imos is currently offline  imos
Messages: 17
Registered: July 2017
Promising Member
200MB all compiled files.
Exe debug version file is 126469KB.
(Windows 10 env)

Is it odd? Is there something that could be wrong?

Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51103 is a reply to message #51102] Thu, 24 January 2019 12:21 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 2948
Registered: August 2008
Veteran
Not necessarily. I was not used to seeing exes so big. Rolling Eyes

Best regards
Iñaki
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51108 is a reply to message #51102] Fri, 25 January 2019 10:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11844
Registered: November 2005
Ultimate Member
imos wrote on Thu, 24 January 2019 10:12
200MB all compiled files.
Exe debug version file is 126469KB.
(Windows 10 env)

Is it odd? Is there something that could be wrong?



I would recommend using MSC. GCC is great, in Linux. MINGW has two problems:

- linker is slow (in linux, it uses ld-gold and is very fast. mingw is using old ld and is terribly slow if used with BLITZ). with 200MB .exe I think MSC would fare better
- mingw thread_local implementation is terrible - that imposes severe penalty to U++ allocator performance (e.g. your code will run 10-20% slower with mingw)
Re: cc1plus.exe: out of memory allocating 65536 bytes [message #51109 is a reply to message #51079] Fri, 25 January 2019 10:49 Go to previous message
imos is currently offline  imos
Messages: 17
Registered: July 2017
Promising Member
The story is:
First I developed the app in Linux. It is finished and working good.

Now I want to offer the same app for windows env. Hence I installed the Ultimate in windows and started to compile it, etc etc.

I had to "tune" the socket part and service part (this part I had to use codeblocks because could not compile services on Upp) of the app and it is working on windows now too.

Yes, I am using MingW and yes it is too slow and yes the debug version of exe has ~130MB.
But is works out of the box (without "installation", without DLL mess, etc etc). It behaves as a portable app which is very important for me.

Well, now that you named MSC (Microsoft C ?!) I could give it a try but my app will be free distributted and I want to rely on open things to build it.

Is MSC free? What exaclty is MSC? Where can I get it? should I install Visual Studio Community, the one that has a very dark licence for commercial apps?

Thanks a lot and congratulations for the Upp.
It is Great!

Imos


[Updated on: Fri, 25 January 2019 10:51]

Report message to a moderator

Previous Topic: ScrollView - a question - maybe proposal..
Next Topic: Ico to IML converter:Where is the source code?
Goto Forum:
  


Current Time: Thu Apr 25 11:46:54 CEST 2019

Total time taken to generate the page: 0.01166 seconds