<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 - LibreOffice sends "your system has crashed" message if "Close Application" event is defined"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=121143">121143</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LibreOffice sends "your system has crashed" message if "Close Application" event is defined
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>LibreOffice
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>a.dreier@posteo.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
On starting LibreOffice the application shows message "It seems that
LibreOffice crashed when it 
was last run" at the end of the loading process. But program runs without any
further problems.

This behavior is a matter of assigning a macro to the "close application"
event.

Steps to Reproduce:
1. Deactivate the user profile by renaming it, so LibreOffice creates a fresh
one.
2. Create a macro module "mAuto".
3. Within that module create a procedure "pExit"
("Sub pExit
End Sub")
4. In menu "Extras - customize - events" assign the macro procedure to event
"close application".
5. Close LibreOffice and open it again.


Actual Results:
At the end of the loading processs message occurs: "It seems that LibreOffice
crashed when it was last run".


Expected Results:
Not such message, as LibreOffice didn't crashed after last run.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
The bug is restricted to the Close Apllication event. That is, assigning a
macro to event "start application" doesn't result in the misbehaviour.

LibO 5.4.7.2, and still
LibO 6.2.0.0.alpha1 (Build ID: ff46ad24d1d3cbcea45895520483ed1fd4ff488b),
both on Linux Mint 18.3 Cinnamon 3.6.7 64-bit,
Linux Kernel 4.10.0-38-generic, Intel Core i5-4200U CPU 1.60 GHz x 2.</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>