Bug 162778 - LO may crash when trying to use the Basic IDE to open non-existent Dialogs
Summary: LO may crash when trying to use the Basic IDE to open non-existent Dialogs
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
24.8.0.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: BASIC-IDE
  Show dependency treegraph
 
Reported: 2024-09-03 21:33 UTC by rehierl
Modified: 2024-11-12 17:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature: https://crashreport.libreoffice.org/stats/crash_details/1812c4da-408c-46d6-b210-1a953802cb5b


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rehierl 2024-09-03 21:33:56 UTC
Description:
When trying to use the "Dialog" toolbar in the Basic IDE, the user interface may block - and even cause LO to crash - when trying to open non-existent dialogs via the toolbar's combobox.

steps to reproduce:
- open a new document in calc
- no pre-existing document is required
- open the basic ide
- invoke the "Dialog" toolbar
- basic ide / menu / view / toolbars / dialog
- select [My Macros & Dialogs].Standard
- (assuming there is no dialog that could be loaded)
- the user interface may show an empty dialog and block
- in that case it is anything bot straight forward to
  shut down libreoffice, and to get rid of the empty dialog
- the user may even have to restart his session (aka. log off)
- alternatively, libreoffice may even crash immediately

crash report (one of several):
- https://crashreport.libreoffice.org/stats/crash_details/1812c4da-408c-46d6-b210-1a953802cb5b

remarks:
- similar effects when selecting other entries in the "Dialog" combobox
- e.g [Application Macros & Dialogs].SFDatabases
- e.g [Application Macros & Dialogs].SFDialogs
- and more ...

solution:
The "Dialog" combobox should not have any such invalid entries
- i.e. entries for dialogs that do not exist.


Steps to Reproduce:
As described in the description.

Actual Results:
The user's desktop may be blocked due to an empty open dialog.
Alternatively, LO crashes right away.

Expected Results:
No entries in the toolbar's combobox that may cause such issues.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Rafael Lima 2024-09-04 11:12:26 UTC
My Standard library has no dialogs and I am unable to reproduce the crash.

When I switch to the Standard library, nothing happens. But since it has no dialogs, the "Dialog" toolbar simply disappears (as expected).

Tested with

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fd17477d62bdbe74fcc2723992c6e07c7f634349
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 2 rehierl 2024-09-04 15:53:22 UTC
@Rafael - Did you try the other entries as well?
Do they appear in your combobox in the "Dialog" toolbar?

- e.g [Application Macros & Dialogs].SFDatabases
- e.g [Application Macros & Dialogs].SFDialogs

I reliably get issues when I select one of these two.

With the [My Macros & Dialogs].Standard entry it seems to depend how exactly the Basic IDE is opened. Meaning that, if your IDE opens with a macro in the [My Macros & Dialogs] library, then select an entry in a different library.
Comment 3 Buovjaga 2024-11-12 17:48:57 UTC
(In reply to rehierl from comment #2)
> @Rafael - Did you try the other entries as well?
> Do they appear in your combobox in the "Dialog" toolbar?
> 
> - e.g [Application Macros & Dialogs].SFDatabases
> - e.g [Application Macros & Dialogs].SFDialogs
> 
> I reliably get issues when I select one of these two.
> 
> With the [My Macros & Dialogs].Standard entry it seems to depend how exactly
> the Basic IDE is opened. Meaning that, if your IDE opens with a macro in the
> [My Macros & Dialogs] library, then select an entry in a different library.

Let's add Rafael to Cc.