<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Changing conditional format condition through api crashes LibO"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107920">107920</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Changing conditional format condition through api crashes LibO
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.2.3.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jeanmarczambon@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=133380" name="attach_133380" title="Simple macro that crashes LibO">attachment 133380</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=133380&action=edit" title="Simple macro that crashes LibO">[details]</a></span>
Simple macro that crashes LibO

When trying to change the condition of a conditional format (of whatever type)
with macro using the uno api, the program systematically crashes.

You can reproduce with the simple macro embedded in the attached file.
Tested on Linux and Win7 with LibO 5.2 and 5.3, using either basic or python.


A one line error message is displayed on the terminal :
(soffice:12264): GLib-GObject-WARNING **:
/build/glib2.0-prJhLS/glib2.0-2.48.2/./gobject/gsignal.c:3486: signal name
'selection_changed' is invalid for instance '0x2f1b800' of type
'OOoAtkObjCompTxt'


The backtrace log :
Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffc4e1839a in ScCompiler::NextSymbol(bool) () from
/opt/libreoffice5.3/program/../program/libsclo.so
#0  0x00007fffc4e1839a in ScCompiler::NextSymbol(bool) () from
/opt/libreoffice5.3/program/../program/libsclo.so
#1  0x00007fffc4e20d48 in ScCompiler::NextNewToken(bool) () from
/opt/libreoffice5.3/program/../program/libsclo.so
#2  0x00007fffc4e21b4e in ScCompiler::CompileString(rtl::OUString const&) ()
from /opt/libreoffice5.3/program/../program/libsclo.so
#3  0x00007fffc5354550 in ScConditionEntryObj::setPropertyValue(rtl::OUString
const&, com::sun::star::uno::Any const&) () from
/opt/libreoffice5.3/program/../program/libsclo.so
#4  0x00007fffb54b772f in (anonymous
namespace)::ImplIntrospectionAccess::setPropertyValue(rtl::OUString const&,
com::sun::star::uno::Any const&) () from
/opt/libreoffice5.3/program/libintrospectionlo.so
#5  0x00007ffff4c0034f in SbUnoObject::Notify(SfxBroadcaster&, SfxHint const&)
() from /opt/libreoffice5.3/program/libmergedlo.so
#6  0x00007ffff50ad86d in SfxBroadcaster::Broadcast(SfxHint const&) () from
/opt/libreoffice5.3/program/libmergedlo.so
#7  0x00007ffff4caa7a3 in SbxVariable::Broadcast(unsigned int) () from
/opt/libreoffice5.3/program/libmergedlo.so
#8  0x00007ffff4ca5fbc in SbxValue::Put(SbxValues const&) () from
/opt/libreoffice5.3/program/libmergedlo.so
#9  0x00007ffff4ca7225 in SbxValue::operator=(SbxValue const&) () from
/opt/libreoffice5.3/program/libmergedlo.so
#10 0x00007ffff4ca961f in SbxVariable::operator=(SbxVariable const&) () from
/opt/libreoffice5.3/program/libmergedlo.so</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>