tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
5.97k stars 513 forks source link

Linux Tutanota Clients are crashing when using the print function #3727

Open ghost opened 2 years ago

ghost commented 2 years ago

Describe the bug When trying to print (save PDFs) through the Linux Desktop Client, the client will crash when choosing the print-to-file option. When following the same steps through a web browser this problem does not occur.

To Reproduce Steps to reproduce the behavior:

  1. Open email
  2. Click on '....' > "Print"
  3. Select "Print-to-File"
  4. See error

Expected behavior The client should save the selected email as a pdf without crashing.

Desktop (please complete the following information):

Update It seems that the client crashes in most cases just upon clicking on print.

johnbotris commented 2 years ago

@brshub have you reproduced this? I did a cursory check and it works fine for me

jeffwills commented 2 years ago

I am having this problem with my Tutanota client. The client crashes sooner than originally reported.

Open email Click on '....' > "Print" Entire App crashes.

This only started happening after a recent update to the Tutanota client which is currently at v3.89.25 on Ubuntu 20.04.3 LTS.

jeffwills commented 2 years ago

Possibly related to this issue, https://stackoverflow.com/questions/70457114/electron-app-crashes-on-print-ubuntu-20-04-linux

ziondef commented 2 years ago

Is there no update for this in 5 months?

jeffwills commented 2 years ago

Still having this issue over here too.  I guess linux clients are not used much with tutanota.  Otherwise I think there would be a bunch of people asking why this has not been fixed yet.  

Apr 29, 2022, 06:53 by @.***:

Is there no update for this in 5 months?

— Reply to this email directly, > view it on GitHub https://github.com/tutao/tutanota/issues/3727#issuecomment-1113337656> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/ALOGBBGZ56EXJ45BJOODROTVHPSWPANCNFSM5JWNF74Q> . You are receiving this because you commented.> Message ID: > <tutao/tutanota/issues/3727/1113337656> @> github> .> com>

vitoreiji commented 2 years ago

We do use it, but I still can't reproduce it. Would be helpful if you could tell us how you installed the desktop app, @ryantilton.

ziondef commented 2 years ago

I downloaded the AppImage from Tutanota site and am running it that way with Desktop Integration enabled. 

jeffwills commented 2 years ago

Same here, app image has the issue.  On ubuntu 20. 

Apr 29, 2022, 09:11 by @.***:

I downloaded the AppImage from Tutanota site and am running it that way with Desktop Integration enabled.  V/R,

Derrek Arce @.***  Derrek Arce, CISSP-ISSAP/CCSP/CEH https://bizfluenceapp.com/profiles/derrek-arce |Bizfluence Encrypted email available upon request Sent with Tutanota https://tutanota.com, the secure & ad-free mailbox.

Apr 29, 2022, 11:02 by @.***:

We do use it, but I still can't reproduce it. Would be helpful if you could tell us how you installed the desktop app, > @ryantilton https://github.com/ryantilton> .

— Reply to this email directly, > view it on GitHub https://github.com/tutao/tutanota/issues/3727#issuecomment-1113480350> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AWIJ5UEYHCACEUE7KG47ELLVHQBYFANCNFSM5JWNF74Q> . You are receiving this because you commented.> Message ID: > <tutao/tutanota/issues/3727/1113480350> @> github> .> com>

— Reply to this email directly, > view it on GitHub https://github.com/tutao/tutanota/issues/3727#issuecomment-1113489474> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/ALOGBBCNYD65ERXPUEZCC23VHQC33ANCNFSM5JWNF74Q> . You are receiving this because you were mentioned.> Message ID: > <tutao/tutanota/issues/3727/1113489474> @> github> .> com>

charlag commented 2 years ago

Is anyone reporting it here using Flatpak by any chance? Edit: sorry, I see it's appImage now.

Do you have a log from when it crashes?

ziondef commented 2 years ago

I used Flatpak before and don't think it had any issue. I had to use the app image because it logged out after every session otherwise.

May 2, 2022, 02:31 by @.***:

Is anyone reporting it here using Flatpak by any chance?

— Reply to this email directly, > view it on GitHub https://github.com/tutao/tutanota/issues/3727#issuecomment-1114576691> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/AWIJ5UFR3MFE4GQW2TG3P23VH6AGTANCNFSM5JWNF74Q> . You are receiving this because you commented.> Message ID: > <tutao/tutanota/issues/3727/1114576691> @> github> .> com>

jeffwills commented 2 years ago

So I think it possibly has something to do with having a cups network printer... That is what is causing the tutanota app image to crash. I removed my network printer and was able to load the print dialog correctly without it crashing. Are you also using a network connected printer?

jeffwills commented 2 years ago

The syslog says "tutanota-desktop.desktop[8988]: Crashing due to FD ownership violation:"

jeffwills commented 2 years ago

https://giters.com/electron/electron/issues/31151

charlag commented 2 years ago

It's most likely an Electron bug, let's check after the update

EDessilly commented 2 years ago

Bonjour

Même problème sur Linux Mint 20.1 Cinnamon (4.8.6), noyau Linux: 5.4.0-121-generic.

Exécution de Tutanota à partir de tutanota-desktop-linux.AppImage. Permissions: Read and write dans le dossier Téléchargements.

Quand je clique sur "Imprimer", Tutanota se ferme imédiatemment (aucun message). Cela fonctionne sur Firefox.

Eric

charlag commented 1 year ago

Seems like Ubuntu-specific https://github.com/electron/electron/issues/31151#issuecomment-1252223661

vitoreiji commented 1 year ago

Another report from a user, not on Ubuntu, but on Linux Mint Debian Edition 5. The user is also using Cinnamon. It also happens when the user disables the network printer.

@ryantilton @ziondef Are you also using Cinnamon?

fstjohn commented 1 year ago

I have the problem on Linux Mint 20.3 Cinnamon. I have a USB connected printer and a network printer. As soon as Print is selected the app crashes with no error indication. I also have the web app set as a MS Edge app and it works perfectly re: printing

jeffwills commented 1 year ago

It has to do with the network printer. That is causing the crash.

Steve-Z commented 1 year ago

Same issue here. Pop!_OS 22.04 Desktop client 3.104.5 (AppImage)

fstjohn commented 1 year ago

So I think it possibly has something to do with having a cups network printer... That is what is causing the tutanota app image to crash. I removed my network printer and was able to load the print dialog correctly without it crashing. Are you also using a network connected printer?

I tried removing the network printer, using _"sudo systemctl disable --now cups-browsed.service", leaving just the USB connected printer. Same problem; crashes after displaying the print dialog for a fraction of a second. However, disconnecting from the network DOES work. So it matters not whether a network printer is present. Seemingly just the presence of a network connection is all that's needed to cause the problem.

fstjohn commented 1 year ago

I use Linux Mint 21.1, both Cinnamon (desktop) and Xfce (laptop). The print problem happens when using Cinnamon but not with Xfce, This problem has existed for almost a year through 20.3 and 21.1 versions of Mint. Since Cinnamon is my daily driver, I've been forced to use the web app exclusively.

HarlemSquirrel commented 10 months ago

Having this issue with Pop! OS. Before I updated and was on 3.118.12 I would get to the system print dialogue before the app froze but now after updating to 3.118.27 the app freezes before the print dialogue shows.

nullvoidptr commented 9 months ago

Using 3.118.30 on ubuntu 22.04. App crashes whenever I attempt to print with "Crashing due to FD ownership violation". Not happy to see this bug approaching two years without resolution.

charlag commented 9 months ago

We are also not happy to see it happening for so long tbh but at least people seem to have figured out what it is

DittyBopper commented 5 months ago

I've tested for the print problem on various versions of Linux Mint, both 21.2 and 21.3. I found the problem occurs on Mint Cinnamon and Mint Mate but not on Mint XFCE,. All OS's were loaded via Ventoy live .iso, as downloaded from the Mint website, with no updates or additional software other than the latest Tuta Appimage which was loaded from a separate USB flash drive. The crash occurs when print is selected from any post. The print dialog appears for anywhere between 1/2 second and 2 seconds and then the app closes with no error indications and with no selections made on the dialog.

My Officejet 4650 is connected to my desktop via USB, but the same printer is also a WIFI networked printer for other users on my home network. I found that turning off both Ethernet and WIFI on my desktop allows me to print both to the printer (via USB) and PDF file with no errors . Additionally, running with either Ethernet or WIFI but powering down the printer allows me to print to PDF with no problem. The problem exists whether my desktop is networked via either Ethernet or WIFI.

I also found that the problem does NOT occur when running the Flatpak Experimental version of TutaMail as an experiment, although this version has other problems so I've reverted to the official Appimage. If I have occasion to print or save a post to PDF I open the browser version of TutaMail (I use Waterfox) which works fine for the purpose.

My 'daily driver' is Optiplex 7010 running Mint Cinnamon 21.2 Victoria with Cinnamon 5.8.5 and Kernel 5.15.0-94-generic

I have not tested Ubuntu or any other Linux distro..

pappasadrian commented 3 months ago

I'm having the same issue here. This is on Ubuntu 23.10 (gnome). Tuta v229.240517.0 (but I've been having this same issue with previous versions as well)

Once the print dialogue opens, it hangs, and I get a "not responding" message.

Screenshot from 2024-05-29 12-36-00

My workaround is to log in to tuta via web, and print from there. It's not very often that I need to print (or print to file), but this is still not very viable.