Drafting email in the Reading Pane crashes randomly

Description

Horizontal Reading Pane seems to crash while writing a reply. This is the error displayed:

TypeError: Invalid attempt to destructure non-iterable instance
    at ../src/utils/key-utils.js:67:1
    at Document.getActiveMarksAtRange (../src/interfaces/element.js:264:9)
    at Value.get$$1 (../src/models/value.js:369:25)
    at FloatingEmojiPicker (file:///var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/nylas-build/electron-packager/darwin-x64/Mailspring-darwin-x64/Electron.app/Contents/Resources/app/src/components/composer-editor/emoji-plugins.tsx:70:23)
    at Yg (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:156:274)
    at eh (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:170:437)
    at ai (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:202:255)
    at bi (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:203:271)
    at Fi (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:218:174)
    at Gi (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:217:174)
    at ii (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:214:252)
    at xg (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:212:94)
    at Object.enqueueSetState (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:133:223)
    at _a.Component.setState (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/react/cjs/react.development.js:373:16)
    at DraftEd

To Reproduce…

Steps to reproduce the behavior:

  1. Seems random

Expected Behavior

Replying to emails doesn’t crash part of the interface. In the meantime, there should be a button to re-initialize the reading pane after an error/crash.

Screenshots

Setup

  • OS and Version: macOS 10.15.4
    • Installation Method: installer
  • Mailspring Version: 1.10.3