<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I pushed a patch to print more details about printed size,
      current token size and overall output buffer size in those error
      log messages -- the commit:</p>
    <p>  *
<a class="moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/commit/44e48809a608d4de46d61198137cd669c6a4763f">https://github.com/kamailio/kamailio/commit/44e48809a608d4de46d61198137cd669c6a4763f</a></p>
    <p>Can you try with this patch and send again here on mailing list
      the error log messages?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 13.02.19 09:20, Enrico Bandiera
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGqwm+d5SsO8z5t-GorweWwCkrUkPcrQP+ZPk_JFcwdETccxsA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><br>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">---------- Forwarded message
            ---------<br>
            From: <strong class="gmail_sendername" dir="auto">Enrico
              Bandiera</strong> <span dir="ltr"><<a
                href="mailto:enrico.bandiera@cloud.timenet.it"
                moz-do-not-send="true">enrico.bandiera@cloud.timenet.it</a>></span><br>
            Date: mer 13 feb 2019 alle ore 09:18<br>
            Subject: Re: [SR-Users] pv_buffer_size config value actually
            ignored?<br>
            To: Daniel-Constantin Mierla <<a
              href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>><br>
          </div>
          <br>
          <br>
          <div dir="ltr">
            <div dir="ltr">Hello Daniel, yes we do use that $avp for a
              log line which is actually a big json, the $avp is
              composed by multiple jansson_append calls and at the end
              an xlog() calls prints it</div>
            <div>Could it also be that I'm miscalculating because of the
              encoding? 4K utf8 characters could be more than 4K (but I
              don't think there are so many multibytes characters to let
              it reach the 8K limit)</div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">Il giorno mer 13 feb 2019
              alle ore 09:15 Daniel-Constantin Mierla <<a
                href="mailto:miconda@gmail.com" target="_blank"
                moz-do-not-send="true">miconda@gmail.com</a>> ha
              scritto:<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 bgcolor="#FFFFFF">
                <p>Hello,</p>
                <p>where do you use that avp, because for the avp value
                  itself, that buffer is not used -- avp values are
                  stored in shared memory.</p>
                <p>Do you use that avp in xlog() or other functions
                  parameters?</p>
                <p>Cheers,<br>
                  Daniel<br>
                </p>
                <div
                  class="m_-1639198096426645503gmail-m_3979465740738386549moz-cite-prefix">On
                  13.02.19 09:10, Enrico Bandiera wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">Hi, I'm having some strange issues
                        with a somewhat big $avp value, when it reaches
                        a size of about 4K I get this error:</div>
                      <div dir="ltr"><br>
                      </div>
                      <div dir="ltr">
                        <div dir="ltr">29(47) ERROR: <core>
                          [core/pvapi.c:1452]: pv_printf(): no more
                          space for spec value</div>
                        <div dir="ltr">29(47) ERROR: <core>
                          [core/pvapi.c:1461]: pv_printf(): buffer
                          overflow – increase the buffer size...</div>
                        <div dir="ltr"><br>
                        </div>
                        <div>In the docs I read that the default
                          pv_buffer_size is 8K, I still tried to enforce
                          it to something bigger and checked the logs to
                          be sure it was set:</div>
                        <div><br>
                        </div>
                        <div>0(384) DEBUG: <core>
                          [core/pvapi.c:2062]: pv_init_buffer(): PV
                          print buffer initialized to [40][16384]<br>
                        </div>
                        <div><br>
                        </div>
                        <div>But still when reaching the 4K size inside
                          the $avp that error comes out, is there any
                          limit I'm not aware of?</div>
                        <div><br>
                        </div>
                        <div>Thanks,</div>
                        <div>Enrico.</div>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset
class="m_-1639198096426645503gmail-m_3979465740738386549mimeAttachmentHeader"></fieldset>
                  <pre class="m_-1639198096426645503gmail-m_3979465740738386549moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                </blockquote>
                <pre class="m_-1639198096426645503gmail-m_3979465740738386549moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank" moz-do-not-send="true">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="m_-1639198096426645503gmail-m_3979465740738386549moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a></pre>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>