cy99 / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

GC error message "Too many heap sections" after reading big files #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GC error message "Too many heap sections" after reading big files.

This happens with shedskin v0.1.1 and v0.2

OS: Win XP SP2
Shedskin version 0.2

Scenario:
Read a 6-7MB file contents into a buffer for about 40-50 times
e.g: f = open("my_big_file.bin", "rb")
     buff = f.read()
     buff.close()

A file called gc.txt is created in the current directory reporting "GC
Warning: Repated allocation of very large block..."
Given enough reads the GC crashes altogether along with the program.

Original issue reported on code.google.com by avibe...@gmail.com on 27 Jul 2009 at 2:13

GoogleCodeExporter commented 9 years ago
hi and sorry for the delayed reply.. I'm officially on vacation.. :) anyway, 
thanks
for reporting. I've seen the problem before under linux, and there the solution 
was
to build the GC with --enable-large-config (just google for the error message). 
I
don't quite remember how/if I built libgc.dll that is bundled with shedskin for
windows, but I guess the same trick should apply here. unfortunately, I don't 
have
time to look into this during the next few weeks, but please do let me know if 
you
manage to get any further with this. thanks again.

Original comment by mark.duf...@gmail.com on 29 Jul 2009 at 8:35

GoogleCodeExporter commented 9 years ago
I haven't managed to build the gc correctly yet... may give it a another go in 
a while.

Original comment by avibe...@gmail.com on 4 Aug 2009 at 7:32

GoogleCodeExporter commented 9 years ago

Original comment by mark.duf...@gmail.com on 21 Mar 2010 at 9:53

GoogleCodeExporter commented 9 years ago
windows support will be dropped with 0.4, so I'm closing this issue.

Original comment by mark.duf...@gmail.com on 22 Mar 2010 at 9:56