Issue 121320 - Writer freezes when paste content from HTML document that containts image with Data URI scheme
Summary: Writer freezes when paste content from HTML document that containts image wit...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 125190 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-11-07 09:58 UTC by Александар Јевремовић
Modified: 2014-07-02 15:13 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.2.0-dev
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Александар Јевремовић 2012-11-07 09:58:24 UTC
Hello!

When I try to paste some content in Writer document from HTML document that containts image with Data URI scheme, application freezes (or, to be more precies, CPU goes to 100% and it lasts forever).

This is the URL of HTML document I'm trying paste from:

http://www.racunarskemreze.com/Knjiga?Module=BookOnline__Reader&Chapter=234

I use a lot of images in HTML documents encoded by Data URI scheme. Even if this is not a practice of most of users, I think this bug will be a lot harder to resolve on excidental cases.

Best regards,
Aleksandar
Comment 1 Ariel Constenla-Haile 2012-11-07 15:31:29 UTC
I cannot reproduce the freeze.
I selected the text in main div (div class 'Content'), starting with 

2.2.4. Етернет преко коаксијалних каблова

and the application does not freeze, though I see a kind of misbehavior:

* images are imported as linked graphics
* when scrolling the document, Writer becomes rather slow

It seems that the import filter knows nothing about image data URI scheme.

Are you selecting the whole web page or only that div?
Comment 2 Ariel Constenla-Haile 2012-11-07 15:35:54 UTC
(In reply to comment #1)
> * images are imported as linked graphics

I forgot to add that images are "imported", they are not displayed: on the picture properties dialog, in the "Picture" tab, there is a dog as preview, and the "File name" edit control displays "data:image/png;base64,...."
Comment 3 Александар Јевремовић 2012-11-07 15:43:46 UTC
I have just reproduced freeze by selecting first three paragrafs (starting from text "Прву комерцијално доступну...") and one image between them.

I'm using OOO 3.4.1 (build 9593, rev 1372282) on Slackware Linux and on this CPU:

Intel(R) Pentium(R) Dual  CPU  T3200  @ 2.00GHz

Also, I remember once I waited very long (maybe 20 minutes) and I got the same result as you. However, all opened OOO windows become unusable - very slow.

Best regards,
Aleksandar
Comment 4 Ariel Constenla-Haile 2012-11-07 15:54:22 UTC
(In reply to comment #0)
> http://www.racunarskemreze.com/Knjiga?Module=BookOnline__Reader&Chapter=234

another experiment (using Firefox):

- right click on an image in that page
- select "Copy image" from the context menu
- in Writer there will be option to paste as HTML or as bitmap

- pasting as bitmap takes long, but works
- pasting as html produces a broken linked image
Comment 5 Александар Јевремовић 2012-11-07 16:02:57 UTC
Same experimet results on my comp:

- paste as bitmap: works perfectly, no slowdown at all.
- paste and paste as html: waits about 30 seconds and result is broken image - also, window is frozen for about 30 seconds when focus is lost and then returned.

Maybe problem is about understanding Data URI encoded image as HTML?
Comment 6 Diego Valle Rosado 2013-02-04 00:15:06 UTC
Hello,

Maybe the problem is because you are pasting external images, and I think it takes a long time is to load them from the web
It is always better to add the Image physically, via Insert> Images.

Regards,
Diego Valle
Comment 7 Edwin Sharp 2014-03-10 18:44:40 UTC
Sluggish Writer after paste
AOO410m14(Build:9760)  -  Rev. 1573062
2014-03-01_04:11:01 - Rev. 1573123
Debian
Comment 8 Ariel Constenla-Haile 2014-07-02 15:13:03 UTC
*** Issue 125190 has been marked as a duplicate of this issue. ***