Bug 158362 - Libreoffice viewer android doesn't open a file impress .odp
Summary: Libreoffice viewer android doesn't open a file impress .odp
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
7.6.3.2 release
Hardware: All Android
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-24 21:34 UTC by Christophe N
Modified: 2023-11-24 22:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
impress file with 7 slides and 1 slide with video (986.79 KB, application/vnd.oasis.opendocument.presentation)
2023-11-24 21:38 UTC, Christophe N
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe N 2023-11-24 21:34:40 UTC
Description:
Trying to open a file .odp, I get the message "Document returned an invalid size or the document is empty"

Steps to Reproduce:
1.click to open
2.
3.

Actual Results:
 message "Document returned an invalid size or the document is empty"

Expected Results:
view on screen


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.3.2-android
Build ID: 8c4c8a83119e
Comment 1 Christophe N 2023-11-24 21:38:14 UTC
Created attachment 191031 [details]
impress file with 7 slides and 1 slide with video
Comment 2 Michael Weghorn 2023-11-24 22:24:38 UTC
Thanks for your report.

I can reproduce. If I remove the media object on slide 5 in the desktop version and resave the file, it's opened just fine in Android Viewer as well. So the problem seems to be related to that object.


Version: 7.6.3.2-android
Build ID: 8c4c8a83119e
Comment 3 Michael Weghorn 2023-11-24 22:41:16 UTC
The bug is not reproducible in the current development version (git master):

Version: 24.2.0.0.alpha1+
Build ID: d94bdda68ea0

Bibisecting with gtktiledviewer points to this fix:

commit 5b35703d11089975d625fede2605ce3bc449b294
Author:     Henry Castro
AuthorDate: Wed Feb 15 11:25:19 2023 -0400
Commit:     Henry Castro
CommitDate: Mon Jun 12 17:33:28 2023 +0200

    sd: lok: only register supported views
    
    The Presentation ViewShells:
    
    SlideSorter,
    Outline,
    Presentation
    
    They are not supported in tiled rendering case,
    so switch to default view.
    
    Signed-off-by: Henry Castro <hcastro@collabora.com>
    Change-Id: I33b255e0ca530734af6490d14fe48a2512272afc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147095
    Reviewed-by: Andras Timar
    Tested-by: Andras Timar
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152900
    Tested-by: Jenkins

Now pending backport to the 7-6 branch in Gerrit, so this should be fixed in the next 7.6 release as well:
https://gerrit.libreoffice.org/c/core/+/159895