<div dir="ltr">Hi Kihang,<div>Without seeing the exact error message, and an example of the graphical output, this is difficult to answer. Changing vpYF or tmYLLabelDeltaF should not result in a segmentation fault per se. I wonder if you are running out of memory? Is the seg fault a malloc error? If it is, can you alter the code to use less memory, or switch to a different machine? If it is not, then I unfortunately do not know what to suggest. Hopefully someone else on the ncl-talk list can chime in here.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 22, 2021 at 4:53 AM Kihang Youn via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
</div>
<span style="margin:0px;font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif">Hi All,</span>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">I got some segmentation errors during draw or frame steps. </span><span style="margin:0px"></span></div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">To debug or figure out a workaround, I tried commenting out the functions.</span></div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">First, once I comment on the gsn_add_polyline function, Seg error does not occur.</span></div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">But polyline is needed, so I uncommented it and looked at the other values, and as a result, </span><span style="margin:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">no
 error occurred by adjusting the following variables </span><span style="margin:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">res@vpYF or </span><span style="margin:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">res@tmYLLabelDeltaF.</span></div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="margin:0px"><br>
</span></div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="margin:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Can such variables affect the size of an image or frame and cause a segmentation
 fault? </span></div>
<div style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="margin:0px"><br>
</span></div>
<span style="margin:0px;font-size:12pt;color:rgb(0,0,0)"><span style="margin:0px;font-family:calibri,arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">For information, the ncl script draws multiple pictures with the do statement,
 but an error occurs only in some pictures.</span></span>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Please let me know if you have any suggestions.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Belows are system information and library information</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
CentOS Linux release 8.3.2011<br>
Derived from Red Hat Enterprise Linux 8.3<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
ncl/6.6.2<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
ulimit -a
<div>core file size          (blocks, -c) unlimited</div>
<div>data seg size           (kbytes, -d) unlimited</div>
<div>scheduling priority             (-e) 0</div>
<div>file size               (blocks, -f) unlimited</div>
<div>pending signals                 (-i) 2317435</div>
<div>max locked memory       (kbytes, -l) unlimited</div>
<div>max memory size         (kbytes, -m) unlimited</div>
<div>open files                      (-n) 16384</div>
<div>pipe size            (512 bytes, -p) 8</div>
<div>POSIX message queues     (bytes, -q) 819200</div>
<div>real-time priority              (-r) 0</div>
<div>stack size              (kbytes, -s) unlimited</div>
<div>cpu time               (seconds, -t) unlimited</div>
<div>max user processes              (-u) 300</div>
<div>virtual memory          (kbytes, -v) 16777216</div>
file locks                      (-x) unlimited<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_-9000580292808482398Signature">
<div>
<div></div>
<div></div>
<div></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Kihang<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(12,100,192)"><b>Kihang Youn</b></span> - Application Analyst | Lenovo DCG <span>Professional Services</span>
<div>Mobile: +82-10-9374-9396<br>
</div>
E-mail: <a href="mailto:kyoun@lenovo.com" target="_blank">kyoun@lenovo.com</a><br>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>