Pharo's VM --memory seems to be ignored

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pharo's VM --memory seems to be ignored

Mariano Martinez Peck
Hi guys,

I have a large image, and I found out that i could not start it anymore with `pharo-ui`. The error is:

❯ ./pharo-ui --memory 1500 PharoMyApp.image                                                                              [15:12:33]
Pharo(9030,0xa35bf000) malloc: *** error for object 0x180b604: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

However... if I modify the key SqueakMaxHeapSize to 1572864000 (1500MB) into the Info.plist of the Pharo VM, it DOES work and I can open the image.

The image size is about 544MB. 

VM Version is:

'CoInterpreter VMMaker.oscog-nice.1747 uuid: 1b765c2a-8d50-4187-8dc2-216c4556a755 Mar 30 2016
StackToRegisterMappingCogit VMMaker.oscog-nice.1747 uuid: 1b765c2a-8d50-4187-8dc2-216c4556a755 Mar 30 2016
https://github.com/pharo-project/pharo-vm.git Commit: 1739553b80206de86da1e89d292e8518b89343d4 Date: 2016-03-30 00:23:59 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #582
'

And this was on OSX 10.11.3 .


So it seems to me that --memory is not working. Anyone else seeing the same?

Thanks in advance,

--
Reply | Threaded
Open this post in threaded view
|

Re: Pharo's VM --memory seems to be ignored

Paul DeBruicker
On mac it doesn't work.  You need to change the setting in the plist file as described here:

http://forum.world.st/running-out-of-memory-while-processing-a-220MB-csv-file-with-NeoCSVReader-tips-tp4790264p4790594.html



Mariano Martinez Peck wrote
Hi guys,

I have a large image, and I found out that i could not start it anymore
with `pharo-ui`. The error is:

❯ ./pharo-ui --memory 1500 PharoMyApp.image
                                             [15:12:33]
Pharo(9030,0xa35bf000) malloc: *** error for object 0x180b604: incorrect
checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

However... if I modify the key SqueakMaxHeapSize to 1572864000 (1500MB)
into the Info.plist of the Pharo VM, it DOES work and I can open the image.

The image size is about 544MB.

VM Version is:

'CoInterpreter VMMaker.oscog-nice.1747 uuid:
1b765c2a-8d50-4187-8dc2-216c4556a755 Mar 30 2016
StackToRegisterMappingCogit VMMaker.oscog-nice.1747 uuid:
1b765c2a-8d50-4187-8dc2-216c4556a755 Mar 30 2016
https://github.com/pharo-project/pharo-vm.git Commit:
1739553b80206de86da1e89d292e8518b89343d4 Date: 2016-03-30 00:23:59 +0200
By: Esteban Lorenzano <[hidden email]> Jenkins build #582
'

And this was on OSX 10.11.3 .


So it seems to me that --memory is not working. Anyone else seeing the same?

Thanks in advance,

--
Mariano
http://marianopeck.wordpress.com