Bug 165211 - Can not open file
Summary: Can not open file
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
24.8.4.2 release
Hardware: ARM Android
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0 target:24.8.6 target:25...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-12 04:43 UTC by افشین
Modified: 2025-02-19 07:29 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of error (44.97 KB, image/jpeg)
2025-02-12 04:45 UTC, افشین
Details
attach a sample document (19.50 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-02-12 09:44 UTC, افشین
Details
Screenshot with https://gerrit.libreoffice.org/c/core/+/181828 v1 in place (57.96 KB, image/png)
2025-02-18 11:22 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description افشین 2025-02-12 04:43:58 UTC
Description:
I have a spreadsheet file consisting of multiple sheets. When I open it with LibreOffice Viewer, I encounter an error, a screenshot of which I have attached. It doesn't matter whether the file name is in Persian (Farsi) or English; the error occurs in both cases.

Steps to Reproduce:
1.I open the file and an error occurs.
2.
3.

Actual Results:
an error occurs.

Expected Results:
It shouldn't give an error.


Reproducible: Always


User Profile Reset: No

Additional Info:
Libreoffice Viewer 24.8.4.2
Comment 1 افشین 2025-02-12 04:45:18 UTC
Created attachment 199160 [details]
Screenshot of error
Comment 2 Xisco Faulí 2025-02-12 09:14:56 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 افشین 2025-02-12 09:44:15 UTC
Created attachment 199163 [details]
attach a sample document
Comment 4 Michael Weghorn 2025-02-18 11:04:03 UTC
Thanks for the bug report. I can reproduce the issue in an AVD (Android 15, API 35).

Version: 24.8.4.2
Build ID: bb3cfa12c7b1
Comment 5 Michael Weghorn 2025-02-18 11:22:19 UTC
Created attachment 199276 [details]
Screenshot with https://gerrit.libreoffice.org/c/core/+/181828 v1 in place
Comment 6 Michael Weghorn 2025-02-18 11:25:19 UTC
Pending change https://gerrit.libreoffice.org/c/core/+/181828 fixes the crash and makes the document show for me with a current development version.

However, the document/text looks mirrored (RTL instead of LTR for the numbers?) as far as I can see.

CC'ing Hossein and Jonathan in case they have any ideas at hand.
Comment 7 Michael Weghorn 2025-02-18 11:26:42 UTC
(In reply to Michael Weghorn from comment #6)
> However, the document/text looks mirrored (RTL instead of LTR for the
> numbers?) as far as I can see.

See attachment 199276 [details] for a screenshot with an Android 15 (API 35) AVD.
Comment 8 Michael Weghorn 2025-02-18 11:31:54 UTC
(In reply to Michael Weghorn from comment #6)
> However, the document/text looks mirrored (RTL instead of LTR for the
> numbers?) as far as I can see.

Behavior is the same when opening the file in gtktiledviewer instead of Android Viewer:

    ./bin/run gtktiledviewer --lo-path=$(pwd)/instdir/program  /tmp/دÙ_ترÚ_Ù_.ods

(Tested with LO git master as of commit 906598cac70f471954ef1bdb6905bcfa303c522a)
Comment 9 Commit Notification 2025-02-18 13:12:50 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/45cfeed90899ff43015d9ee9e3bbf42ea07d8992

tdf#165211 android: Include tabbuttonsmirrored.ui

It will be available in 25.8.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.
Comment 10 Hossein 2025-02-18 13:25:08 UTC
(In reply to Michael Weghorn from comment #8)
> (In reply to Michael Weghorn from comment #6)
> > However, the document/text looks mirrored (RTL instead of LTR for the
> > numbers?) as far as I can see.
> 
> Behavior is the same when opening the file in gtktiledviewer instead of
> Android Viewer:
> 
>     ./bin/run gtktiledviewer --lo-path=$(pwd)/instdir/program 
> /tmp/دÙ_ترÚ_Ù_.ods
> 
> (Tested with LO git master as of commit
> 906598cac70f471954ef1bdb6905bcfa303c522a)

Hello Michael,
I think the above problem is the same issue I have filed in tdf#147271.
Comment 11 Michael Weghorn 2025-02-18 13:54:00 UTC
(In reply to Hossein from comment #10)
> I think the above problem is the same issue I have filed in tdf#147271.

Indeed, thanks.

I'm closing this bug as fixed, since the original crash is fixed and mirrored content is already covered in tdf#147271.
Comment 12 Commit Notification 2025-02-19 07:28:44 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/2da5f88176faeae45db2bcdf594c13118c407642

tdf#165211 android: Include tabbuttonsmirrored.ui

It will be available in 24.8.6.

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.
Comment 13 Commit Notification 2025-02-19 07:29:48 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-25-2":

https://git.libreoffice.org/core/commit/6d34f5ac7943d23cb209e43d4dfbc818e8e98dd0

tdf#165211 android: Include tabbuttonsmirrored.ui

It will be available in 25.2.2.

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.