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

            Bug ID: 172061
           Summary: CRASH: Writer crashes in LibreOffice 25.8.6 when
                    pressing macro button "Datenübernahme" in attached OTT
                    template
           Product: LibreOffice
           Version: 25.8.6.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 207055
  --> https://bugs.documentfoundation.org/attachment.cgi?id=207055&action=edit
20260513-Attachment.zip contains the obove mentioned files
023-01-LiVermVV-Grenzniederschrift-Flurstücksbildung-1.ott and
007A-Projektbegleitblatt-Kataster.ods.

CRASH: Writer crashes in LibreOffice 25.8.6 when pressing macro button
"Datenübernahme" in attached OTT template; works in 25.2.7 and 24.8.7

Product: LibreOffice
Component: Writer / BASIC / macros / forms
Version: LibreOffice 25.8.6
Regression: Yes, works in LibreOffice 25.2.7 and 24.8.7

Attached files:
1. 023-01-LiVermVV-Grenzniederschrift-Flurstücksbildung-1.ott
2. 007A-Projektbegleitblatt-Kataster.ods

Steps to reproduce:
1. Open the attached OTT template.
2. Enable macros.
3. Enter the order number in the field "EingAuftragsnummer".
4. Make sure the attached ODS file is available in the expected path:
   O:\<order-number>\007A-Projektbegleitblatt-Kataster.ods
5. Press the form button "Datenübernahme".

Actual result:
LibreOffice 25.8.6 crashes.

Expected result:
The macro reads the ODS data and fills the Writer template, as it does in
LibreOffice 25.2.7 and 24.8.7. LibreOffice must not crash. If the macro
contains an error, LibreOffice should show a Basic/UNO error and remain open.

Additional information:
The original macro contained removeByIndex calls that could result in
removeByIndex(..., 0). These calls were guarded so that removeByIndex is only
executed with a positive row count. The crash still occurs in LibreOffice
25.8.6. and 25.8.7.

This suggests a regression in LibreOffice 25.8.6 and 25.8.7, probably related
to Writer text tables, form button events, LibreOffice Basic macro execution,
or reading external ODS data from a Writer template.

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

Reply via email to