<table><tr><td style="">yuenlim created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4945" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Oddly, when pasting raw image data into QuickShare -> imgur, if the image data is sufficiently large KIO::storedHttpPost() seems to trigger a notification that reads:</p>

<p>"Transferring: Finished" "data:image/png;base64, <the entire raw data of the image to paste>"</p>

<p>This causes Plasma to basically freeze, presumably because the notification system isn't meant to handle megabytes of text.</p>

<p>This strangely doesn't happen (the notification does not appear to get triggered) if the image is not too large.</p>

<p>I am able to reliably reproduce the notification attempt + freeze with a 3000x2000 Spectacle screenshot with a sufficiently complex wallpaper, and reliably reproduce the non-buggy no notification case using smaller rectangular region screenshots.</p>

<p>I have also found that I can "fix" the large image case by simply omitting the KIO::HideProgressInfo flag from the KIO::storedHttpPost() call in the imgur plugin code. This seems to remove the notification + freeze with no ill effects.</p>

<p>Wondering if this might be an acceptable patch to go in, and if someone can shed some light on why I'm seeing such odd behavior :)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R495 Purpose Library</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4945" rel="noreferrer">https://phabricator.kde.org/D4945</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/plugins/imgur/imgurplugin.cpp</div></div></div><br /><div><strong>To: </strong>yuenlim, Plasma, apol<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>