Bug 97182 - PRINTING Calc wants to print wrong document and exits with unsaved changes
Summary: PRINTING Calc wants to print wrong document and exits with unsaved changes
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-16 14:45 UTC by Thomas Mayer
Modified: 2016-01-21 11:52 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
testcase.odt, testcase.ods, screenshot (160.95 KB, application/gzip)
2016-01-16 14:45 UTC, Thomas Mayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Mayer 2016-01-16 14:45:49 UTC
Created attachment 121992 [details]
testcase.odt, testcase.ods, screenshot

Affected versions: at least
- 1:4.2.8-0ubuntu3 from trusty-updates
- 1:5.0.3~rc2-0ubuntu1~trusty2 from ppa
- I did not test against other distros/OSes and LO versions. Maybe this issue is older and also affects more distros/OSes than just ubuntu.

How to reproduce:

- open testcase.odt writer document (file is attached)
- open testcase.odt calc document (file is attached)
- Press STRG+P in calc
=> Result: Writer document is shown in printing preview
- Press OK
=> Result:
===> Using 1:5.0.3~rc2-0ubuntu1~trusty2 from ppa, the writer document is printed
===> Using 1:4.2.8-0ubuntu3 from trusty-updates, there an error box with no text occurs. When pressed OK, no document is printed and all libreoffice windows are closed with no chance to save changes to the documents. Any changes to the documents are lost.

The behaviour is reproducable, meaning it occurs every time I try it out.

Severity is critical because users potentially loose data in the form of unsaved changes.

Suggested fix:
- LO should print the active document (which has the focus/active window).
- LO should not crash and loose unsaved changes of all opened LO documents.

Additional information:
- testcase.odt and testcase.ods are attached (both of them were originally created using libreoffice 4.2).
- attached is also a screenshot which obviously should never occur (applies to both 4.2 and 5.0)
- Launchpad bug report available at https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1534927
Comment 1 Thomas Mayer 2016-01-16 20:25:10 UTC
Tried to reproduce this issue with a fresh install of ubuntu 15.10 (in KVM):

- Performed all updates available via apt-get (this is pretty much the only thing I was doing)
- Libreoffice version is 5.0.2.2, build-id 00m0 (from repository)

Result: Cannot reproduce this issue in ubuntu 15.10. I also tried
- Unity Desktop with LO Quickstarter disabled (default)
- Unity Desktop with LO Quickstarter enabled
- Gnome Flashback with LO Quickstarter enabled
- Gnome Flashback with LO Quickstarter disabled
Comment 2 Thomas Mayer 2016-01-16 20:42:57 UTC
Same applies for ubuntu 15.10 using LO 5.0.3.2 build 1:5.0.3~rc2-0ubuntu1:

Cannot reproduce this issue with ubuntu 15.10 and LO 5.0.3.2
Comment 3 Thomas Mayer 2016-01-16 23:09:11 UTC
Tried to reproduce this issue with a clean install of ubuntu 14.04:

- Installed ubuntu desktop 14.04.1 from original media (in KVM machine)
- update (via apt-get update && apt-get upgrade && apt-get dist-upgrade
- reboot
- install same printer (as used in all previous attemps: Kyocera FS-1020d)
- open testcase.odt
- open testcase.ods and press STRG+P => Printing dialog shows up the preview of the calc document which is the wanted behaviour.

=> Can't reproduce this issue using a fresh and up-to-date install of ubuntu 14.04 (Kernel 3.13.0-74), which comes along with LO 4.2.8.2, Build-ID 420m0(Build:2)
Comment 4 Thomas Mayer 2016-01-17 01:15:14 UTC
I further tracked it down to see why the system which has the problem differs from the behaviour of a fresh install.

And I found the difference: I had a third party LO extension installed: LibreOffice E-Porto 1.0.3 from https://www.deutschepost.de/de/i/internetmarke-porto-drucken/e-porto-add-in.html#downloads .

After disabling the extension in LO, this issue was fixed: Now I can print testcase.ods even when testcase.odt is already open.

I assume the bug is in the E-Porto plugin, at least this should be very likely.

So there is no bug in LO or in ubuntu, the bug seems to be in the extension. Issue can be closed then.
Comment 5 Cor Nouws 2016-01-21 11:52:18 UTC
Thanks for reporting back, Thomas!