Bug 114130 - Crash when I open a .doc file (attached file) in version 5.4.3.2.0+ for Android
Summary: Crash when I open a .doc file (attached file) in version 5.4.3.2.0+ for Android
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
5.4.3.2 release
Hardware: ARM Android
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-29 10:16 UTC by Tran Ngoc Thinh
Modified: 2019-11-08 15:51 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
File causing app crashed (77.00 KB, application/binary)
2017-11-29 10:21 UTC, Tran Ngoc Thinh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tran Ngoc Thinh 2017-11-29 10:16:59 UTC
Description:
Dear Support Team,

I'm using LibreOffice ver 5.4.3.2.0+ for Android 6.0.1
My Phone spec is Snapdragon 430 (MSM8737-64), 2GB RAM, 16GB ROM.

When I open a .doc file, I received error (logcat) as follow, then the app was crashed:

11-29 16:22:22.048 18150 18150 W linker  : /data/app/org.example.libreoffice-1/lib/arm/liblo-native-code.so: is missing DT_SONAME will use basename as a replacement: "liblo-native-code.so"
11-29 16:22:22.160 18150 18150 I GeckoAxis: Prefs: 0.96174634,0.99271643,2.4,0.012,0.461843,0.3,0.5
11-29 16:22:22.177 18150 18150 E org.mozilla.gecko.gfx.LayerView: ### Creating GL thread!
11-29 16:22:22.202 18150 18150 D LibreOfficeMainActivity: SCHEME_FILE: getPath(): /storage/emulated/0/Download/NHCH Van hoa - NLNB 2009.doc
11-29 16:22:22.215 18150 18150 I LibreOfficeMainActivity: onStart..
11-29 16:22:22.215 18150 18150 I LibreOfficeMainActivity: onResume..
11-29 16:22:22.232 18150 18175 I lo-bootstrap: putenv(SAL_LOG=+WARN+INFO)
11-29 16:22:22.233 18150 18175 I LibreOfficeKit: Initializing LibreOfficeKit, dataDir=/data/user/0/org.example.libreoffice
11-29 16:22:22.233 18150 18175 I lo-bootstrap: redirect_stdio: stdout pipe: [19,31], stderr pipe: [32,33]
11-29 16:22:22.234 18150 18175 I lo-bootstrap: putenv(OOO_DISABLE_RECOVERY=1)
11-29 16:22:22.234 18150 18175 I lo-bootstrap: putenv(FONTCONFIG_FILE=/data/user/0/org.example.libreoffice/etc/fonts/fonts.conf)
11-29 16:22:22.234 18150 18175 I lo-bootstrap: putenv(TMPDIR=/data/user/0/org.example.libreoffice/cache)
11-29 16:22:22.285 18150 18150 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@be45709
11-29 16:22:22.285 18150 18150 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@cb3fd0e
11-29 16:22:22.298 18150 18176 I Adreno  : QUALCOMM build                   : 710c145, Iebe23be877
11-29 16:22:22.298 18150 18176 I Adreno  : Build Date                       : 08/10/16
11-29 16:22:22.298 18150 18176 I Adreno  : OpenGL ES Shader Compiler Version: XE031.08.00.00
11-29 16:22:22.298 18150 18176 I Adreno  : Local Branch                     : 
11-29 16:22:22.298 18150 18176 I Adreno  : Remote Branch                    : 
11-29 16:22:22.298 18150 18176 I Adreno  : Remote Branch                    : 
11-29 16:22:22.298 18150 18176 I Adreno  : Reconstruct Branch               : 
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.327 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.328 18150 18176 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-29 16:22:22.367  1331  1379 I ActivityManager: Displayed org.example.libreoffice/org.libreoffice.LibreOfficeMainActivity: +471ms
11-29 16:22:22.560 18150 18180 I LibreOffice: New sal thread started and attached res=0
11-29 16:22:22.561 18150 18180 I LibreOffice/androidinst: Android: CreateSalInstance!
11-29 16:22:22.561 18150 18180 I LibreOffice/androidinst: AttachCurrentThread res=0 env=0xab7067f0
11-29 16:22:22.641 18150 18177 I stderr  : Fontconfig warning: line 145: blank doesn't take any effect anymore. please remove it from your fonts.conf
11-29 16:22:22.709 18150 18175 I LibreOfficeKit: LibreOfficeKit successfully initialized
11-29 16:22:22.710 18150 18175 I LOKitTileProvider: ====> Loading file '/storage/emulated/0/Download/NHCH Van hoa - NLNB 2009.doc'
11-29 16:22:22.739  1331  1364 D ActivityTrigger: ActivityTrigger activityStopTrigger 
11-29 16:22:22.779 18150 18150 D LibreOfficeUIActivity: org.libreoffice.storage.local.LocalFile@9432414-11
11-29 16:22:22.779 18150 18150 D LibreOfficeUIActivity: savedInstanceState
11-29 16:22:22.779 18150 18150 D LibreOfficeUIActivity: onStop
11-29 16:22:22.975 18150 18183 I LibreOffice: New sal thread started and attached res=0
11-29 16:22:23.076 18150 18183 I LibreOffice: Detached finished sal thread res=0
11-29 16:22:23.332  2104  2218 D TelephonyIcons: updateDataType slot=0, type=13, inetCondition=1 showAtLeast3G=false show4GforLte=true hspaDistinguishable=false
11-29 16:22:23.333  2104  2218 D TelephonyIcons: data type item name: array/telephony_data_type_sim1 id:2131230726
11-29 16:22:23.335  2104  2218 D TelephonyIcons: updateDataType mSelectedDataTypeIcon[0]=2130837811, mSelectedDataActivityIndex=5
11-29 16:22:23.335  2104  2218 D TelephonyIcons: getSignalStrengthIcon: slot=0, inetCondition=1, level=2, roaming=false
11-29 16:22:23.335  2104  2218 D TelephonyIcons: signalStrengthArray.length=9
11-29 16:22:23.336  2104  2218 D TelephonyIcons: selectedTypeArray.length=2
11-29 16:22:23.337  2104  2218 D TelephonyIcons: inetArray.length=5
11-29 16:22:23.337  2104  2218 D TelephonyIcons: getDataActivity, slot=0, activity=4
11-29 16:22:23.340  2104  2218 D TelephonyIcons: null signal icon name: drawable/stat_sys_signal_null
11-29 16:22:23.341  2104  2218 D TelephonyIcons: getDataTypeIcon sub=0
11-29 16:22:23.409 18150 18180 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xfff104fb in tid 18180 (Thread-291)
11-29 16:22:23.512   723   723 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-29 16:22:23.512   723   723 F DEBUG   : Build fingerprint: 'VIP/msm8937_64/msm8937_64:6.0.1/MMB29M/thinhtn10311834:eng/test-keys'
11-29 16:22:23.512   723   723 F DEBUG   : Revision: '0'
11-29 16:22:23.512   723   723 F DEBUG   : ABI: 'arm'
11-29 16:22:23.513   723   723 F DEBUG   : pid: 18150, tid: 18180, name: Thread-291  >>> org.example.libreoffice <<<
11-29 16:22:23.513   723   723 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfff104fb
11-29 16:22:23.535   723   723 F DEBUG   :     r0 dd742f5d  r1 ab915670  r2 6f75746c  r3 fff104bf
11-29 16:22:23.535   723   723 F DEBUG   :     r4 e1cea1b4  r5 e1ceab58  r6 ab90b098  r7 e1ce9ff0
11-29 16:22:23.536   723   723 F DEBUG   :     r8 e1cec28c  r9 ab90e830  sl e124c440  fp e124c8d8
11-29 16:22:23.536   723   723 F DEBUG   :     ip 80000000  sp e1ce9ff0  lr dd2e39e9  pc dd2e3972  cpsr a0030030
11-29 16:22:23.537   723   723 F DEBUG   : 
11-29 16:22:23.537   723   723 F DEBUG   : backtrace:
11-29 16:22:23.537   723   723 F DEBUG   :     #00 pc 02228972  /data/app/org.example.libreoffice-1/lib/arm/liblo-native-code.so
11-29 16:22:23.659   850   850 I MSM-irqbalance: Decided to move IRQ3 from CPU2 [P:0] to CPU6 [P:1] (banned)
11-29 16:22:23.660   850   850 I MSM-irqbalance: Decided to move IRQ3 from CPU1 [P:0] to CPU4 [P:1] (banned)
11-29 16:22:23.660   850   850 I MSM-irqbalance: Decided to move IRQ3 from CPU0 [P:0] to CPU5 [P:1] (banned)
11-29 16:22:23.661   850   850 I MSM-irqbalance: Decided to move IRQ3 from CPU3 [P:0] to CPU7 [P:1] (banned)
11-29 16:22:24.010   723   723 F DEBUG   : 
11-29 16:22:24.010   723   723 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_05
11-29 16:22:24.010  1331 18188 W ActivityManager:   Force finishing activity org.example.libreoffice/org.libreoffice.LibreOfficeMainActivity
11-29 16:22:24.010   723   723 E DEBUG   : AM write failed: Broken pipe
11-29 16:22:24.010  1331  1376 I BootReceiver: Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
11-29 16:22:24.018  1331 18188 D ActivityTrigger: ActivityTrigger activityPauseTrigger 
11-29 16:22:24.028  1331  1365 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@9c65ed7
11-29 16:22:24.028  1331  1365 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@ba613c4
11-29 16:22:24.068  1331  4099 I OpenGLRenderer: Initialized EGL, version 1.4
11-29 16:22:24.121  1331  1840 W InputDispatcher: channel '178585 org.example.libreoffice/org.libreoffice.ui.LibreOfficeUIActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
11-29 16:22:24.121  1331  1840 E InputDispatcher: channel '178585 org.example.libreoffice/org.libreoffice.ui.LibreOfficeUIActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
11-29 16:22:24.121  1331  1840 W InputDispatcher: channel '414032 org.example.libreoffice/org.libreoffice.LibreOfficeMainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
11-29 16:22:24.122  1331  1840 E InputDispatcher: channel '414032 org.example.libreoffice/org.libreoffice.LibreOfficeMainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
11-29 16:22:24.122  1331  2447 I WindowState: WIN DEATH: Window{414032 u0 org.example.libreoffice/org.libreoffice.LibreOfficeMainActivity}
11-29 16:22:24.122  1331  2447 W InputDispatcher: Attempted to unregister already unregistered input channel '414032 org.example.libreoffice/org.libreoffice.LibreOfficeMainActivity (server)'
11-29 16:22:24.130  1331  2383 I WindowState: WIN DEATH: Window{fcff22e u0 SurfaceView}
11-29 16:22:24.135  1331  2073 I WindowState: WIN DEATH: Window{178585 u0 org.example.libreoffice/org.libreoffice.ui.LibreOfficeUIActivity}
11-29 16:22:24.135  1331  2073 W InputDispatcher: Attempted to unregister already unregistered input channel '178585 org.example.libreoffice/org.libreoffice.ui.LibreOfficeUIActivity (server)'
11-29 16:22:24.141   744   744 I Zygote  : Process 18150 exited due to signal (11)
11-29 16:22:24.144  1331  2400 I ActivityManager: Process org.example.libreoffice (pid 18150) has died
11-29 16:22:24.172  1331  2400 V BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@e981906
11-29 16:22:24.172  1331  2400 I ActivityManager: Start proc 18191:org.example.libreoffice/u0a98 for activity org.example.libreoffice/org.libreoffice.ui.LibreOfficeUIActivity
11-29 16:22:24.176 18191 18191 I art     : Not late-enabling -Xcheck:jni (already on)
11-29 16:22:24.176 18191 18191 I art     : Late-enabling JIT
11-29 16:22:24.188 18191 18191 I art     : JIT created with code_cache_capacity=2MB compile_threshold=1000
11-29 16:22:24.339 18191 18191 W art     : Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-29 16:22:24.387 18191 18191 D NetworkUtils: Searching known-servers store at /data/user/0/org.example.libreoffice/files/knownServers.bks
11-29 16:22:24.416 18191 18191 D OwnCloudClient #0: Creating OwnCloudClient
11-29 16:22:24.459  1331  1379 W WindowAnimator: Failed to dispatch window animation state change.
11-29 16:22:24.459  1331  1379 W WindowAnimator: android.os.DeadObjectException
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.os.BinderProxy.transactNative(Native Method)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.os.BinderProxy.transact(Binder.java:503)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator.access$000(WindowAnimator.java:53)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.view.Choreographer.doCallbacks(Choreographer.java:670)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.view.Choreographer.doFrame(Choreographer.java:603)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.os.Handler.handleCallback(Handler.java:739)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.os.Handler.dispatchMessage(Handler.java:95)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.os.Looper.loop(Looper.java:148)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at android.os.HandlerThread.run(HandlerThread.java:61)
11-29 16:22:24.459  1331  1379 W WindowAnimator: 	at com.android.server.ServiceThread.run(ServiceThread.java:46)
11-29 16:22:24.460  1331  1379 W WindowAnimator: Failed to dispatch window animation state change.
11-29 16:22:24.460  1331  1379 W WindowAnimator: android.os.DeadObjectException
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.os.BinderProxy.transactNative(Native Method)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.os.BinderProxy.transact(Binder.java:503)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator.access$000(WindowAnimator.java:53)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.view.Choreographer.doCallbacks(Choreographer.java:670)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.view.Choreographer.doFrame(Choreographer.java:603)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.os.Handler.handleCallback(Handler.java:739)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.os.Handler.dispatchMessage(Handler.java:95)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.os.Looper.loop(Looper.java:148)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at android.os.HandlerThread.run(HandlerThread.java:61)
11-29 16:22:24.460  1331  1379 W WindowAnimator: 	at com.android.server.ServiceThread.run(ServiceThread.java:46)
11-29 16:22:24.535 18191 18191 I AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.

Please check the log and reply me soon!
Thanks in advanced,
Thinh

Steps to Reproduce:
1.Open LibreOffice 5.4.3.2.0+ for Android app
2.Click to open file "NHCH Van hoa - NLNB 2009.doc"


Actual Results:  
3.The app will be crashed

Expected Results:
3. Open file "NHCH Van hoa - NLNB 2009.doc" successfully


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Comment 1 Tran Ngoc Thinh 2017-11-29 10:21:10 UTC
Created attachment 138055 [details]
File causing app crashed
Comment 2 Julien Nabet 2017-11-29 10:52:00 UTC
"Assignee" field is for devs or contributor who work on the bug, that's why I reset it.
Of course, if you want to debug it yourself, don't hesitate to revert back + change the status to "ASSIGNED".
Comment 3 Tran Ngoc Thinh 2017-11-29 11:23:18 UTC
(In reply to Julien Nabet from comment #2)
> "Assignee" field is for devs or contributor who work on the bug, that's why
> I reset it.
> Of course, if you want to debug it yourself, don't hesitate to revert back +
> change the status to "ASSIGNED".

Dear Julien,

I researched this bug for 3 days and still have no idea about it.

I me this bug on 6.0.0.0.alpha1 of LibreOffice for Android but opened successfully my attached file in version 5.3.0.3.0+

Hope some solutions from your team!

Thanks,
Thinh
Comment 4 Xisco Faulí 2017-11-30 06:36:29 UTC
Hello,
Which android version and device do you have?
Comment 5 Tran Ngoc Thinh 2017-11-30 06:41:55 UTC
Dear Xisco,

As my description, I'm using Android 6.0.1 Google base source.

My device spec: Snapdragon 430 (MSM8937_64), RAM 2GB, ROM 16GB

Regards,
Thinh
Comment 6 Xisco Faulí 2017-12-01 12:31:31 UTC
There's a plausible fix for this and other crashes not yet merged in master.
Could you please try this build https://dev-builds.libreoffice.org/daily/master/android-test/ ?
Comment 7 Tran Ngoc Thinh 2017-12-04 03:56:45 UTC
(In reply to Xisco Faulí from comment #6)
> There's a plausible fix for this and other crashes not yet merged in master.
> Could you please try this build
> https://dev-builds.libreoffice.org/daily/master/android-test/ ?

Hi Xisco,

I've tried the build you provided but I received an error when run app at the first launch: "Attempt to get length of num array" (Prompt Notification)

Why am i getting this and is there anything i can do to fix this?

Thanks,
Thinh
Comment 8 QA Administrators 2018-12-05 03:48:45 UTC Comment hidden (obsolete)
Comment 9 Christian Lohmaier 2019-11-08 15:48:27 UTC
Comment on attachment 138055 [details]
File causing app crashed

set to binary
Comment 10 Christian Lohmaier 2019-11-08 15:51:22 UTC
wfm - no crash with current master.

Feel free to reopen if you can still reproduce