Description: Cannot View ODT Document at LibreOffice Viewer Steps to Reproduce: 1. Download a ODT file https://github.com/ikunya/libo-writer/blob/master/libreoffice-writer-book.odt (https://github.com/ikunya/libo-writer) 2. Open this document at LibreOffice Viewer Actual Results: Crash a LibreOffice Viewer Expected Results: Open ODT Document Reproducible: Always User Profile Reset: No Additional Info: No Crash: LibreOffice Viewer / Android Version: 5.0.10.10 Build ID: 4158227 (Collabora) Crash: LibreOffice Viewer / Android Version: 6.4.0.0 alpha0+ BuildID: ff2b56672203 /daily/master/Android-ARM@24-Bytemark-Hosting/2019-10-07_11.53.41/ Collabora Office / iOS LOOLWSD 4.1.0(git hash; 1b91eef0) LOKit Collabora Office 6.0-34(git hash: 97e2e47)
Reproduce with Newest LibreOffice Viewer. LibreOffice Viewer / Android Version: 6.4.0.0.alpha1+ BuildID: 3aaa2ec8c603 Android-ARM@24-Bytemark-Hosting/2019-10-21_22.04.56 Xisco, can you test this?
I believe, the root cause is the same as in bug 123290 *** This bug has been marked as a duplicate of bug 123290 ***
(In reply to Xisco Faulí from comment #2) > I believe, the root cause is the same as in bug 123290 Thanks for your comment. -> v.
(In reply to baffclan from comment #3) > (In reply to Xisco Faulí from comment #2) > > I believe, the root cause is the same as in bug 123290 > Thanks for your comment. > > -> v. Does it mean it's fixed with the android daily build from today ?
(In reply to Xisco Faulí from comment #4) > Does it mean it's fixed with the android daily build from today ? No, I verified that it is the same bug as bug 123290.
(In reply to Xisco Faulí from comment #2) > I believe, the root cause is the same as in bug 123290 > > *** This bug has been marked as a duplicate of bug 123290 *** It is not same problem. Reproduce with LibreOffice Viewer master Version: 6.4.0.0 alpha0+ BuildID: 13ac239daa4e maybe the same problem as bug 124536.
stubmbled over this one why looking at bug#124536 - cause is manual page break in the document. For that current desktop code reads a .ui file to show a menu to edit/delete that pagebreak. That file is not packaged in the Android viewer and causes an Exception that is not handled and ultimately crashes.
Christian Lohmaier committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/93ee955c5359e283e2fe88e45b4c02a60525ed11 tdf#128101 android: fix documents with manual page break It will be available in 6.5.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.
Hi baffclan, Could you please try again with a master build from today -> https://dev-builds.libreoffice.org/daily/master/Android-ARM@24-Bytemark-Hosting/current/
Reproduce with Newest LibreOffice Viewer. LibreOffice Viewer / Android Version: 6.5.0.0 alpha0+ BuildID: 1c58b2a437a7 Android-ARM@24-Bytemark-Hosting/2019-11-22_01.28.26
Same here as for bug 124536 comment 12, This works fine for me now (while I had the same issue with another document that has a page break earlier). Can you please retest again with a daily build, and give some more details, and preferably an ADB log if the crash still happens?
Created attachment 156540 [details] Error Screenshot (In reply to Michael Weghorn from comment #11) LibreOffice Viewer / Android Version: 6.5.0.0 alpha0+ BuildID: f44140bebb9c Android-ARM@24-Bytemark-Hosting/2019-12-12_00.19.48 Android 9
Collabora Office/iOS can open it. However, Japanese fonts are garbled.
(In reply to baffclan from comment #12) > Created attachment 156540 [details] > Error Screenshot Thanks for retesting. The error message "loadComponentFromUrl returned an empty reference" is also mentioned in bug 111968, so this may or may not be the same issue. (I cannot reproduce the latter either.) It sounds like it *might* be a permission problem. Does opening other files (e.g. an empty ODT file) work when they are located in the same directory or do you get the same error message?
(In reply to Michael Weghorn from comment #14) > It sounds like it *might* be a permission problem. Does opening other files > (e.g. an empty ODT file) work when they are located in the same directory or > do you get the same error message? I tried empty files (odt, ods, odp, odg) created LibO6.3.4.2 on Windows PC. A similar error dialog was displayed for all files. It was opened in Collabora Office for android. I tried it in a different directory but appear same error.
[Automated Action] NeedInfo-To-Unconfirmed
I'm also facing this error 'cannot open file: loadcomponentfromurl returned an empty reference' while opening every type of file, odt, ods, and odp. Is it taking file as a URL? or Is there url encoding problems? Please try to solve it as soon as possible. I have a deadline.
(In reply to Krishna Vyas from comment #17) > I'm also facing this error 'cannot open file: loadcomponentfromurl returned > an empty reference' while opening every type of file, odt, ods, and odp. > > Is it taking file as a URL? or Is there url encoding problems? > Please try to solve it as soon as possible. > I have a deadline. Unfortunately, it's hard to say what the problem is without being able to reproduce... Have you tried whether uninstalling and reinstalling the app helps? Depending on how important this is for you, seeking for professional support might help to get a solution more quickly: https://www.libreoffice.org/get-help/professional-support/ Otherwise, if somebody wants to create a development setup and analyze the issue further, I'll be happy to assist. This might help to further narrow down the root cazse (and I can't do it myself as long as I cannot reproduce...).
(In reply to Michael Weghorn from comment #18) > Have you tried whether uninstalling and reinstalling the app helps? Also, the ADB log might help (enable Developer settings, then enable ADB and attach the 'adb logcat' output).
*** Bug 124536 has been marked as a duplicate of this bug. ***
Cannot reproduce with Newest LibreOffice Viewer. Android-ARM@86-TDF / 2020-05-31_01.52.58 Version: 7.1.0.0.alpha0+ BuildID: 2047a59
Thanks for rechecking. Let's close it as RESOLVED WORKSFORME then
-> v.