compiling Libreoffice online android doesn't display document.

Michael Weghorn m.weghorn at posteo.de
Wed Sep 16 11:12:19 UTC 2020


Hi,

On 14/09/2020 20.12, Chetan Rawat wrote:
> Hi,
> I have been doing my analysis on this  for a while now and after enabling
> few debugging symbols the adb logcat gives following output when opening any
> document:
> 
> 2020-09-14 23:20:44.807 18128-18307/org.libreoffice.androidapp.debug
> D/loolwsd: DBG Mobile-18307 2020-09-14 17:50:44.807636 [ kit_001 ] DBG 
> Calling
> lokit::documentLoad(file:///data/user/0/org.libreoffice.androidapp.debug/cache/LibreOffice2801578603109353115.tmp,
> "Language=en-IN,DeviceFormFactor=mobile").|
> /opt/lo_new/online/kit/Kit.cpp:1171
> 2020-09-14 23:20:45.038 18128-18307/org.libreoffice.androidapp.debug
> W/cppuhelper: 1:cppuhelper/source/shlib.cxx:288: unknown constructor name
> "com_sun_star_comp_Writer_MWAWImportFilter_get_implementation"
> 2020-09-14 23:20:45.042 18128-18307/org.libreoffice.androidapp.debug
> W/cppuhelper: 1:cppuhelper/source/shlib.cxx:288: unknown constructor name
> "org_libreoffice_comp_Writer_EBookImportFilter_get_implementation"
> 2020-09-14 23:20:45.043 18128-18307/org.libreoffice.androidapp.debug
> W/cppuhelper: 1:cppuhelper/source/shlib.cxx:288: unknown constructor name
> "org_libreoffice_comp_Writer_EBookImportFilter_get_implementation"
> 2020-09-14 23:20:45.044 18128-18307/org.libreoffice.androidapp.debug
> W/cppuhelper: 1:cppuhelper/source/shlib.cxx:288: unknown constructor name
> "com_sun_star_comp_Writer_MWAWImportFilter_get_implementation"
> 2020-09-14 23:20:45.046 18128-18307/org.libreoffice.androidapp.debug
> I/chatty: uid=10365(org.libreoffice.androidapp.debug) kit_001 identical 2
> lines
> 2020-09-14 23:20:45.047 18128-18307/org.libreoffice.androidapp.debug
> W/cppuhelper: 1:cppuhelper/source/shlib.cxx:288: unknown constructor name
> "com_sun_star_comp_Writer_MWAWImportFilter_get_implementation"
> 2020-09-14 23:20:45.048 18128-18307/org.libreoffice.androidapp.debug
> W/cppuhelper: 1:cppuhelper/source/shlib.cxx:288: unknown constructor name
> "com_sun_star_comp_Writer_MSWorksImportFilter_get_implementation"
> 2020-09-14 23:20:45.058 18128-18307/org.libreoffice.androidapp.debug
> W/oox.storage: 1:oox/source/helper/zipstorage.cxx:68: ZipStorage::ZipStorage
> exception opening input storage com.sun.star.io.IOException
> 2020-09-14 23:20:45.074 18128-18307/org.libreoffice.androidapp.debug> [...]

<snip>

> 2020-09-14 23:20:45.830 18128-18186/org.libreoffice.androidapp.debug
> D/GraphicBuffer: register, handle(0x7f437800) (w:812 h:406 s:832 f:0x1
> u:b00) 20200914_233438.mp4
> <http://document-foundation-mail-archive.969070.n3.nabble.com/file/t496827/20200914_233438.mp4>  
> 2020-09-14 23:20:45.834 18128-18186/org.libreoffice.androidapp.debug
> D/HWUIExtension: MTKProgramCache.generateProgram: 8796098265152
> 
> 
> I guess few required services are missing, could you please assist me with
> this issue.  

I don't have much experience with the online-based Android app, but from
what I've seen with the Android Viewer app, a change similar to commit
https://git.libreoffice.org/core/+/7374fa59b929bea6792f80a6a819b2a06582722f%5E%21/
might make it work (adding the missing services mentioned in your log
output to the same file).

Seeing what services are mentioned in your debug log (like
"com_sun_star_comp_Writer_MSWorksImportFilter_get_implementation"), I'm
wondering what kind of file exactly you're trying to open. Do you have
the same issue when e.g. trying to open an empty ODT file?

(Maybe somebody else can say more on whether including all services into
liblo-native-code that are required to support all file formats that
LibreOffice supports is fine or would be problematic, e.g. for APK
size,...).


More information about the LibreOffice mailing list