Bug 148556 - Android Viewer: Calc doc sometimes not rendered after initial load
Summary: Android Viewer: Calc doc sometimes not rendered after initial load
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Michael Weghorn
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-13 09:57 UTC by Michael Weghorn
Modified: 2022-04-13 16:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Video showing the behavior on a Samsung Galaxy A52s 5G (12.37 MB, video/mp4)
2022-04-13 09:57 UTC, Michael Weghorn
Details
Sample doc used in the video (but any should do) (10.37 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-04-13 09:58 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn 2022-04-13 09:57:12 UTC
Created attachment 179509 [details]
Video showing the behavior on a Samsung Galaxy A52s 5G

Sometimes, a Calc doc is not rendered initially when opening it in Android Viewer.

The attached video shows that on a Samsung Galaxy A52s 5G, where this happens quite often (~80 % of the times I tried). I cannot (can barely) reproduce in an AVD or on my old Samsung Galaxy S4 GT-I9505 instead, so there's apparently some timing issue/race condition.

Steps to reproduce:

1) open any Calc document in Android Viewer (e.g. the attached "shapes.ods", but which doc seems to be irrelevant)
2) look

Result:

Sometimes, the document is not rendered and only a "white area" is shown instead.

Reproducible: sometimes (seems to be more often on fast hardware)

This is with a current daily build from https://dev-builds.libreoffice.org/daily/master/Android-ARM@86-TDF/2022-04-12_06.08.40/android~2022-04-12_06.08.40_LibreOfficeViewer-strippedUIEditing-debug.apk - as of git commit
Comment 1 Michael Weghorn 2022-04-13 09:58:52 UTC
Created attachment 179510 [details]
Sample doc used in the video (but any should do)

As the video shows, everything is fine after tapping the screen.

I'm working on a fix.
Comment 2 Commit Notification 2022-04-13 16:23:58 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4476fd51a324930e832535c10979564afc6968f2

tdf#148556 android: Don't delay refresh when loading doc

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.