Bug 148553 - Android Viewer crashes when opening attached document with form elements
Summary: Android Viewer crashes when opening attached document with form elements
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 08:13 UTC by Michael Weghorn
Modified: 2022-04-13 16:24 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Sample document that triggers the crash (12.53 KB, application/vnd.oasis.opendocument.text)
2022-04-13 08:13 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 08:13:28 UTC
Created attachment 179504 [details]
Sample document that triggers the crash

Steps to reproduce:

1) Open the attached document in Android Viewer

Result:
Android Viewer crashes


The ADB log contains this:

04-13 10:05:42.039 19825 19881 W svx     : 1:svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx:1120: DBG_UNHANDLED_EXCEPTION in createControlForDevice exception: com.sun.star.loader.CannotActivateFactoryException message: "unknown constructor name "com_sun_star_form_ONumericControl_get_implementation""
04-13 10:05:42.039 19825 19881 W legacy.osl: 1:svx/source/sdr/contact/viewobjectcontactofunocontrol.cxx:921: ViewObjectContactOfUnoControl_Impl::positionAndZoomControl: no output device or no control!
04-13 10:05:42.039 19825 19881 W cppuhelper: 1:cppuhelper/source/shlib.cxx:298: unknown constructor name "com_sun_star_form_ONumericControl_get_implementation"
04-13 10:05:42.053 19825 19887 I stderr  : terminating with uncaught exception of type com::sun::star::loader::CannotActivateFactoryException
04-13 10:05:42.054 19825 19887 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::loader::CannotActivateFactoryException" failed
04-13 10:05:42.054 19825 19881 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::loader::CannotActivateFactoryException" failed


This is with git master as of commit e38374b15be9ea4ced36a9b5954de1dc18ba2943.
Comment 1 Michael Weghorn 2022-04-13 08:17:44 UTC
Pending fix: https://gerrit.libreoffice.org/c/core/+/132950
Comment 2 Commit Notification 2022-04-13 16:22:48 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/827d97887a8284e09fdeb2aa2918f60f09fd1a4a

tdf#148553 liblo-native-code: Add services for numeric controls

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.