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)
Pending fix: https://gerrit.libreoffice.org/c/core/+/112771
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.