Bug 153072 - LibreOffice calc Text import does not display imported data preview: QPainter error "painter not active"
Summary: LibreOffice calc Text import does not display imported data preview: QPainter...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: KDE, KF5 CSV-Dialog
  Show dependency treegraph
 
Reported: 2023-01-17 16:47 UTC by Jiří Rohlíček
Modified: 2023-09-20 03:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Wrong Text Import popup (58.66 KB, image/png)
2023-01-17 16:49 UTC, Jiří Rohlíček
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Rohlíček 2023-01-17 16:47:59 UTC
Description:
Inserting text data to LibreOffice Calc sheet does not display preview of inserted data to set inserted fields.
It shows errors on stdout
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::save: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::drawRects: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints


Steps to Reproduce:
1. Open new sheet
2. cut a piece of text to clipboard
3. Paste it as unformated text

Actual Results:
Text Import popup displays but in the lower part of the popup there is nothing displayed

Expected Results:
Text Import popup displays and in the lower part of the popup there is displayed text to be inserted to set fields, their width, etc to insert


Reproducible: Always


User Profile Reset: Yes

Additional Info:
It should start QPainter and show inserted data
Comment 1 Jiří Rohlíček 2023-01-17 16:49:22 UTC
Created attachment 184713 [details]
Wrong Text Import popup
Comment 2 Jiří Rohlíček 2023-01-17 16:57:19 UTC
Running Calc as root, the problem disappears.
 # /opt/libreoffice7.4/program/soffice.bin
Comment 3 Jiří Rohlíček 2023-01-17 17:57:48 UTC
Like older Bug 143618
--
Reinstalled as ordinary user with sudo:
 $ [jrohlicek RPMS]$ sudo dnf  reinstall *rpm
Still the same.

Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 4; OS: Linux 5.12; UI render: default; VCL: kf5 (cairo+xcb)
Locale: cs-CZ (en_US.utf8); UI: en-US
Calc: threaded
Comment 4 Jiří Rohlíček 2023-01-17 18:06:43 UTC
Run as jrohlicek, wrong popup, About:
Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 4; OS: Linux 5.12; UI render: default; VCL: kf5 (cairo+xcb)
Locale: cs-CZ (en_US.utf8); UI: en-US
Calc: threaded

run as root, popup dialog OK, About:
Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 4; OS: Linux 5.12; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 5 Jiří Rohlíček 2023-01-18 07:13:09 UTC
Found some notes about setting SAL_USE_VCLPLUGIN.
Tried to run Calc as ordinary user with SAL_USE_VCLPLUGIN set
---
$ SAL_USE_VCLPLUGIN=gtk3 /opt/libreoffice7.4/program/soffice --calc

(soffice:2307115): Gdk-WARNING **: 08:03:39.599: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.
---
Got that error, but Calc runs fine and the Text Import popup seems OK. The About changed
Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 4; OS: Linux 5.12; UI render: default; VCL: gtk3
Locale: cs-CZ (en_US.utf8); UI: en-US
Calc: threaded
Comment 6 Robert Großkopf 2023-01-18 20:11:37 UTC
Have tested this one with OpenSUSE 15.3 64bit rpm Linux.
Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
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

Couldn't confirm the buggy behavior. Preview of the input will be shown when inserting using "Text import dialog".

Did you try it with 
Help → Restart in Safe Mode ?
Comment 7 Jiří Rohlíček 2023-01-19 09:30:45 UTC
I tried restart in safe mode (without setting  SAL_USE_VCLPLUGIN=gtk3 ).
VCL remained kf5 (cairo+xcb) and Text Import dialog still lacks of inserted data preview.
Comment 8 TANAKA Hidemune 2023-01-24 12:08:34 UTC
Version: 7.4.4.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 24; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Debian package version: 1:7.4.4~rc2-2
Calc: threaded 

I was not able to reproduce the phenomenon.
Comment 9 Stéphane Guillou (stragu) 2023-02-20 06:43:45 UTC
Can't reproduce with:

Version: 7.4.5.1 / LibreOffice Community
Build ID: 9c0871452b3918c1019dde9bfac75448afc4b57f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Which operating system, desktop environment and window manager are you using?
Comment 10 Michael Weghorn 2023-02-20 07:44:49 UTC
Can't reproduce with

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e55713dffbe8d8eba18068f6c2af14c10b787220
CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Does this only happen when pasting specific data or also e.g. with the following (which is what I used in my test):

first;second;third
foo;bar;baz
one;two;three
Comment 11 QA Administrators 2023-08-20 03:18:14 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2023-09-20 03:06:50 UTC
Dear Jiří Rohlíček,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp