Bug 118585 - Broadcast Receiver exception on close on Android Viewer
Summary: Broadcast Receiver exception on close on Android Viewer
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mert Tumer
URL:
Whiteboard: target:6.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-06 15:58 UTC by Mert Tumer
Modified: 2018-08-03 14:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mert Tumer 2018-07-06 15:58:15 UTC
Description:
Following exception occurs in the logs when closing libreoffice android viewer

Steps to Reproduce:
1.Open android viewer 
2.connect log
3. close the viewer

Actual Results:
07-06 18:53:50.258 21147-21147/org.example.libreoffice E/ActivityThread: Activity org.libreoffice.ui.LibreOfficeUIActivity has leaked IntentReceiver org.libreoffice.ui.LibreOfficeUIActivity$11@8bb2d55 that was originally registered here. Are you missing a call to unregisterReceiver()?
    android.app.IntentReceiverLeaked: Activity org.libreoffice.ui.LibreOfficeUIActivity has leaked IntentReceiver org.libreoffice.ui.LibreOfficeUIActivity$11@8bb2d55 that was originally registered here. Are you missing a call to unregisterReceiver()?
        at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1344)
        at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1121)
        at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1415)
        at android.app.ContextImpl.registerReceiver(ContextImpl.java:1388)
        at android.app.ContextImpl.registerReceiver(ContextImpl.java:1376)
        at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:613)
        at org.libreoffice.ui.LibreOfficeUIActivity.onCreate(LibreOfficeUIActivity.java:167)
        at android.app.Activity.performCreate(Activity.java:7057)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2789)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2911)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1608)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6665)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)

Expected Results:
No exception


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Commit Notification 2018-07-12 13:55:33 UTC
Mert Tumer committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=f5db384409e85a4e98773265be68adad6fe65866

tdf#118585 Fix exception when closing Android Viewer

It will be available in 6.2.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.