Closed Bug 223213 Opened 21 years ago Closed 17 years ago

nsPostScriptObj.cpp(1623) : fatal error C1076: compiler limit : internal heap limit reached;

Categories

(Core :: Printing: Output, defect)

x86
Windows 2000
defect
Not set
trivial

Tracking

()

RESOLVED WONTFIX

People

(Reporter: timeless, Assigned: kherron+mozilla)

Details

Building deps for /cygdrive/i/build/mozilla/gfx/src/ps/nsPostScriptObj.cpp
/cygdrive/i/build/mozilla/build/cygwin-wrapper cl -FonsPostScriptObj.obj -c
-DOSTYPE=\"WINNT5.0\" -DOSARCH=\"WINNT\" -DHAVE_DEPENDENT_LIBS -I../..
-Ii:/build/mozilla/gfx/src/ps/..  -I../../../dist/include/xpcom
-I../../../dist/include/string -I../../../dist/include/widget
-I../../../dist/include/pref -I../../../dist/include/caps
-I../../../dist/include/locale -I../../../dist/include/uconv
-I../../../dist/include/view -I../../../dist/include/necko
-I../../../dist/include/imglib2 -I../../../dist/include/gfx
-I../../../dist/include -I../../../dist/include/nspr    -I.       -TP -nologo
-W3 -nologo -Gy -Fdgfxps.pdb  -DDEBUG -D_DEBUG -DDEBUG_timeless -DTRACING -Zi 
-MDd           -DX_DISPLAY_MISSING=1 -DHAVE_SNPRINTF=1 -D_WINDOWS=1 -D_WIN32=1
-DWIN32=1 -DXP_WIN=1 -DXP_WIN32=1 -DHW_THREADS=1 -DWINVER=0x400 -DSTDC_HEADERS=1
-DWIN32_LEAN_AND_MEAN=1 -DNO_X11=1 -D_X86_=1 -DD_INO=d_ino
-DMOZ_DEFAULT_TOOLKIT=\"windows\" -DOJI=1 -DIBMBIDI=1 -DMOZ_VIEW_SOURCE=1
 -DMOZ_XPINSTALL=1 -DMOZ_JSLOADER=1 -DMOZ_MATHML=1 -DMOZ_LOGGING=1
-DFORCE_BUILD_REFCNT_LOGGING=1 -DDETECT_WEBSHELL_LEAKS=1 -DMOZ_TIMELINE=1
-DMOZ_PERF_METRICS=1 -DNS_TRACE_MALLOC=1 -DMOZ_USER_DIR=\"Mozilla\" -DMOZ_XUL=1
-DMOZ_PROFILESHARING=1 -DMOZ_PROFILELOCKING=1 -DMOZ_DLL_SUFFIX=\".dll\"
-DJS_THREADSAFE=1 -DNS_PRINT_PREVIEW=1 -DNS_PRINTING=1 -DMOZ_REFLOW_PERF=1
-DMOZ_REFLOW_PERF_DSP=1 -DMOZILLA_VERSION=\"1.6a\"  -D_MOZILLA_CONFIG_H_
-DMOZILLA_CLIENT /cygdrive/i/build/mozilla/gfx/src/ps/nsPostScriptObj.cpp
nsPostScriptObj.cpp
i:/build/mozilla/gfx/src/ps/nsPostScriptObj.cpp(1623) : fatal error C1076:
compiler limit : internal heap limit reached;
 use /Zm to specify a higher limit

I:\build\mozilla\debug-i686-pc-cygwin\gfx\src\ps>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

Not knowing what the flag did, i found /Zm1000 worked

Yes, you need patches to build gfxps on windows. i'll post them elsewhere. this
issue is independent of that :).
So your compiler is buggy.  I feel that this should be wontfix or a build config
issue at best...
The block of code in question used to be ~1300 separate fprintf() calls; now
it's a single fprintf() printing a string composed of ~1300 parts. Apparently
either the size of the string or the number of parts is too much for your
compiler. It wouldn't be a big deal to break this big string into three or four
smaller strings.
That might not be a bad idea.  Technically the C89 standard (although not C99)
has a limit on string literal length (somewhere around (probably a little under)
512 characters, IIRC, from when I was working on bug 175423).
Taking.
Assignee: printing → kjh-5727
Closing this. The long string constant was broken up over time in the course of checking in other patches. In any event, the code at issue is obsolete on the trunk, and only major bug fixes are being accepted on the branches.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.