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
Can you please share a sample script for testing? How did you instal pyqt6? Are you using the system interpreter or LO's internal interpreter? What OS are you using?
Created attachment 190158 [details] Hello World GUI test
Created attachment 190159 [details] Error Screenshot
(In reply to Rafael Lima from comment #1) > Can you please share a sample script for testing? > > How did you instal pyqt6? Are you using the system interpreter or LO's > internal interpreter? > > What OS are you using? Hi, thank you! Yes, I am attaching a sample script. Runs nicely, when the window is closed, the whole LibreOffice crashes (I am attaching the error screenshot). I am on Linux Mint 21.2 and LibreOffice is installed using deb. That means LibreOffice is using the system Python interpreter (which I also confirmed in APSO Python Shell). PyQT6 was installed using 'pip install PyQt6' or actually 'pip install PySide6' maybe (not sure now) into the system Python. My friend was also successful on Mac with installing PyQT6 using pip into LibreOffice's Python interpreter and the window also runs nicely. Not sure if it also crashes on close but he has an older version of LO anyways and in that older version (not sure which) closing the window did not crash LO both on Mac and Linux. Now I have LibreOffice 7.6.1.2 and closing the PyQT window crashes whole LO.
[Automated Action] NeedInfo-To-Unconfirmed
A new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Dear tomekluke, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear tomekluke, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp