Error:too many heap sections; compile gc & Inkscape in Win32

General discussions about Inkscape.
Skyhunter

Error:too many heap sections; compile gc & Inkscape in Win32

Postby Skyhunter » Wed Jul 01, 2009 3:05 am

Hi,

I have a problem with Inkscape when I try to save my .svg file as
pdf, .eps or even print it. I currently use the newest
pre-compiled 0.46 developer version for windows and I even
compiled my own version which did not help so far with my problem.
The error message is the following.

> fatal error in gc
> too many heap sections

I traced this error down to the garbage collector and found this
web page which describes what to do, see
http://osdir.com/ml/programming.garbage-collection.boehmgc/2006-01/msg00006.html"http://inkscape.modevia.com/win32_inkscape_org/win32buildnotes.html" class="postlink">http://inkscape.modevia.com/win32_inkscape_org/win32buildnotes.html.

So I ask for help. Either somebody tells me what to do with the
"gc.lib" file or how to actually cross compile a windows version
including Boehm's garbage collector where the "LARGE_CONFIG"
symbol is defined.

Thank you for your help.

Cheers,
Simon


##### Compiling the Boehm's garbage collector under windows #####

Before I started compiling, I had a look at the README.win32 in
the doc directory of the source files of the Boehm's garbage
collector.

Because there exists no makefile for mingw I tried first Visual
C++ 2009. This does not work because the corresponding make file
refers to a file called "de_win.res" in the "cord" subdirectory.
This file does not exist for whatever reason and hence it does not
work.

Next I tried Open Watcom C++ in combination with the Watcom
makefile and got some other problem which I apparently do not
remember.

At last I tried the Borland Compiler. I received the following
error at first:

> Error E2188 mach_dep.c 400: Expression syntax in function GC_push_regs
> *** 1 errors in Compile ***

but changing the file "mach_dep.c" from

> # if !defined(HAVE_PUSH_REGS)
> --> We just generated an empty GC_push_regs, which
> --> is almost certainly broken. Try defining
> --> USE_GENERIC_PUSH_REGS instead.
> # endif

to

> # if !defined(HAVE_PUSH_REGS)
> /* --> We just generated an empty GC_push_regs, which
> --> is almost certainly broken. Try defining
> --> USE_GENERIC_PUSH_REGS instead.
> */
> # define USE_GENERIC_PUSH_REGS
> # endif

made it work. So in the end it compiled through and even the test
file "de.exe" is working.

Badita Florin

Re: Error:too many heap sections; compile gc & Inkscape in Win32

Postby Badita Florin » Thu Jan 21, 2010 8:25 am

Nomebody have an answer for this ? I have a 2 Mb PDF (ex Dwg file ) that i cant open it with Inkscape portable or inkscape 0.47 because of the Too Many Heap Sections. I tried to Compile the binary for Windows, but this seems imposible because http://wiki.inkscape.org/wiki/index.php/Win32Port

Patch The Source Code

Using TortoiseSVN:

Tortoise makes patching quite easy. Follow these steps;

1. Find your patch. Windows Patches to the main SVN are now being kept in a folder under your main working directory called packaging\win32\patches. If you download or make a subsequent patch, put it in this directory to keep things orderly. It should be called {patchname}.patch or {patchname}.diff


The packaging\win32\patches folder does not exist.



I don`t want to use Autocad or other high end software to built an open source map of Romania. i want ot create a open source map with a open source program.


Return to “General Discussions”