Bug 397507 - Crash when transferring big size images from my computer to my phone using KDE Connect
Summary: Crash when transferring big size images from my computer to my phone using KD...
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (other bugs)
Version First Reported In: 1.8
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Erik Duisters
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-16 06:16 UTC by Віталій
Modified: 2018-11-07 16:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Віталій 2018-08-16 06:16:29 UTC
When an image or images are transmitted each 4 mb in size, the application crashes and closes, but the images are still transmitted and remain in the phone's memory, with a "status" bar that they are still being transmitted (this hangs forever until you forcefully close the application)
Comment 1 Albert Vaca Cintora 2018-11-07 16:53:16 UTC
Git commit 1fa8f3c99d33150d4ee8bdda427a373822231149 by Albert Vaca, on behalf of Erik Duisters.
Committed on 07/11/2018 at 16:53.
Pushed by albertvaka into branch 'master'.

Load image with resampling to prevent OOM

Summary:
When loading large images you can run into an OOM situation crashing
the app and leaving the progress notification displayed indefinitely

Test Plan:
Before applying the patch find a phone where the app crashes when you send a very large
image to it (my 6.0.1 phone did not even crash when i send it a 85MB image but my 4.0.4 phone
already crashes on a 7MB image)

Apply patch install and send image again

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D16712

M  +33   -3    src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java

https://commits.kde.org/kdeconnect-android/1fa8f3c99d33150d4ee8bdda427a373822231149