Bug 150935

Summary: can't FileOpen one particular pps file
Product: LibreOffice Reporter: Ray <rayandlise>
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: serval2412
Priority: medium    
Version: 7.4.0.3 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: pps file that won't open because of version eror

Description Ray 2022-09-13 18:58:37 UTC
Description:
can't open a particular pps file in libreoffice.... says incompatible version
(had to convert it using an online conversion site to a pdf and then look at
it as a pdf)

Error says
"Version incompatibility"
"Incorrect File version"


Steps to Reproduce:
1.try to  open the given particular (old version???)  pps file
2.since you have no place to "attach" the particular pps don't know how you can 
attempt to "reproduce" the error


Actual Results:
error message as above
Error says
"Version incompatibility"
"Incorrect File version"

Expected Results:
that it would have opened the file


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
 tried updating LibreOffice .... same results with this
particular file
all i can do is convert it to a pdf to see the contents
also when added extension .zip to file i could open
it in 7-zip and see files (not photo contents or version info)
Comment 1 Ray 2022-09-13 19:00:55 UTC
Created attachment 182423 [details]
pps file that won't open because of version eror
Comment 2 Rafael Lima 2022-09-13 19:23:01 UTC
I tried to open the file and had the same result as you did.

I also tried to open it in OnlyOffice and it did not open as well... but I got a message saying that the file is password protected.
Comment 3 Julien Nabet 2022-09-13 19:50:22 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.
Here's part of the code which fails:

1448         ReadDffRecordHeader( rStCtrl, aDocAtomHd );
1449         if ( aDocHd.nRecType == PPT_PST_Document && aDocAtomHd.nRecType == PPT_PST_DocumentAtom )
1450         {
1451             aDocAtomHd.SeekToBegOfRecord( rStCtrl );
1452             ReadPptDocumentAtom( rStCtrl, aDocAtom );
1453         }
1454         else
1455             m_bOk = false;

(see https://opengrok.libreoffice.org/xref/core/filter/source/msfilter/svdfppt.cxx?r=8611f6e2#1448)

(gdb) p  aDocHd.nRecType
$9 = 45597

(gdb) p aDocAtomHd.nRecType
$10 = 22945
Comment 4 Timur 2022-09-14 15:17:24 UTC

*** This bug has been marked as a duplicate of bug 33538 ***