https://bugs.documentfoundation.org/show_bug.cgi?id=156850

            Bug ID: 156850
           Summary: PyQT6 (PySide6) Crashes in Python Macro
           Product: LibreOffice
           Version: 7.5.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Create a Python macro. Add any simple PySide6 (PyQT6) dialog window. Everything
works but when the macro ends, whole LO crashes. It does not matter what you
use, nothing or combination of sys.exit(app.exec()), app.quit() or other
commands. I am not the only one. I found this:
https://stackoverflow.com/questions/75325084/is-there-a-possibility-to-close-a-pyqt-dialog-in-libre-office-properly-python-m.
In older version of LO, it worked with just sys.exit(app.exec()). After
upgrade, the crashes started. Not sure what the older version was. Also it
seemed to me that the older LO version has PyQT singleton instance running but
in this new version 7.5.5.2, I have to create a new instance in the macro.

Steps to Reproduce:
1. Write a basic HelloWorld Python macro.
2. Add a basic HelloWorld PySide6 dialog using a ui file.
3. Run the macro. It crashes on the last line.

Actual Results:
Crash of LO.

Expected Results:
Gracefully closing the Python macro and continue work in LO.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Other user having the same or very similar problem:
https://stackoverflow.com/questions/75325084/is-there-a-possibility-to-close-a-pyqt-dialog-in-libre-office-properly-python-m

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-GB (cs_CZ.UTF-8); UI: cs-CZ
Ubuntu package version: 4:7.5.5~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to