Cannot Compose Mail

Description

Sometimes when I launch MailSpring, I cannot compose mail. However, shortcuts work pretty well as pressing C launches the compose window. However, trying to type into that window does not write/display anything on the screen.

Setup

  • OS and Version: Fedora 32 (Workstation Edition)
  • Mailspring Version: 1.7.6

(Originally posted by ckkibet on GitHub.)

Hello,

I have exactly the same problem. I can not compose email. It looks like mailspring does not recognize the keyboard. Only mouse is working !!

Can you fix this issue ASAP pease !

I can not work !!!

OS: Ubuntu 20.04 LTS
Mailspring: 1.7.8-13635bcf

Update

After some tries, after installing hplip drivers, i got this problem:

**(mailspring:8263): IBUS-WARNING : Unable to connect to ibus: Could not connect: Connection refused

Here is the complete log:

Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
Running database migrations
App load time: 307ms

{"error":null}

(mailspring:8718): IBUS-WARNING **: Unable to connect to ibus: Could not connect: Connection refused

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

(mailspring:8718): IBUS-WARNING **: Events queue growing too big, will start to drop.

This happens each time i install the hplip driver that you can found it here:

https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

Tip: Perhaps there is a conflicted version of python as it’ used by hplip and mailspring. Mailspring should use the snap python version and not the system’s one. Here is a list of all installed pythons:

Python 3.7.7
/snap/core18/1705/usr/bin/python3.6: Python 3.6.9
/snap/core18/1705/usr/bin/python3.6m: Python 3.6.9
/snap/core18/1754/usr/bin/python3.6: Python 3.6.9
/snap/core18/1754/usr/bin/python3.6m: Python 3.6.9
/snap/core/9066/usr/bin/python3.5: Python 3.5.2
/snap/core/9066/usr/bin/python3.5m: Python 3.5.2
/snap/core/9289/usr/bin/python3.5: Python 3.5.2
/snap/core/9289/usr/bin/python3.5m: Python 3.5.2
/snap/gnome-3-28-1804/116/usr/bin/python3.6: Python 3.6.9
/snap/gnome-3-28-1804/116/usr/bin/python3.6m: Python 3.6.9
/snap/gnome-3-28-1804/128/usr/bin/python3.6: Python 3.6.9
/snap/gnome-3-28-1804/128/usr/bin/python3.6m: Python 3.6.9
/snap/gnome-3-34-1804/33/usr/bin/python3.6: Python 3.6.9
/snap/gnome-3-34-1804/33/usr/bin/python3.6m: Python 3.6.9
/snap/gnome-3-34-1804/36/usr/bin/python3.6: Python 3.6.9
/snap/gnome-3-34-1804/36/usr/bin/python3.6m: Python 3.6.9
/snap/inkscape/7601/usr/bin/python3.6: Python 3.6.9
/snap/inkscape/7601/usr/bin/python3.6m: Python 3.6.9
/snap/inkscape/7627/usr/bin/python3.6: Python 3.6.9
/snap/inkscape/7627/usr/bin/python3.6m: Python 3.6.9
/snap/mailspring/482/usr/bin/python2.7: Python 2.7.12
/snap/mailspring/488/usr/bin/python2.7: Python 2.7.12

(Originally posted by skonsoft on GitHub.)

Same here, keyboard commands seem to work but I cannot type text anywhere in mailspring (compose or search field).
I am using 1.7.8-13635bcf on Ubuntu 20.04.

Interestingly this behavior started after I used a new printer for the first time, using it with the auto-installed driver. Could that relate to hplip as reported above?


(Originally posted by Dahaniel on GitHub.)

1 Like

Hey, I am replying to the response from bengotow here: Bug: Cannot Compose Mail · Issue #2035 · Foundry376/Mailspring · GitHub

Thanks for looking into this. I see some improvements in 1.17.3 (previously linebreaks were ignored sometimes etc).

However, I use the compose key a lot on Ubuntu to type German Umlauts on a US keyboard. These have a lot of issues (only in mailspring and reappeared in the latest releases from this year). It seems that the time window in which keystrokes are accepted, after hitting the compose key, is super short, so very often it won’t work.

I am currently composing mails in a text editor as workaround.

While 1.17.4 seems to improve compose key usage occasionally, I am back to the status 5y ago where the whole input field gets stuck and I cannot type at all.

All of this was fixed and working until 1.17.0…

I see some improvements after disabling spellcheck

Hey folks, Mailspring 1.18.0 includes a fix for a keyboard freeze in the composer that (we think) was caused by a double focus() call (#2622). This was specifically affecting Wayland users but may have contributed to keyboard input issues on other setups as well.

If you’re still experiencing keyboard input failures in the compose window after updating, please share your platform details and logs in a new thread so we can investigate further. Update via snap refresh mailspring, the built-in auto-updater, or from https://www.getmailspring.com/download.