Issue 104936 - Problem with png image in impress, possible crash
Summary: Problem with png image in impress, possible crash
Alias: None
Product: Impress
Classification: Application
Component: viewing (show other issues)
Version: OOo 3.1.1
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: oooqa
Depends on:
Reported: 2009-09-10 00:17 UTC by vaughant
Modified: 2013-08-07 15:20 UTC (History)
3 users (show)

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

Demonstrates how a particular slide with 4 images can crash Impress (28.32 KB, text/plain)
2009-09-10 00:22 UTC, vaughant
no flags Details
Pls. see "comments from rainerbielefeld Thu Sep 10 05:27:58" (105.89 KB, application/pdf)
2009-09-10 06:29 UTC, Rainer Bielefeld
no flags Details
Strange msOG data chunk from offending PNG image, as textfile (6.19 KB, text/plain)
2009-10-06 15:21 UTC, ace_dent
no flags Details
Updated PNG file (fixed?), with the msOG data chunk stripped. (2.16 KB, image/png)
2009-10-06 15:23 UTC, ace_dent
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description vaughant 2009-09-10 00:17:49 UTC
When I try to show the attached slideshow it causes Impress to halt at side 2
which has pictures on it.  The offending slide will also sometimes crash
Impresss and cause it to go to the crash recovery screen when that slide is
attempted to be show.  Also the slideshow will stop at the slide just before the
offending slide (#2 in this small show).  Originally this slide was part of a
show with about 103 slides that it would also crash.  I deleted this slide and
the show ran fine.  This slide contains several pictures, two of which will not
display.  They may be pictures from a web page, I  am not sure.  I kept a copy
of the offending slide in a small segment of the show to demonstrate it.  I can
send a copy.
Comment 1 vaughant 2009-09-10 00:22:42 UTC
Created attachment 64660 [details]
Demonstrates how a particular slide with 4 images can crash Impress
Comment 2 glinskikevin 2009-09-10 03:29:48 UTC
Kevin Glinski 9-9-9
I was able to reproduce.  On slide 2, there are 5 images total 3 do not display 
when editing the slides, but do show in the preview.  if you delete the slides 
that don't display when editing, the show runs fine.  it will still crash when you 
delete all images but one of the non-displayed ones.
Comment 3 Rainer Bielefeld 2009-09-10 05:58:10 UTC
I checked with "Ooo 3.1.1 WIN XP DE-multilingual version German UI activated
[OOO310m19 (Build 9420)]" and can confirm problems:
- no slide change from 1 to 2
- OOo crashes if I start it with slide 2 (select slide 2, then <f9>

"2.0.2  German version WIN XP: [680m5(Build9011)]" will not run at all, after I
opened and started document 2.0.2 ran into an endless recovery loop. I will
contribute a crash report ID ASAP.

Pls specify your OS ans Platform.
How (with what presentation program) has the original presentation been created?
Comment 4 Rainer Bielefeld 2009-09-10 06:27:58 UTC
I found the element in slide 2 causing the problem, pls. see attached screenshot
Comment 5 Rainer Bielefeld 2009-09-10 06:29:06 UTC
Created attachment 64664 [details]
Pls. see "comments from rainerbielefeld Thu Sep 10 05:27:58"
Comment 6 Rainer Bielefeld 2009-09-10 08:25:34 UTC
During my tests to find the reason for the crash I created several crash reports
with IDs r8273dc, r7273dc, rd273dc, r8w73dc, r3w73dc, rjw73dc, rtqr3dc

good software should never crash, so NEW. 

But we also need requested additional information!
Comment 7 clippka 2009-09-10 09:25:31 UTC
I can not confirm the crash but there is a png used 3 times on slide 3 that is
rendered empty. Other applications render this png correctly so the issue seems
to be the png filter.
Comment 8 Rainer Bielefeld 2009-09-10 11:59:45 UTC
Confirm  cl' ideas, "1000000000000000000000001B7DAD45.png" is invisible when
opened with any OOo version. If I open that picture with IrfanVIW and save it
again, the new document will be visible without problems. 
Comment 9 riederk 2009-09-13 04:08:34 UTC
(Riederk, 21:12 9/9/09)
I was able to get the same error when using vaughant's presentation file.

Windows Vista SP2 
OOo-dev 3.2.0
DEV300m56 (Build:9419)

Steps Taken to Reproduce:

1) Launched by double clicking vaughant's file
2) click on the second slide ==>  Notice the top 3 images disappear
3) click the first slide > click“slide show†on the presentation toolbar
4) after the first slide appears → right click > next ==> Impress will skip the
second slide and got to the third.
5) right click > End Show
6) click second slide > click“slide show†on the presentation toolbar ==>
Impress will crash and take you to the recovery page.

I tried rearranging the images to see if that would change anything, but nothing
did. I then tried replacing the images that disappeared in vaughant's file ( the
top three on the second slide) and then tried again. It worked perfectly.

The problem appears to be with the file type of those images. If you could find
out what type they were it might narrow down the issue.

For reference, when replacing the images on the slide I used JPEG, GIF, PNG,
TIFF and Bitmap images. None of these had a problem during the slideshow. The
PNG files I put on worked fine, so it could be that particular file? 
Comment 10 ace_dent 2009-10-06 15:19:47 UTC
I have analyzed the offending PNG file using TweakPNG.

Looks fairly standard, but has an uncommon data chunk: 'msOG'. I will attach
this chunk as a text file if anyone wants to inspect it. It seems (from a very
quick web search) this is produced by MSOFFICE9.0, as a way of stuffing a GIF
file into a PNG, probably to preserve a GIF animation.

IMHO shouldn't cause a crash, as this extra data is stored after the PNG image
data... of course we can store pretty much any user data in a PNG container, so
OOo should be robust against this...

I have attached the PNG with the msOG chunk removed- see if this fixes things.

Comment 11 ace_dent 2009-10-06 15:21:25 UTC
Created attachment 65176 [details]
Strange msOG data chunk from offending PNG image, as textfile
Comment 12 ace_dent 2009-10-06 15:23:15 UTC
Created attachment 65177 [details]
Updated PNG file (fixed?), with the msOG data chunk stripped.
Comment 13 ace_dent 2009-10-06 15:37:10 UTC
Ok, it seems that OOo does something with the msOG chunk...
Issue 5583 - Animated GIFs don't work in exported power point files

For example, line 03769:

Note: I've not tested whether it is that odd chunk that is causing your problems
in OOo... it just seems suspicious...