Bug 141111 - Android viewer crashes trying to edit read-only section
Summary: Android viewer crashes trying to edit read-only section
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Michael Weghorn
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-19 16:19 UTC by Michael Weghorn
Modified: 2021-03-22 07:09 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample file to reproduce the crash (18.54 KB, application/vnd.oasis.opendocument.text)
2021-03-19 16:19 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-19 16:19:47 UTC
Created attachment 170571 [details]
sample file to reproduce the crash

When trying to edit a read-only section in a Writer doc using the Android Viewer app, it crashes.

Steps to reproduce:

1) enable the experimental editing mode in Android Viewer
2) open the attached document "readonly_section.odt"
3) click anywhere in the section and start typing

Result: crash

This is with a self-built Android Viewer from git master as of commit bf6efbb808929bfba42f88c894be93d1aa6f4210 (+ a few unrelated own changes on top).

The ADB log contains this:

03-19 17:19:12.047 26915 27024 D libo:sal/osl/unx/file: double-slash in path: /assets//config/soffice.cfg/modules/swriter/ui/inforeadonlydialog.ui
03-19 17:19:12.047 26915 27024 E libo:sal/osl/unx/file: failed to open /assets//config/soffice.cfg/modules/swriter/ui/inforeadonlydialog.ui
03-19 17:19:12.048 26915 27024 W vcl.builder: 2:vcl/source/window/builder.cxx:517: DBG_UNHANDLED_EXCEPTION in VclBuilder
03-19 17:19:12.048 26915 27024 W vcl.builder:     when: Unable to read .ui file exception: com.sun.star.container.NoSuchElementException message: file:///assets//config/soffice.cfg/modules/swriter/ui/inforeadonlydialog.ui
03-19 17:19:12.048 26915 27022 I stderr  : terminating with uncaught exception of type com::sun::star::container::NoSuchElementException
03-19 17:19:12.048 26915 27024 F libc    : /usr/local/google/buildbot/src/android/ndk-release-r20/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type com::sun::star::container::NoSuchElementException" failed
03-19 17:19:12.048 26915 27022 I stderr  : /usr/local/google/buildbot/src/android/ndk-release-r20/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type com::sun::star::container::NoSuchElementException" failed
03-19 17:19:12.049 26915 27024 I LibreOffice/androidinst: 
03-19 17:19:12.049 26915 27024 I LibreOffice/androidinst: SalAbort: 'Unknown application error'
03-19 17:19:12.049 26915 27024 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 27024 (Thread-4), pid 26915 (org.libreoffice)
Comment 1 Michael Weghorn 2021-03-19 16:26:06 UTC
Pending fix: https://gerrit.libreoffice.org/c/core/+/112771
Comment 2 Commit Notification 2021-03-22 06:59:20 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/1bf8f4569502b7900c51f2e238acda6567c96281

tdf#141111 android: Don't crash trying to edit read-only section

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.