Bug 150856 - Opening Forms: Form opens as a tiny window in the middle of the screen with Linux/KDE
Summary: Opening Forms: Form opens as a tiny window in the middle of the screen with L...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Michael Weghorn
URL:
Whiteboard: target:7.4.2
Keywords: bibisected, bisected, regression
: 151004 151038 151054 151078 151412 (view as bug list)
Depends on:
Blocks: KDE, KF5
  Show dependency treegraph
 
Reported: 2022-09-08 10:11 UTC by Robert Großkopf
Modified: 2023-02-17 08:52 UTC (History)
14 users (show)

See Also:
Crash report or crash signature:


Attachments
Minimized form in middel of the screen (107.76 KB, image/png)
2022-09-08 10:11 UTC, Robert Großkopf
Details
Minimized macro editor in top left of the screen (104.46 KB, image/png)
2022-09-08 10:12 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2022-09-08 10:11:24 UTC
Created attachment 182305 [details]
Minimized form in middel of the screen

Open a database document.
Click on a form.
Form opens minimized.

Same behavior when starting 
Tools → Macros → Edit Macros
in Base.

Version: 7.4.1.1 / LibreOffice Community
Build ID: 0a046a10cbf1679eea5538bd3ab63156caa3a036
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

Might be this is a special kf5-bug like bug 150779
Comment 1 Robert Großkopf 2022-09-08 10:12:25 UTC
Created attachment 182307 [details]
Minimized macro editor in top left of the screen
Comment 2 Robert Großkopf 2022-09-08 10:13:58 UTC
Works without any problem in LO 7.3.5.2, fails with first LO 7.4.0.* 
So it's an regression
Comment 3 Timur 2022-09-09 09:08:04 UTC Comment hidden (obsolete)
Comment 4 Robert Großkopf 2022-09-09 09:21:37 UTC
(In reply to Timur from comment #3)
> I didn't reproduce using attachment 174960 [details] from bug 144436 nor for
> Tools → Macros → Edit Macros.
> 1st step with a bug is to test with a new LO user profile folder, you may
> rename existing one.

Have already tested with a new user profile.
Could test it here with different versions of LO. Currently working with
Version: 7.3.5.2 / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

Bug doesn't appear here.

Did you test it with Linux/KDE?

Why did you set Importance to "low/minor"? As you could see in screenshots it is really a problem to find the opened editor for macros.
Comment 5 Timur 2022-09-09 09:50:50 UTC
I reproduced with older 7.4 as kf5 (at first I just tested current 7.4).
But not with master 7.5+ so I close as WFM.
As for Minor, it doesn't spoil data and it wasn't confirmed. 
But it was annoying, you are right.
Comment 6 Robert Großkopf 2022-09-09 10:20:27 UTC
Tested it with a new profile and LO 7.4.1.1
First start → Form in LO will be opened as expected.
Closed LO and reopened again → Form will be shown minimized

So it isn't resolved with LO 7.4.1.1
Comment 7 Timur 2022-09-09 11:29:07 UTC
Status Reopened is wrong per https://bugs.documentfoundation.org/page.cgi?id=fields.html#bug_status.
Reference is master 7.5+ so this is Fixed, but we don't know where so it's WFM as I closed.
You may set Unconfirmed if you tested master and it's still wrong, but not Reopened. 
Only thing that can be done here is to find a fix and check for backport, you are welcome to do it.
Comment 8 Robert Großkopf 2022-09-09 12:51:42 UTC
(In reply to Timur from comment #7)
> Status Reopened is wrong per
> https://bugs.documentfoundation.org/page.cgi?id=fields.html#bug_status.
> Reference is master 7.5+ so this is Fixed, but we don't know where so it's
> WFM as I closed.
> You may set Unconfirmed if you tested master and it's still wrong, but not
> Reopened. 
> Only thing that can be done here is to find a fix and check for backport,
> you are welcome to do it.

Reference isn't another build of LO. It has to be a build of LO 7.4. Couldn't be a normal user should wait (through all bug fixes in LO 7.4) for LO 7.5 to get a bug fixed.

A fixed bug is only a bug, where you could say: This has been changed and it works as expected in the same LO subversion (here LO 7.4).

I have set this one to unconfirmed. And I won't test it with a master of LO 7.5, because I won't work with a LO 7.4 for all the time where I have to size the forms every time I open them. 

I will hear all this from users, who will say: "Unusable, why do you write such a funny book as the Base Handbuch." (translated into English as Base Guide)
Comment 9 MANIKANDAN S 2022-09-11 06:06:14 UTC Comment hidden (obsolete)
Comment 10 Xisco Faulí 2022-09-13 14:06:51 UTC
@Ilmari, @Michael, any chance you could bisect this issue on your side ?
Comment 11 Buovjaga 2022-09-13 16:57:23 UTC
Bibisected with Linux 7.4 repo to
https://git.libreoffice.org/core/commit/ea5a0918c8c32309821ab239c4b95f4d6a3b5c12
VCL add vcl::WindowPosSize abstract class

I deleted user profile with each bisect and tested twice in a row. Bad result was usually that LibreOffice itself started minimised (at second test).
Comment 12 Michael Weghorn 2022-09-14 06:34:17 UTC
I have difficulties reproducing this, but I sometimes see Writer or Base starting minimized when the window was maximized on closing in the previous run with the libreoffice-7-4 branch as of commit 23d607b104013e412295ac83956edc74e94ed2df.

Given that ea5a0918c8c32309821ab239c4b95f4d6a3b5c12 mentions it "Should mostly be a refactoring" and nothing on 7-4 depends on it (except for a single place that was using the new name of a flag), reverting the commit on 7-4 only seems to be the easiest way forward to me.

Suggested Gerrit change:
https://gerrit.libreoffice.org/c/core/+/139903
Comment 13 Robert Großkopf 2022-09-14 07:10:22 UTC
Tested this again: Bug appears only if LO has been maximized before closing. Doesn't recognize this, because I'm only working with LO maximized.

If I'm opening a form and won't maximize it will not be minimized. But I had problems with this before, because the height of the form often will set a little bit smaller and after opening and closing it will get smaller and smaller … Haven't tested this with LO 7.4 and will report a bug, if this appears again.
Comment 14 Michael Weghorn 2022-09-14 07:21:41 UTC
(In reply to Buovjaga from comment #11)
> I deleted user profile with each bisect and tested twice in a row. Bad
> result was usually that LibreOffice itself started minimised (at second
> test).

Indeed, testing the *original* scenario like this makes the issue reproducible for me, see tdf#150779 comment 12 - and it seems to be related to previously maximized windows.
Comment 15 Michael Weghorn 2022-09-14 07:22:22 UTC
No longer reproducible for me with https://gerrit.libreoffice.org/c/core/+/139903 in place.
Comment 16 Commit Notification 2022-09-14 08:10:13 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/1c0f44cbacb4bcefcf383586e7ccd32d47388fa4

tdf#150779 tdf#150856 Revert "VCL add vcl::WindowPosSize ...

It will be available in 7.4.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 17 Michael Weghorn 2022-09-17 07:49:05 UTC
*** Bug 151004 has been marked as a duplicate of this bug. ***
Comment 18 Aron Budea 2022-09-19 01:00:48 UTC
*** Bug 151038 has been marked as a duplicate of this bug. ***
Comment 19 Rafael Lima 2022-09-19 11:31:30 UTC
*** Bug 151054 has been marked as a duplicate of this bug. ***
Comment 20 Buovjaga 2022-09-20 11:11:02 UTC
*** Bug 151078 has been marked as a duplicate of this bug. ***
Comment 21 Rafael Lima 2022-09-29 21:49:29 UTC
*** Bug 151220 has been marked as a duplicate of this bug. ***
Comment 22 Henrique Capeleiro 2022-10-14 08:11:14 UTC
I'm running 7.4.2.3 and I'm still affected by this bug. 

OS:
Arch Linux, updated.

DE:
KDE Plasma.
Comment 23 Michael Weghorn 2022-10-16 18:09:10 UTC
(In reply to Henrique Capeleiro from comment #22)
> I'm running 7.4.2.3 and I'm still affected by this bug. 
> 
> OS:
> Arch Linux, updated.
> 
> DE:
> KDE Plasma.

If this still happens with a fresh user profile, I suggest to create a new bug report and add a link here. Please describe the exact steps to reproduce and also copy the information from "Help" -> "About LibreOffice" into the bug report.
Comment 24 thunderbird_1990 2022-10-16 18:42:20 UTC
I've reported bug 151054, which seems related. I reopened bug 151054 per the suggestion in this thread.
Comment 25 Buovjaga 2022-10-17 10:06:58 UTC
*** Bug 151054 has been marked as a duplicate of this bug. ***
Comment 26 Buovjaga 2022-10-17 10:08:18 UTC
(In reply to Michael Weghorn from comment #23)
> (In reply to Henrique Capeleiro from comment #22)
> > I'm running 7.4.2.3 and I'm still affected by this bug. 
> > 
> > OS:
> > Arch Linux, updated.
> > 
> > DE:
> > KDE Plasma.
> 
> If this still happens with a fresh user profile, I suggest to create a new
> bug report and add a link here. Please describe the exact steps to reproduce
> and also copy the information from "Help" -> "About LibreOffice" into the
> bug report.

Adding Henrique to Cc. In the duplicate report, reporter said that the issue was gone after resetting the profile.
Comment 27 phd 2022-10-17 10:40:01 UTC
Works fine in LibreOffice 7.4.2.3 40(Build:3) in Kubuntu 22.04, without resetting my profile.
Comment 28 Lucas J 2022-11-17 05:07:55 UTC
*** Bug 151220 has been marked as a duplicate of this bug. ***
Comment 29 Buovjaga 2023-02-17 08:52:09 UTC
*** Bug 151412 has been marked as a duplicate of this bug. ***