Bug 151469

Summary: Basic script execution linked to ODB form crashes LibreOffice (macOS)
Product: LibreOffice Reporter: Alex Thurgood <iplaw67>
Component: BaseAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: medium    
Version: 7.4.1.2 release   
Hardware: ARM   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Test ODB file from bug 151455

Description Alex Thurgood 2022-10-11 10:40:36 UTC
Description:
Cloned from bug 151455
Use the example ODB file provided there.

1) Open the ODB file.
2) Accept macro execution
3) Open the form called TBL_Basic
4) Ignore the migration wizard if it appears (click on "Later")
5) Click in the ID column on the form and change the value of "2" to "1"
6) Click on another row of the table
6) Error message (Basic MsgBox) is displayed:
"You tried to enter a duplicate ID number"
7) Click on "OK"
8) Crash & recovery dialog launched.




Steps to Reproduce:
See above

Actual Results:
Crashes when clicking on "OK" button of MsgBox

Expected Results:
Should not crash, should return to open form.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Tested with

Version: 7.4.1.2 / LibreOffice Community (aarch64)
Build ID: 3c58a8f3a960df8bc8fd77b461821e42c061c5f0
CPU threads: 8; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

and

Version: 7.5.0.0.alpha0+ / LibreOffice Community (x86_64)
Build ID: f0a36babf2ef1384666705697f91e7ff4166f4e4
CPU threads: 8; OS: Mac OS X 12.6; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: en-US
Calc: threaded
Comment 1 Alex Thurgood 2022-10-11 10:43:13 UTC
If I run LODev in a lldb session, the crash does not occur.
Comment 2 Alex Thurgood 2022-10-11 10:43:37 UTC
Created attachment 182971 [details]
Test ODB file from bug 151455
Comment 3 Alex Thurgood 2022-12-14 10:50:21 UTC
No longer crashes with 

Version: 7.5.0.0.beta1 (AARCH64) / LibreOffice Community
Build ID: 3aca23eec42e9d6fbe57071d7633ae1fc4bc5fcc
CPU threads: 8; OS: Mac OS X 13.0.1; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

I suspect that this bug was fixed by the fix to bug 148435.
Comment 4 Alex Thurgood 2022-12-14 10:52:35 UTC
(In reply to Alex Thurgood from comment #3)
> No longer crashes with 
> 

 
> I suspect that this bug was fixed by the fix to bug 148435.

Or alternatively, the fix to bug 151894