Bug 88667 - CRASH: Attempting to open files causes crash on Android 5
Summary: CRASH: Attempting to open files causes crash on Android 5
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: Other other
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: needsAndroid5
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 16:11 UTC by Kevin
Modified: 2015-01-23 11:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test odt file that doesn't work with Android Viewer (12.09 KB, application/vnd.oasis.opendocument.text)
2015-01-22 03:27 UTC, Kevin
Details
ODF test document (15.76 KB, application/vnd.oasis.opendocument.text)
2015-01-22 11:34 UTC, Gabriel Diosan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2015-01-21 16:11:41 UTC
I installed this morning, super excited. Unfortunately when I tap on an odf, docx, or other file on my phone, the Libreoffice viewer opens to a black screen, thrashes for awhile, then closes and send me back to wherever I was before. I tried restarting phone, I tried 10 different files, nothing has been able to open sucessfully with the program.

Thanks,
Kevin
Comment 1 Robinson Tryon (qubit) 2015-01-22 02:10:22 UTC
TESTING with Android 4.4.4 + LO 4.5-master

tinderbox: buildname: Android-ARM@24-Bytemark-Hosting
tinderbox: tree: MASTER
tinderbox: pull time 2015-01-21 08:36:57
tinderbox: git sha1s
core:7fe28b2c7b9a1fd5718e1f5b6562cf93902d6be0

(In reply to Kevin from comment #0)
> I installed this morning, super excited. Unfortunately when I tap on an odf,
> docx, or other file on my phone, the Libreoffice viewer opens to a black
> screen, thrashes for awhile, then closes and send me back to wherever I was
> before. 

That's no good!

I just confirmed that attachment 112633 [details] (an ODT file) opens fine for me on my test device. Please 
1) try that file to make sure that we're not just running into squirrelly test files!
2) Tell us what version of Android you're running

Status -> NEEDINFO

(Please change status back to UNCONFIRMED after you test. Thanks!)
Comment 2 Kevin 2015-01-22 03:27:50 UTC
Created attachment 112639 [details]
test odt file that doesn't work with Android Viewer
Comment 3 Kevin 2015-01-22 03:29:14 UTC
hey so the file you sent me works! Awesome!

but all of the odt and docx files I make in LO 4.3.5 don't :\

I've attached an example odt file I just created using Libreoffice 4.3.5.2 on Linux Mint. Please try this one and let me know if it works?

I'm using Android 5.0.1

(sorry for double post, haven't used bugzilla a lot)
Comment 4 Robinson Tryon (qubit) 2015-01-22 04:00:10 UTC
(In reply to Kevin from comment #3)
> hey so the file you sent me works! Awesome!

Great!

> but all of the odt and docx files I make in LO 4.3.5 don't :\
> 

Hmmm, no good.

> I've attached an example odt file I just created using Libreoffice 4.3.5.2
> on Linux Mint. Please try this one and let me know if it works?
> 
> I'm using Android 5.0.1

I can open attachment 112639 [details] just fine (testing with same setup as I used in comment 1).

It's possible that the Android mismatch (4.4.4 vs 5.0.1) or a different version of LibreOffice is the explanation here. What version of the LO Viewer are you using?
Comment 5 Kevin 2015-01-22 05:05:45 UTC
hey Robinson, it's the alpha 4.5000+, the one that is currently available on the Google Play store (as of 2015-01-21)
Comment 6 Kevin 2015-01-22 05:11:10 UTC
4.5.0.0.alpha0+
Comment 7 Gabriel Diosan 2015-01-22 11:33:49 UTC
Hi

So I am seeing the same crashes that Kevin is experiencing. 

I am running Libreoffice Viewer Version 4.5.0.0.alpha0+
Google Nexus 5 Android 5.0.1

The crash happens in the same way that Kevin describes and is present for both ODT files and docx files I have tried. I have uploaded a test document that I tried which crashes the viewer. Also attachment 112633 [details] does not open on my phone, I get a crash.

This appears to then be an issue with the viewer running on Android 5.0.1. 

If you need me to test any other documents or provide further info let me know.

Gabriel
Comment 8 Gabriel Diosan 2015-01-22 11:34:55 UTC
Created attachment 112659 [details]
ODF test document
Comment 9 Robinson Tryon (qubit) 2015-01-22 12:03:14 UTC
(In reply to Gabriel Diosan from comment #7)
> So I am seeing the same crashes that Kevin is experiencing. 
> 
> I am running Libreoffice Viewer Version 4.5.0.0.alpha0+
> Google Nexus 5 Android 5.0.1
> 
> The crash happens in the same way that Kevin describes and is present for
> both ODT files and docx files I have tried. I have uploaded a test document
> that I tried which crashes the viewer. Also attachment 112633 [details] does
> not open on my phone, I get a crash.
> 
> This appears to then be an issue with the viewer running on Android 5.0.1. 

Devs: Please check on Android 5+

Status -> NEW
Comment 10 Michael Meeks 2015-01-22 12:16:58 UTC
What is useful is the 'adb logcat' output - if you install adb and turn developer mode on. Unfortunately without better specificity we're going to just pile up some huge number of different crasher problems in this bug =)

I'm using a Nexus 7 with Android 5.0.2 and it works well enough here =)
Comment 11 Kevin 2015-01-22 14:49:23 UTC
I'll try to figure out how to install adb tonight after work.
Comment 12 Kevin 2015-01-22 18:09:14 UTC
The update that came out earlier today via Google Play (in the past 4 hours anyways (build ID e12d566)) has fixed my problem. I've tested five odt files and they all opened. I'm unable to replicate the issue I had. So it's resolved I think? (marking it as such.)

Funny observation, one of my LO created docx files opened, but all the text was in Sanskrit :D - but another LO created docx file opened just fine.. not sure what that was about but it's not of grave concern.

Thanks to whoever fixed this!!
Comment 13 Robinson Tryon (qubit) 2015-01-22 18:49:43 UTC
(In reply to Kevin from comment #12)
> The update that came out earlier today via Google Play (in the past 4 hours
> anyways (build ID e12d566)) has fixed my problem. I've tested five odt files
> and they all opened. I'm unable to replicate the issue I had. So it's
> resolved I think? (marking it as such.)

Great, thanks!

> Funny observation, one of my LO created docx files opened, but all the text
> was in Sanskrit :D - but another LO created docx file opened just fine.. not
> sure what that was about but it's not of grave concern.

It would be great if you could file a new bug and attach the docx that looks fine and the docx that shows up as sanskrit. We can then test to see if we get the same results as you (and check both on Android and on the desktop).
Comment 14 Gabriel Diosan 2015-01-23 11:55:13 UTC
Today's update fixes the crashes for me as well. Good stuff. :)