Graphics, Figures & Tables"Buffer size exceeded!" - Which setting to tweak?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

"Buffer size exceeded!" - Which setting to tweak?

Post by drgz »

I post this here as well (posted at pgf-users@lists.sourceforge.net as well), as it is a bit urgent. :)

Quick question; whenever I try to compile the TikZ file in the link below, pdfLaTeX quits with an error stating: "Buffer size exceeded! This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information."

The file I try to compile is:
scatter21dBm.zip
The file created by matlab2tikz in a ZIP archive.
(121.32 KiB) Downloaded 180 times
I've tried to increase the main memory, but this do not solve the problem, so I assume there is another setting that I have to tweak, but I do not which.

So I hope maybe someone could guide me to the correct setting to change? :)

I'm using MikTex 2.8 if that should have anything to say.

Best regards,

drgz

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"Buffer size exceeded!" - Which setting to tweak?

Post by localghost »

Please upload attachments to the forum server (see Board Rules, done here subsequently). External links can get lost with time and make problem incomprehensible.

I suggest to copy the coordinate pairs into a CSV file and plot them this way. I already plotted datasets with a similar amount of coordinates successful with the pgfplots package.


Best regards
Thorsten
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

Re: "Buffer size exceeded!" - Which setting to tweak?

Post by drgz »

Sorry about the file, completely forgot about it. However, how do you use the pgfpackage to plot a csv? After reading the manual for the matlab2tikz script I get the impression of that it is exactly what this script does - exports data from MATLAB in order to plot it with the pgfplot package?

I mean, I have other similar files of different measurements where the data file (TikZ) file is 4MB large, and is generated in the same way. I experience no problem when compiling these (other than it takes forever, but the result is worth it).

Or am I way off?


Best regards,
drgz
Last edited by drgz on Wed Mar 31, 2010 6:25 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: "Buffer size exceeded!" - Which setting to tweak?

Post by localghost »

Just for your information. I face the same problem with TXC2 alpha 2 on a MiKTeX 2.8 system. At the moment I have no time to test it on Linux or translate my suggestion. I suggest to wait for a reaction on the mailing list. Please report the results here.
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

"Buffer size exceeded!" - Which setting to tweak?

Post by drgz »

localghost wrote:Just for your information. I face the same problem with TXC2 alpha 2 on a MiKTeX 2.8 system. At the moment I have no time to test it on Linux or translate my suggestion. I suggest to wait for a reaction on the mailing list. Please report the results here.
So far no one has come up with any good solution on the mailing list, but I just bumped my original post, adding the very time-consuming (and not optimal) procedure I solved my specific problem with.

The post on the mailing list can be viewed on http://old.nabble.com/Error-when-trying ... #a28098287
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

Re: "Buffer size exceeded!" - Which setting to tweak?

Post by drgz »

I managed to get a bit further; when I increase the buffer size of pdfLaTeX to the maximum allowed, it takes a bit longer before the error occurs, so this is obviously the main problem.

However, if I manually split up the code to several "sub-plots" (just enter additional random \addplot commands in the TikZ-file), it works fine. So while the maximum allowed buffer-size in pdfLaTeX is as low as it is today, a workaround is to make a script that place random \addplot commands in the TikZ-file, decreasing the amount of data pdfLaTeX needs to buffer.

Not the best solution, but maybe the easiest I can think of, as this also allows for changing fonts etc quite easily from the main LaTeX document.
Post Reply