<div dir="ltr">You have to give a specific integer value after the flag, e.g., -m 5000000<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 3:27 PM, Celso Bandeira de Melo Ribeiro <span dir="ltr"><<a href="mailto:celso.bandeira@ufjf.edu.br" target="_blank">celso.bandeira@ufjf.edu.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Jeff,<br>
Thank you for your suggestion.<br>
I tried to use -m flag but it doesn't work. Appear the massage that it<br>
wasn't provide:<br>
<br>
celso1234@ubuntu:~/2000_Diarios$ grads -m flag<br>
Note: -m option was specified, but no metafile buffer size was provided<br>
<br>
And the problem of Boffer overflow persists when I try to run scatter<br>
plot:<br>
<br>
Grid Analysis and Display System (GrADS) Version 2.0.a9<br>
Copyright (c) 1988-2010 by Brian Doty and the<br>
Institute for Global Environment and Society (IGES)<br>
GrADS comes with ABSOLUTELY NO WARRANTY<br>
See file COPYRIGHT for more information<br>
<br>
Config: v2.0.a9 little-endian readline printim grib2 netcdf hdf4-sds hdf5<br>
opendap-grids geotiff shapefile<br>
Issue 'q config' command for more detailed configuration information<br>
Landscape mode? ('n' for portrait):<br>
GX Package Initialization: Size = 11 8.5<br>
ga-> <a href="http://scatter1.gs" target="_blank">scatter1.gs</a><br>
No hardcopy metafile open<br>
All files closed; all defined objects released;<br>
All GrADS attributes have been reinitialized<br>
*** buffer overflow detected ***: grads terminated<br>
======= Backtrace: =========<br>
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f549d3d8f47]<br>
/lib/x86_64-linux-gnu/libc.so.6(+0x109e40)[0x7f549d3d7e40]<br>
/lib/x86_64-linux-gnu/libc.so.6(+0x10952b)[0x7f549d3d752b]<br>
/lib/x86_64-linux-gnu/libc.so.6(__snprintf_chk+0x78)[0x7f549d3d7408]<br>
grads(gascat+0x239)[0x44b749]<br>
grads(gaplot+0x40f)[0x4541ff]<br>
grads(gadspl+0x584)[0x499954]<br>
grads(gacmd+0x166e)[0x49834e]<br>
grads(gagsdo+0x34)[0x499fb4]<br>
grads(gsstmt+0x40)[0x4595d0]<br>
grads(gsruns+0x253)[0x459ab3]<br>
grads(gsrunf+0x134)[0x459e04]<br>
grads(gsfile+0x1aa)[0x45a24a]<br>
grads(gacmd+0x1a39)[0x498719]<br>
grads(main+0x5a7)[0x40d897]<br>
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f549d2ef76d]<br>
grads[0x40ddb1]<br>
======= Memory map: ========<br>
00400000-004c9000 r-xp 00000000 08:01 136215<br>
/usr/bin/grads<br>
006c8000-006c9000 r--p 000c8000 08:01 136215<br>
/usr/bin/grads<br>
006c9000-006cd000 rw-p 000c9000 08:01 136215<br>
<br>
I will keep trying.<br>
Best wishes.<br>
Celso<br>
<br>
<br>
On Mon, 2 Dec 2013 22:16:04 -0600, Jeff Duda <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>><br>
wrote:<br>
> Okay, I may be wrong about my thoughts. If it's the "buffer" that's<br>
> overflowing, perhaps that's related to the memory required to make the<br>
> scatter plot. In that case, use the -m flag when starting grads to set<br>
the<br>
> meta file buffer size to a large value (1000000 is the default, I think<br>
> that's in bytes).<br>
><br>
> If that doesn't work, then this is probably past my level of expertise<br>
on<br>
> the subject.<br>
><br>
> Jeff<br>
><br>
><br>
> On Mon, Dec 2, 2013 at 6:26 PM, Celso Bandeira de Melo Ribeiro <<br>
> <a href="mailto:celso.bandeira@ufjf.edu.br">celso.bandeira@ufjf.edu.br</a>> wrote:<br>
><br>
>> Hi Jeff,<br>
>> Thank you for your attention again.<br>
>> I am sending my code attached.<br>
>> Best wishes,<br>
>> Celso<br>
>><br>
>> On Sat, 30 Nov 2013 21:21:21 -0600, Jeff Duda <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>><br>
>> wrote:<br>
>> > It depends. Send your script code and I'll have a look at it.<br>
>> ><br>
>> > Jeff<br>
>> ><br>
>> ><br>
>> > On Sat, Nov 30, 2013 at 5:11 PM, Celso Bandeira de Melo Ribeiro <<br>
>> > <a href="mailto:celso.bandeira@ufjf.edu.br">celso.bandeira@ufjf.edu.br</a>> wrote:<br>
>> ><br>
>> >> Hi Heff Duda,<br>
>> >> Thank you for your attention and help.<br>
>> >> Do you know how can I fix this problem?<br>
>> >> I am using VM-Ware, Virtual Machine to run grads in Ubuntu. I need<br>
>> >> allocate more memory in VM ware?<br>
>> >> Best wishes.<br>
>> >> Celso<br>
>> >><br>
>> >> On Sat, 30 Nov 2013 16:15:09 -0600, Jeff Duda<br>
<<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > That sounds like a memory error - your command request exceeded<br>
the<br>
>> >> > available memory on the system you were using. That typically<br>
>> happens<br>
>> >> when<br>
>> >> > you define new arrays in Grads, especially if you do not undefine<br>
>> them<br>
>> >> > after use.<br>
>> >> ><br>
>> >> > Jeff Duda<br>
>> >> ><br>
>> >> ><br>
>> >> > On Sat, Nov 30, 2013 at 11:19 AM, Celso Bandeira de Melo Ribeiro <<br>
>> >> > <a href="mailto:celso.bandeira@ufjf.edu.br">celso.bandeira@ufjf.edu.br</a>> wrote:<br>
>> >> ><br>
>> >> >> Hello,<br>
>> >> >> Every time I am trying to plot a scatter graphic using 'set gxout<br>
>> >> >> scatter'<br>
>> >> >> it don't work and always appears one message that "buffer<br>
overflow<br>
>> >> >> detected". I tried on two different linux versions (Ubuntu and<br>
>> >> Xubuntu),<br>
>> >> >> but the problem continue.<br>
>> >> >> I don't know how to fix it.<br>
>> >> >><br>
>> >> >> The error message is:<br>
>> >> >><br>
>> >> >> ga-> scatter_PCP_ET.gs<br>
>> >> >> *** buffer overflow detected ***: grads terminated<br>
>> >> >> ======= Backtrace: =========<br>
>> >> >> /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x3bd085]<br>
>> >> >> /lib/i386-linux-gnu/libc.so.6(+0xebe87)[0x3bbe87]<br>
>> >> >> /lib/i386-linux-gnu/libc.so.6(+0xeb763)[0x3bb763]<br>
>> >> >> /lib/i386-linux-gnu/libc.so.6(__snprintf_chk+0x37)[0x3bb627]<br>
>> >> >> grads(gascat+0x247)[0x8091e07]<br>
>> >> >> grads(gaplot+0x42f)[0x809b3df]<br>
>> >> >> grads(gadspl+0x5b8)[0x80e30b8]<br>
>> >> >> grads(gacmd+0x1922)[0x80e1892]<br>
>> >> >> grads(gagsdo+0x41)[0x80e3751]<br>
>> >> >> grads(gsstmt+0x40)[0x80a0880]<br>
>> >> >> grads(gsruns+0x244)[0x80a0d94]<br>
>> >> >> grads(gsrunf+0x124)[0x80a10f4]<br>
>> >> >> grads(gsfile+0x1a6)[0x80a1556]<br>
>> >> >> grads(gacmd+0x1dca)[0x80e1d3a]<br>
>> >> >> grads(main+0x5d6)[0x80520b6]<br>
>> >> >> /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x2e9113]<br>
>> >> >> grads[0x8052661]<br>
>> >> >> ======= Memory map: ========<br>
>> >> >> 00110000-0012a000 r-xp 00000000 08:06 440979<br>
>> >> >> /usr/lib/libudunits2.so.0.1.0<br>
>> >> >> 0012a000-0012b000 r--p 0001a000 08:06 440979<br>
>> >> >><br>
>> >> >><br>
>> >> >> Can anybody help me?<br>
>> >> >> I appreciate some help.<br>
>> >> >> Celso<br>
>> >> >><br>
>> >> >><br>
>> >> >> --<br>
>> >> >> ____________________________________________<br>
>> >> >> Prof. Celso Bandeira de Melo Ribeiro<br>
>> >> >> Universidade Federal de Juiz de Fora - UFJF<br>
>> >> >> Faculdade de Engenharia, Plataforma 4<br>
>> >> >> Departamento de Engenharia Ambiental e Sanitaria<br>
>> >> >> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900<br>
>> >> >> tel. (32) 2102-3400<br>
>> >> >> Visiting Scholar in Texas A&M University<br>
>> >> >> _______________________________________________<br>
>> >> >> gradsusr mailing list<br>
>> >> >> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
>> >> >> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>> >> >><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> gradsusr mailing list<br>
>> >> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
>> >> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
>> >><br>
>><br>
>> --<br>
>> ____________________________________________<br>
>> Prof. Celso Bandeira de Melo Ribeiro<br>
>> Universidade Federal de Juiz de Fora - UFJF<br>
>> Faculdade de Engenharia, Plataforma 4<br>
>> Departamento de Engenharia Ambiental e Sanitaria<br>
>> Bairro Martelos, Juiz de Fora (MG) CEP. 36036-900<br>
>> tel. (32) 2102-3400<br>
>> Visiting Scholar in Texas A&M University<br>
>> _______________________________________________<br>
>> gradsusr mailing list<br>
>> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>