Bug 141531 - Android Viewer crashes trying to open mail merge file with unavailable data source
Summary: Android Viewer crashes trying to open mail merge file with unavailable data s...
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: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-04-07 07:51 UTC by Michael Weghorn
Modified: 2021-04-07 09:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample file to reproduce the crash (8.34 KB, application/vnd.oasis.opendocument.text)
2021-04-07 07:51 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-04-07 07:51:28 UTC
Created attachment 170993 [details]
sample file to reproduce the crash

Steps to reproduce:

1) open attached document "testdoc_mailmerge.odt" in Android Viewer

Result: crash

This is with self-built git master as of commit 4cfcc0f48a0bcdeb77b86455b463889ea1040bc3.

It worked fine in the past.
Comment 1 Michael Weghorn 2021-04-07 07:54:09 UTC
from ADB log:

> 04-07 09:49:03.677  7935  7979 W vcl.schedule: 2:vcl/source/app/scheduler.cxx:475: Uncaught com.sun.star.uno.DeploymentException message: component context fails to supply service com.sun.star.sdb.DatabaseContext of type com.sun.star.sdb.XDatabaseContext: unknown constructor name "com_sun_star_comp_dba_ODatabaseContext_get_implementation"
> 04-07 09:49:03.677  7935  7979 I LibreOffice/androidinst: 
> 04-07 09:49:03.677  7935  7979 I LibreOffice/androidinst: SalAbort: 'Unknown application error'
> 04-07 09:49:03.677  7935  7979 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7979 (Thread-5), pid 7935 (org.libreoffice)


Happens since

commit e64dc07ca8300a997d6d3eebfc3e198ae55d290d
Author: Gülşah Köse <gulsah.kose@collabora.com>
Date:   Mon Mar 29 11:52:05 2021 +0300

    tdf#139906 Show warning message when data source is not avaible.
    
    CurrentDatabaseDataSource config item holds a database name for a
    specific file. When document has CurrentDatabaseDataSource config
    item but LibreOffice doesn't have in registered databases we should
    notify the user at load time and put a button to fix the problem.
    
    Change-Id: Ia0a6fd53985fc2fb82ce37d3962b3f479c20a647
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113296
    Tested-by: Jenkins
    Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>

I'm taking a look.
Comment 2 Michael Weghorn 2021-04-07 08:05:09 UTC
Pending fix: https://gerrit.libreoffice.org/c/core/+/113717
Comment 3 Commit Notification 2021-04-07 09:43:02 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d3c5087b1f3edaf40fdd62311a3e9895a1fb7916

tdf#141531 liblo-native-code: Add ODatabaseContext_get_implementation

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.