Bug 141052 - Android Viewer crashes trying to open ODP file
Summary: Android Viewer crashes trying to open ODP file
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+ Master
Hardware: All All
: medium normal
Assignee: Michael Weghorn
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-16 07:23 UTC by Michael Weghorn
Modified: 2021-03-16 09:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample file to reproduce the crash (26.22 KB, application/vnd.oasis.opendocument.presentation)
2021-03-16 07:23 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn 2021-03-16 07:23:11 UTC
Created attachment 170503 [details]
sample file to reproduce the crash

When trying to open the attached ODP document, LibreOffice Android Viewer crashes.

Steps to reproduce: open attached document "test.odp"

Result: Crash

Using Android Viewer built from current master, as of commit 96af7614c205cbb43379d8b37fd02de7080175a0. This worked OK in the past.
Comment 1 Michael Weghorn 2021-03-16 07:24:13 UTC
From ADB log:


03-16 08:21:24.578  5976  6025 D libo:sal/osl/unx/file: double-slash in path: /assets//config/soffice.cfg/svt/ui/tabbuttons.ui
03-16 08:21:24.579  5976  6025 E libo:sal/osl/unx/file: failed to open /assets//config/soffice.cfg/svt/ui/tabbuttons.ui
03-16 08:21:24.579  5976  6025 W vcl.builder: 1:vcl/source/window/builder.cxx:517: DBG_UNHANDLED_EXCEPTION in VclBuilder
03-16 08:21:24.579  5976  6025 W vcl.builder:     when: Unable to read .ui file exception: com.sun.star.container.NoSuchElementException message: file:///assets//config/soffice.cfg/svt/ui/tabbuttons.ui
03-16 08:21:24.580  5976  6025 W legacy.osl: 1:vcl/source/window/window.cxx:276: Window ( 7Control()) with live children destroyed:  7VclVBox()
03-16 08:21:24.580  5976  6025 I LibreOffice/androidinst: Window ( 7Control()) with live children destroyed:  7VclVBox()
03-16 08:21:24.580  5976  6025 I LibreOffice/androidinst: SalAbort: 'Window ( 7Control()) with live children destroyed:  7VclVBox()'
03-16 08:21:24.580  5976  6025 I LibreOffice/androidinst: 
03-16 08:21:24.580  5976  6025 I LibreOffice/androidinst: SalAbort: 'Unknown application error'
03-16 08:21:24.580  5976  6025 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6025 (Thread-2), pid 5976 (org.libreoffice)

I'll take a look and plan to submit a fix.
Comment 2 Commit Notification 2021-03-16 09:02:54 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/66e531d2337be9a2be7b1798779fb9da0e198bbf

tdf#141052 android: Include 'tabbuttons.ui' and 'tabviewbar.ui'

It will be available in 7.2.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.