Svg Export with Textures Crashes Print Preview and Exports 68MB file (Edge exports ~6MB file), without textures produces 267KB pdf
Reported by
matt...@amristar.com,
May 9 2017
|
||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3091.0 Safari/537.36
Steps to reproduce the problem:
1. Open "test4-textures.svg" in chrome (see "chrome-svg-export.zip").
2. Print.
3. Print preview should crash, see "chrome-canary-60.0.3091.0-preview-crash.PNG".
4. Ensure destination is "Save as PDF", paper size is "A2" and layout is "Portrait".
5. Save it, the result should be a large pdf file ~68MB.
Follow the save steps with "test4-notextures.svg", the resulting pdf is ("chrome-canary-60.0.3091.0-save-pdf-no-textures.pdf"), is only 276 KB.
Exporting in Edge, produces a ~6MB file.
What is the expected behavior?
* Chrome print preview should not crash.
* The resulting PDF should be much smaller.
What went wrong?
* Chrome print preview crashed.
* Chrome exporter produced a large PDF, when printing svg textures.
Did this work before? N/A
Chrome version: 60.0.3091.0 Channel: canary
OS Version: 10.0
Flash Version:
,
May 10 2017
Was able to reproduce this on Chrome Canary (60.0.3095.0) as well as Chrome Stable (58.0.3029.96) on Windows 10. Also crashes on Chrome 55.0.2883.87 so not a recent regression. Tested on Chrome 48 but no A2 paper size was available. A3 crashed the tab however. Interestingly in current Canary and Stable the plugin crash occurs with A2 paper size but not Letter. Could be related to the output file size being significantly smaller with Letter paper. With A3 preview gets stuck for an extremely long time/possibly forever (both Canary and Stable).
,
May 10 2017
No crash on Mac in the same Canary version, but the pdf is indeed large. Differences in pdf size are not surprising. There are lots of choices one could make on how to convert the content to pdf. What is crashing? We need to triage to the right team.
,
May 10 2017
The PDF plugin in Print Preview is crashing, so adding PDF Plugin label. Does not crash the tab or Chrome. Will try to determine where it is hanging with A3 as it's possible that is related.
,
May 10 2017
Appears to be getting stuck/very slow here: https://cs.chromium.org/chromium/src/cc/paint/skia_paint_canvas.cc?l=240 called from https://cs.chromium.org/chromium/src/printing/pdf_metafile_skia.cc?l=205 The plugin crash happens somewhere during the SkiaPaintCanvas::drawPicture call as well (gets to that line but not past it). cc-ing halcanary@ for help with triage.
,
May 11 2017
Removing Blink>SVG component. Re-assign to us if it turns out that the printing paint code is doing something wrong or stupid.
,
May 17 2017
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by ajha@chromium.org
, May 10 2017Labels: Needs-Triage-M60