When loading large images you can run into an OOM situation crashing
the app and leaving the progress notification displayed indefinitely
BUG: 397507
albertvaka |
KDE Connect |
When loading large images you can run into an OOM situation crashing
the app and leaving the progress notification displayed indefinitely
BUG: 397507
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
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
src/org/kde/kdeconnect/Plugins/SharePlugin/ShareNotification.java | ||
---|---|---|
129 | I think you had an old version of the code when you implemented this, because I changed this finally to a try-with-resources and in your patch this got reverted. Can you rebase it onto the latest master? Apart from that, the patch looks good. |