Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

claws-mail window doesn't paint / is unresponsive with "fancy" plugin #6377

Closed
5 of 7 tasks
Dieterbe opened this issue Jun 11, 2024 · 6 comments · Fixed by #6383
Closed
5 of 7 tasks

claws-mail window doesn't paint / is unresponsive with "fancy" plugin #6377

Dieterbe opened this issue Jun 11, 2024 · 6 comments · Fixed by #6383

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Jun 11, 2024

Description

Today I did some maintenance on my laptop, involving:

  • upgrading claws-mail from 4.2.0-1 -> 4.3.0-1
  • upgrading firejail 0.9.72-3 to firejail-git (from AUR, 0.9.72.r1051.g42bdb7880-1)
    (✨ ✨ I use Arch, btw ✨ ✨)

All my apps etc seem to work fine still, except for claws-mail.
the app starts, but the window doesn't render properly (my window manager is i3). if claws-mail starts in a different workspace, then switching to it, doesn't show anything.
if i start claws-mail in the same workspace, you can see the rendered application, however it does not respond to any mouse clicks, like it is stuck / frozen. the mouse cursor keeps spinning

Steps to Reproduce

I don't use any custom config for claws-mail (that i know of). my /etc/firejail/claws-mail.profile is identical to the file found in the current latest firejail git.

[root@xps17 ~]# grep -Ri claws /home/dieter/.config/firejail/
[root@xps17 ~]# 
[root@xps17 ~]# find /home/dieter/.config/firejail/ | grep claws
[root@xps17 ~]# 
[root@xps17 ~]# locate globals.local
[root@xps17 ~]# 
  • LC_ALL=C firejail claws-mail triggers the problem (confirmed with both claws 4.2 and 4.3)
  • LC_ALL=C firejail --noprofile /usr/bin/claws-mail does not have the problem. the app works fine (confirmed with both claws 4.2 and 4.3)

Here is the output of all 4 cases: https://gist.github.com/Dieterbe/04485d729c6d8fa31e3b61ef6dac4707

Expected behavior

claws-mail renders, and responds to interactivity, i can use the app

Actual behavior

app doesn't render / freezes

Environment

  • ✨ ✨ I use Arch, btw ✨ ✨
  • firejail from git 42bdb78
firejail --version
firejail version 0.9.73

Compile time support:
	- always force nonewprivs support is disabled
	- AppArmor support is enabled
	- AppImage support is enabled
	- chroot support is enabled
	- D-BUS proxy support is enabled
	- file transfer support is enabled
	- IDS support is disabled
	- Landlock support is enabled
	- networking support is enabled
	- output logging is enabled
	- overlayfs support is disabled
	- private-home support is enabled
	- private-lib support is disabled
	- private-cache and tmpfs as user enabled
	- SELinux support is disabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

see link above

@kmk3
Copy link
Collaborator

kmk3 commented Jun 11, 2024

It's hard to tell what the issue is from the logs.

I'd try commenting lines in claws-mail.profile until it works to narrow it
down.

@glitsj16
Copy link
Collaborator

Side note

https://gist.github.com/Dieterbe/04485d729c6d8fa31e3b61ef6dac4707#file-claws-4-2-0-1-via-firejail-txt-L27
https://gist.github.com/Dieterbe/04485d729c6d8fa31e3b61ef6dac4707#file-claws-4-3-0-1-via-firejail-txt-L27

Whenever you see this warning, it's a reminder to always use absolute paths. Firecfg places the symlinks in /usr/local/bin and that has precedence. I'm pretty sure this isn't related to your current issue. Still good practice though, so you're absolutely sure Firejail doesn't try to run the sandbox twice.

@glitsj16
Copy link
Collaborator

Some things to try:

  • temporarily downgrade to claws-mail 4.2.0-1 and run that without firejail (just to rule out it's something CM-related, which isn't clear if you've tried that yet)
  • check the comment in /etc/firejail/claws-mail.profile about allowing python (and test that in a claws-mail.local)
  • use CM's --debug flag to get a more verbose log from the app

HTH

@glitsj16
Copy link
Collaborator

Experienced intermittent ISP networking troubles during IRC communication with @Dieterbe. Issue still unresolved after checking CM configuration/mail storage paths and whitelisting ~/.cache/claws-mail. Issue is still unresolved.

I'd try commenting lines in claws-mail.profile until it works to narrow it down.

@kmk3 kmk3 added the needinfo More information is needed from the issue author label Jun 12, 2024
kmk3 pushed a commit to Dieterbe/firejail that referenced this issue Jun 14, 2024
@kmk3
Copy link
Collaborator

kmk3 commented Jun 14, 2024

@Dieterbe

Please consider reporting this issue to the plugin developers as well.

I'm not familiar with the plugin, but I'd expect html rendering in general to
work without needing hardware acceleration.

@kmk3 kmk3 changed the title claws-mail window doesn't paint / unresponsive claws-mail window doesn't paint / is unresponsive with "fancy" plugin Jun 14, 2024
@Dieterbe
Copy link
Contributor Author

they don't use github. i can't be bothered to sign up to their mailing list or bug tracker. if someone else wants to do that, feel free.

kmk3 pushed a commit to glitsj16/firejail that referenced this issue Jun 26, 2024
It is apparently used by the (widely used) "Fancy" plugin, which
"Renders HTML e-mail using the WebKit library".

https://www.claws-mail.org/plugins.php

Relates to netblue30#6377.

Note: etc/profile-a-l/email-common.profile contains `private-cache`.
kmk3 pushed a commit to glitsj16/firejail that referenced this issue Jun 26, 2024
It is apparently used by the (widely used) "Fancy" plugin, which
"Renders HTML e-mail using the WebKit library".

https://www.claws-mail.org/plugins.php

Relates to netblue30#6377.

Note: etc/profile-a-l/email-common.profile contains `private-cache`.
glitsj16 added a commit that referenced this issue Jun 27, 2024
It is apparently used by the (widely used) "Fancy" plugin, which
"Renders HTML e-mail using the WebKit library".

https://www.claws-mail.org/plugins.php

Relates to #6377.

Note: etc/profile-a-l/email-common.profile contains `private-cache`.
@kmk3 kmk3 removed the needinfo More information is needed from the issue author label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants