Bug 123961 - FILEOPEN: Loading multi-page TIFF files would hang Writer
Summary: FILEOPEN: Loading multi-page TIFF files would hang Writer
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-09 13:01 UTC by Franklin Weng
Modified: 2019-04-09 07:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Single-page TIFF which would not hang Writer. (38.32 KB, image/tiff)
2019-03-09 13:02 UTC, Franklin Weng
Details
Multi-page TIFF file which would cause Writer hang there (54.51 KB, image/tiff)
2019-03-09 13:02 UTC, Franklin Weng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2019-03-09 13:01:28 UTC
Description:
When inserting TIFF files which contain multiple pages, it would sometimes load successfully but then would hang quickly.

With singe-page TIFF files it would be okay.

Before version 6.1 it would also okay to load without hanging, but show only the first page (this is the same problem with Bug 63722).


Steps to Reproduce:
1. Open Writer 6.1.5.2
2. Load a multi-page TIFF file
3. Do some simple actions like scrolling, and it would hang.

Actual Results:
Writer would hang there forever.

Expected Results:
It should show TIFF file correctly.


Reproducible: Always


User Profile Reset: No



Additional Info:
版本:6.1.5.2
組建 ID:90f8dcf33c87b3705e78202e3df5142b201bd805
CPU 執行緒:4; OS:Linux 4.15; UI 算繪:預設; VCL: kde4; 
語言地區:zh-TW (zh_TW.UTF-8); Calc: group threaded

Impress/Draw would not hang but show only the first page.
Comment 1 Franklin Weng 2019-03-09 13:02:25 UTC
Created attachment 149841 [details]
Single-page TIFF which would not hang Writer.
Comment 2 Franklin Weng 2019-03-09 13:02:56 UTC
Created attachment 149842 [details]
Multi-page TIFF file which would cause Writer hang there
Comment 3 Franklin Weng 2019-03-09 13:05:05 UTC
It may be also related to Bug 113814.
Comment 4 Dieter 2019-03-10 16:45:47 UTC
(In reply to Franklin Weng from comment #0)
> 2. Load a multi-page TIFF file

For me it's not clear how to do this. When I open he file from writer, it is opened in Draw. When I choose Insert => Image, it shows only the first page. I tried with master and with 6.1.5.2
Comment 5 Franklin Weng 2019-03-11 00:34:10 UTC
(In reply to Dieter Praas from comment #4)
> (In reply to Franklin Weng from comment #0)
> > 2. Load a multi-page TIFF file
> 
> For me it's not clear how to do this. When I open he file from writer, it is
> opened in Draw. When I choose Insert => Image, it shows only the first page.
> I tried with master and with 6.1.5.2

Just open Writer, then Insert => Images and choose the multi-page TIFF file.

In Draw it would not hang, just showing the first page.
Comment 6 Dieter 2019-03-11 08:42:16 UTC
(In reply to Franklin Weng from comment #5)
> Just open Writer, then Insert => Images and choose the multi-page TIFF file.
> 

Franklin, I tried it this way, but I only got one page in Writer
Comment 7 Durgapriyanka 2019-03-11 16:12:28 UTC
Hi, I also do get only one page when I open TIFF files with multiple pages. But, I can notice that there is no smooth scroll.

Version: 6.3.0.0.alpha0+
Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 8 Dieter 2019-03-11 19:09:31 UTC
Franklin, are you sure, that the attachment in comment 2 contains a multi-page TIFF (I can't check that)?
Comment 9 Franklin Weng 2019-03-11 22:22:20 UTC
(In reply to Dieter Praas from comment #8)
> Franklin, are you sure, that the attachment in comment 2 contains a
> multi-page TIFF (I can't check that)?

Yes.  You can open it with okular under KDE or Gimp to check for that.
Comment 10 Dieter 2019-03-12 21:07:42 UTC
(In reply to Franklin Weng from comment #9)
> (In reply to Dieter Praas from comment #8)
> > Franklin, are you sure, that the attachment in comment 2 contains a
> > multi-page TIFF (I can't check that)?
> 
> Yes.  You can open it with okular under KDE or Gimp to check for that.

Franklin, I could see in GIMP, that it is a multi-page TIFF, but still only one page is shown in Writer
Comment 11 Franklin Weng 2019-03-12 22:12:32 UTC
(In reply to Dieter Praas from comment #10)
> (In reply to Franklin Weng from comment #9)
> > (In reply to Dieter Praas from comment #8)
> > > Franklin, are you sure, that the attachment in comment 2 contains a
> > > multi-page TIFF (I can't check that)?
> > 
> > Yes.  You can open it with okular under KDE or Gimp to check for that.
> 
> Franklin, I could see in GIMP, that it is a multi-page TIFF, but still only
> one page is shown in Writer

Right,  that's an old issue Bug 63722 .  However what I met was that it would hang my Writer.  No response from Writer anymore.  No idea which loop it was running…
Comment 12 Buovjaga 2019-04-08 19:56:31 UTC
No hang here.

Franklin: can you repro with 6.2 or latest master?

Arch Linux 64-bit
Version: 6.3.0.0.alpha0+
Build ID: e967aea2d8cc4f9fc608cb726cb474c184fb61de
CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: kde5; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 7 April 2019
Comment 13 Franklin Weng 2019-04-08 23:46:54 UTC
(In reply to Buovjaga from comment #12)
> No hang here.
> 
> Franklin: can you repro with 6.2 or latest master?
> 
> Arch Linux 64-bit
> Version: 6.3.0.0.alpha0+
> Build ID: e967aea2d8cc4f9fc608cb726cb474c184fb61de
> CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: kde5; 
> Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
> Calc: threaded
> Built on 7 April 2019

Not reproducible both in

版本:6.2.2.2
組建 ID:2b840030fec2aae0fd2658d8d4f9548af4e3518d
CPU 執行緒:4; OS:Linux 4.19; UI 算繪:預設; VCL: kde4; 
語言地區:zh-TW (zh_TW.UTF-8); UI語言:zh-TW
Calc: threaded

and

版本:6.2.2.2
組建 ID:2b840030fec2aae0fd2658d8d4f9548af4e3518d
CPU 執行緒:4; OS:Linux 4.15; UI 算繪:預設; VCL: kde5; 
語言地區:zh-TW (zh_TW.UTF-8); UI語言:zh-TW
Calc: threaded

Please close it as WFM.
Comment 14 Buovjaga 2019-04-09 07:09:14 UTC
(In reply to Franklin Weng from comment #13)
> Please close it as WFM.

Gladly, but feel free to close them yourself in the future :) We don't limit closing rights after all.