Bug 156263 - Calc windows cannot be closed after focus change from Validity dialog
Summary: Calc windows cannot be closed after focus change from Validity dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Cell-Validity
  Show dependency treegraph
 
Reported: 2023-07-12 22:59 UTC by Gabor Kelemen (allotropia)
Modified: 2025-09-12 17:17 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-07-12 22:59:28 UTC
This is split off from bug 155708 comment #1

STR_B, obtaining a much worse resulting behavior:

0. LO is closed before starting the procedure. Open Start Center.
1. Open only one new (empty) Calc window (Untitled 1).
2. [CTRL]+[N] (Untitled 2)
3. Menu Data > Validity

4. Change window to "Untitled 1" (on MS Windows, [ALT]+[TAB]).
5. Change window to "Untitled 2" (on MS Windows, [ALT]+[TAB]).

6. Click on "All values" of the "Allow" field.
7. Click on "Cell range" of the "Allow" field.
8. Click once inside the "Source" field.
7. Change window to "Untitled 1" (on MS Windows, [ALT]+[TAB]).
9. Change window to "Untitled 2" (on MS Windows, [ALT]+[TAB]).

Intermediate results:
The Validity dialog is still displayed.

10. [ESC] to exit the dialog.
11. Menu File > Close (the window is still opened).
12. Open a new (empty) Writer window; it can be successfully closed.
13. Open a new (empty) Calc window; it cannot be closed.

Actual results:
Calc windows can _not_ be actually closed; they have to be forcefully closed by using Task Manager. When re-opening LO, these will be listed for recovery attempt.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fcbae818b793a9ee97a1b5ddc53902be7a2376f5
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

This seems to have started in 7.2 with:

https://git.libreoffice.org/core/+/618cb39b558b7e3f9a6f2aa8cf0a935602118388

author	Caolán McNamara <caolanm@redhat.com>	Sat Mar 27 16:20:43 2021 +0000
committer	Caolán McNamara <caolanm@redhat.com>	Sat Mar 27 20:10:49 2021 +0100

tdf#141141 sync SalFrame::GetFrameWeld and weld::GetPopupParent

Before this both windows could be closed just fine.

Adding CC to: Caolán McNamara
Comment 1 ady 2023-07-13 09:11:51 UTC Comment hidden (obsolete)
Comment 2 ady 2023-07-27 02:41:05 UTC
(In reply to ady from comment #1)
> Since this is a split off from bug 155708, let's CC Balazs Varga too.
> 
> Shouldn't the "Component" field of this bug 156263 be "Calc" instead of "UI"?

I'm changing the component field from UI to Calc.
Comment 3 QA Administrators 2025-07-27 03:09:39 UTC Comment hidden (obsolete)
Comment 4 Ville Aakko 2025-09-06 15:05:13 UTC
Hi,

This is still an issue on:

Version: 25.8.1.1 (X86_64) / LibreOffice Community
Build ID: 580(Build:1)
CPU threads: 32; OS: Linux 6.16; UI render: default; VCL: kf6 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
25.8.1-1
Calc: threaded

I have to note the UI is broken in various ways in addition to those listed by OP. One can not choose a different table on an open document (CTRL+PgUp and PgDown still work).

It's as if the validity dialog, which has been closed, still has focus and is "hijacking" input logic of LO (if this description makes sense).

Also, the cell range field is useless, one can not actually choose any cell range. The Validity dialog seems quite broken overall.
Comment 5 Takenori Yasuda 2025-09-06 15:57:23 UTC
Cannot reproduce in the following versions. It closes normally at Step 11.

Version: 24.8.7.2 (x86) / LibreOffice Community
Build ID: e07d0a63a46349d29051da79b1fde8160bab2a89
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded

Version: 25.2.6.2 (X86_64) / LibreOffice Community
Build ID: 729c5bfe710f5eb71ed3bbde9e06a6065e9c6c5d
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded Jumbo


I believe what is occurring in the LibreOffice 25.8 series is Bug 166527.