<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 - [REGRESSION] Iterating objects in a slide with an image fails"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126631">126631</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[REGRESSION] Iterating objects in a slide with an image fails
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.4.0.0.alpha0+ Master
          </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>Impress
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>hi-angel@yandex.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=153060" name="attach_153060" title="Script that simply connects to Impress and iterates over 1st slide objects">attachment 153060</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=153060&action=edit" title="Script that simply connects to Impress and iterates over 1st slide objects">[details]</a></span>
Script that simply connects to Impress and iterates over 1st slide objects

On current master, if a slide has an image (tested with PNG and JPG), iterating
over slide objects and accessing ShapeType property results in

    __main__.RuntimeException: Binary URP bridge disposed during call

# Steps to reproduce:

1. Run `soffice.bin --impress
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"` (an
Impress window should appear)
2. Copy this image to the new presentation
<a href="https://wiki.documentfoundation.org/images/8/8c/BHS_large_6.3_RC2.png">https://wiki.documentfoundation.org/images/8/8c/BHS_large_6.3_RC2.png</a>
3. Run the attached script as `python test.py`

## Expected

No output

## Actual

Script fails as:

    $ python test.py
    Traceback (most recent call last):
    File "test.py", line 30, in <module>
        [item for item in slide if item.ShapeType ==
'com.sun.star.drawing.TableShape']
    File "test.py", line 30, in <listcomp>
        [item for item in slide if item.ShapeType ==
'com.sun.star.drawing.TableShape']
    __main__.RuntimeException: Binary URP bridge disposed during call

# Additional information

Info for a version without the problem

    Version: 6.2.5.2
    Build ID: 6.2.5-1
    CPU threads: 4; OS: Linux 5.2; UI render: default; VCL: gtk3;
    Locale: ru-RU (ru_RU.UTF-8); UI-Language: en-US
    Calc: threaded

Info for a version where the problem is present:

    Version: 6.4.0.0.alpha0+
    Build ID: 236593a0544ea41e37d35b8fac83b31d0e7c5b67
    CPU threads: 4; OS: Linux 5.2; UI render: default; VCL: gtk3;
    Locale: ru-RU (ru_RU.UTF-8); UI-Language: en-US
    Calc: threaded</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>