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

            Bug ID: 172670
           Summary: Macro Manager sometimes crashes if you create a Python
                    library
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If you create a library when there is already an unexpanded nested library then
LibreOffice will crash. I think this is a general problem with weld::TreeView
but probably only the Macro Manager can get into the situation.

Steps to Reproduce:
1. Figure out what directory is used to store Python scripts on your system
using this wiki page:
https://wiki.documentfoundation.org/Macros/Python_Guide/Introduction#Where_to_save_macros.3F
2. Create the following sub-directories in that directory:
<python-script-folder>/MyLibrary
<python-script-folder>/MyLibrary2
3. Create an empty file in MyLibrary2 called MyScript.py
4. Launch LibreOffice
5. Enable experimental features with Tools->Options and then
LibreOffice->Advanced and click the “Enable Experimental features” checkbox.
6. Let LibreOffice restart itself when it asks.
7. Open the macro manager with Tools->Macros->Macro Manager.
8. Select My Macros->Python
9. Click New Library
10. Click OK to give a name to the library

Actual Results:
LibreOffice crashes

Expected Results:
The library should be created without crashing.


Reproducible: Always


User Profile Reset: No

Additional Info:
I think this should happen on at least the GTK and gen VCL plugins. I’m not
sure about Qt and windows.

This is the bug mentioned at the end of the Scripting section in the ESC agenda
for the 2nd of July 2026.

Version: 27.2.0.0.alpha0+ (X86_64)
Build ID: b127e9bd7bc4db73bfbbd8f0bbe04ca361528c9b
CPU threads: 8; OS: Linux 7.0; UI render: default; VCL: x11
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded

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

Reply via email to