See #6964. The root cause is that the event loop may be resized from an event callback itself, causing the event pointer to be invalid.
Attach a file by drag & drop or click to upload