<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Python script freezes when access text field master in MailMerge event for the second time"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134112#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Python script freezes when access text field master in MailMerge event for the second time"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134112">bug 134112</a>
              from <span class="vcard"><a class="email" href="mailto:olegshtch@yandex.ru" title="Oleg Shchelykalnov <olegshtch@yandex.ru>"> <span class="fn">Oleg Shchelykalnov</span></a>
</span></b>
        <pre>Looks like it doesn't depend on some text field master but for the second
accessed on

I excluded builtin SetExpression and got same freeze for user fields in the
document:

INFO:root:row = 1
DEBUG:root:Get text field masters
DEBUG:root:textFieldMasterName =
com.sun.star.text.fieldmaster.SetExpression.Illustration
DEBUG:root:textFieldMasterName =
com.sun.star.text.fieldmaster.SetExpression.Table
DEBUG:root:textFieldMasterName =
com.sun.star.text.fieldmaster.SetExpression.Text
DEBUG:root:textFieldMasterName =
com.sun.star.text.fieldmaster.SetExpression.Drawing
DEBUG:root:textFieldMasterName =
com.sun.star.text.fieldmaster.SetExpression.Figure
DEBUG:root:textFieldMasterName = com.sun.star.text.fieldmaster.User.id_128C_6
DEBUG:root:Got text field master com.sun.star.text.fieldmaster.User.id_128C_6
INFO:root:Name = id_128C_6
DEBUG:root:textFieldMasterName =
com.sun.star.text.fieldmaster.User.actualCapital
DEBUG:root:Got text field master
com.sun.star.text.fieldmaster.User.actualCapital</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>