Bug 145084 - Linux/KDE: Mail Merge cursor disappears after 1st or 2nd field is entered
Summary: Linux/KDE: Mail Merge cursor disappears after 1st or 2nd field is entered
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: KDE, KF5
  Show dependency treegraph
 
Reported: 2021-10-11 23:56 UTC by Richard Dawson
Modified: 2021-11-05 15:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
source file for attempt to create labels (11.71 KB, application/vnd.oasis.opendocument.database)
2021-10-12 19:51 UTC, Richard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Dawson 2021-10-11 23:56:25 UTC
Running 7,.2.1.2 on Kubutu 20.04.  Creating labels with Avery label # 5160.  After entering a field into the label, the cursor disappears, so I cannot enter anything more with the keyboard.  I tried hitting the enter key, hitting the escape key, hitting the tap key, pounding on keys at random, and swearing profusely.  None of these actions brought the cursor back.  

Sometimes the cursor disappears after the first field entry, sometimes after the second or subsequent field.  I may have managed to get in three fields in one attempt to create the label.  Once the cursor disappears, I can still enter more fields, but they are inserted immediately after the most recently entered field, on the same line.

I transferred the same database to a different machine running Kubuntu 20.04 and LibreOffice 6.4.72.  I was able to create the labels on that machine without a problem.  

I tried using a couple different Avery label forms, all with the same result, so the problem doesn't appear to be in a particular template.
Comment 1 Alex Thurgood 2021-10-12 09:54:25 UTC
@Richard: are you using the database module ReportBuilder, or the Mailmerge wizard ?

It is not entirely clear to me which, as you mention making Labels using an Avery reference, which is usually achieved via the MailMerge functionality using Writer, and then later on refer to having transferred your database (presumably the datasource used to inject data into the label template).

Are you using the distro-provided version of LibreOffice 7212, or a snap package, PPA, or the version downloaded from LibreOffice project download page ?

All of the alternative sources of LibreOffice often contain subtle differences, and very often bugs of their own, due to the way they are built and packaged for release via those different release channels.

This sounds to me as though the problem lies with one of those alternative release channels, rather than with the TDF version of 7212 available via the LibreOffice project download website, but we need more information from you in order to decide.

Please provide the exact package version number.
Comment 2 Alex Thurgood 2021-10-12 09:55:49 UTC
Also please provide us with a sample datasource and label template file, with step by step instructions on how to reproduce the issue you are experiencing.
Comment 3 Richard Dawson 2021-10-12 19:51:54 UTC
Created attachment 175698 [details]
source file for attempt to create labels
Comment 4 Richard Dawson 2021-10-12 19:57:20 UTC
I created the "database" in Calc.  When I registered it, it created the .odb file.  Opening that put me into Base, where I attempted to create labels using Print>New>labels.  (Apparently I am using MailMerge, not ReportBuilder.)

I am using the version that I installed via a ppa that I added:  http://ppa.launchpad.net/libreoffice/ppa/ubuntu

Help About gives this information:

    Version:        7.2.1.2/LibreOffice Community
    Environment:    CPU threads 16; OS:Linux 5.4
    User Interface: UI render:default;VCLO:kfg(cairo_xcb)
    Misc:           Ubuntu package version 1:7.2.1-Oubuntu02.20.04.1l01 Calc threaded 

The template that I am using, listed as Avery label #5160, is embedded in LibreOffice.  I tried creating labels with another, randomly selected label form, but it had the same problem, leading me to the conclusion that the problem was not in the particular template I was using.

As I mentioned, I successfully created labels on another machine also running Kubuntu 20.04, but with the version 6.4.72 that "came with" Kubuntu 20.04.
Comment 5 Robert Großkopf 2021-10-13 07:17:28 UTC
This bug description shows nothing from Base and the Report Builder. Seems it is a Mailmerge bug, which is part of Writer.
Comment 6 Robert Großkopf 2021-10-13 07:31:43 UTC
I will get the same behavior with LO 7.2.2.2
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
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

Tried to create a new label and lost the cursor in the field for editing the label. Could add fields but couldn't add returns or something else.

Then I closed the editor, reopened and the label could be edited. But when deleting all the content of the label and trying to add new content the cursor has been gone.

This won't happen with LO 7.1.5.2 on the same machine (OpenSUSE 15.2 64bit rpm Linux)
Comment 7 Alex Thurgood 2021-10-13 10:56:59 UTC
(In reply to Richard Dawson from comment #4)

Thanks !
Comment 8 Alex Thurgood 2021-10-13 10:57:26 UTC
(In reply to Robert Großkopf from comment #6)
> I will get the same behavior with LO 7.2.2.2
> Version: 7.2.2.2 / LibreOffice Community
> Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
> 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
> 

Thanks for confirming this Robert.
Comment 9 Alex Thurgood 2021-10-13 11:09:39 UTC
I don't see this problem when using

Version: 7.2.1.2 / LibreOffice Community
Build ID: 87b77fad49947c1441b67c559c339af8f3517e22
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

this is on macOS.

I'm using the Label Creation wizard, and selecting the field from the dropdown menu then pressing the left arrow to insert the field into the label.

Maybe the problem is specific to the kf* VCL backend ?

Ideally, we'd need someone to test on Linux with the VCL:gen or VCL:gtk3 backend to see if there's a difference.
Comment 10 Robert Großkopf 2021-10-13 13:04:05 UTC
Tested it again:
Opened the wizard (File → New → Labels), deleted the content by choosing Address and the pressing Del.
Choose a "Table" and a "Database field" and then "Insert". When inserting the second field the cursor has been gone with LO 7.2.2.2 VCL: kf5.

I can't reproduce it with 
Version: 7.2.2.2 VCL: x11
So it seems to be a special bug with LO 7.2.2.2 VCL: kf5 in this version.
Comment 11 Buovjaga 2021-11-05 15:47:47 UTC
Seems to be the same stuff mentioned in bug 145419 comment 4, but this is gone in master.

Arch Linux 64-bit
Version: 7.3.0.0.alpha1+ / LibreOffice Community
Build ID: ae0767b0fbe5d5b56ebe406bf1ee7aca4aaa909f
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 5 November 2021