Ripcord Dev Logo Ripcord Development — View Ticket Login or Create Account
Ticket UUID: 9be8ff3b00d82c564d1e283e7fb159ba8f2c5d34
Title: Clipboard uploads with 0kb are uploaded
Status: Deferred Type: Bug
Severity: Minor Priority: Low
Subsystem: General Resolution: External_Bug
Last Modified: 2018-11-19 18:18:29
Version Found In: 0.3.4
Astrid2018-10-07 12:03:48
This generally happens when pasting an image from clipboard.
Sometimes there's no content in the clipboard... somehow (maybe windows just being windows)

An image upload preview with no image is displayed, and can still be uploaded, which ends up sending a 0kb file to the server.

These should probably not be attempted to be uploaded
cancel2018-11-19 18:18:29
Confirmed that this is a bug in Qt 5.9 for Windows. It actually causes a non-crashing access violation internally in the Qt code when certain types of formatted clipboard image data are pasted (QMimeData reads from 0xffffffff). Nothing I can do about the access violation right now -- I'm already doing every possible bad-data check that Qt lets me do in user code, so the bug will have to be fixed by Qt. Hopefully this is fixed in Qt 5.12.

In the meantime, I've added some post-checks where the upload button will be disabled if the image data given by Qt is a 0x0 image.

Please reopen this ticket if some image data is still not pasteable after Ripcord is upgraded to Qt 5.12.