Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916308 - mail-client/thunderbird-bin freezes when typing a message
Summary: mail-client/thunderbird-bin freezes when typing a message
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-26 18:07 UTC by yves.caniou
Modified: 2024-02-21 13:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb backtrace (gdb.txt,3.59 KB, text/plain)
2023-10-27 21:36 UTC, Enne Eziarc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yves.caniou 2023-10-26 18:07:51 UTC
Hi,

Since several updates now, thunderbird-bin freezes every day, at least once, when I compose a new message. Some times I can copy/paste to a new thunderbird compose window after a "killall thunderbird-bin", and a few times, I have to take a screenshot. Any new update didn't correct this bug.

# emerge --info
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.37-r7, 4.19.296-x86_64 x86_64)
=================================================================
System uname: Linux-4.19.296-x86_64-x86_64-Intel-R-_Pentium-R-_CPU_G2030_@_3.00GHz-with-glibc2.37
KiB Mem:    16356912 total,   6165444 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Thu, 26 Oct 2023 10:00:01 +0000
Head commit of repository gentoo: 9190ac39bf0347a2eea818cbea7590b1160133ba
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

MyLocalOverlay
    location: /var/db/repos/MyLocalOverlay
    masters: gentoo
    volatile: False

crossdev-armv7a
    location: /var/db/repos/localrepo-crossdev-armv7a
    masters: gentoo
    priority: 10
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=ivybridge -mno-avx -mno-aes -mno-rdrnd -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=ivybridge -mno-avx -mno-aes -mno-rdrnd -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=ivybridge -mno-avx -mno-aes -mno-rdrnd -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=ivybridge -mno-avx -mno-aes -mno-rdrnd -O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 anthy bash-completion berkdb branding bzip2 cairo cdda cdr cli cpudetection crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif fbcon ffmpeg flac fortran gdbm gif gpm gtk gui h224 h281 h323 ibus iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg mpi multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sip sound spell split-usr srtp ssl startup-notification svg tcpd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Enne Eziarc 2023-10-26 20:23:14 UTC
I wonder if this is the same problem I've had in Firefox for a few months now, where the entire browser will freeze sometimes while typing in a textarea. Usually the window is completely unresponsive and I have to kill it, sometimes it can be closed normally (even though it already stopped redrawing at that point).

I haven't been able to narrow down the cause beyond "an editable textarea is in focus" but I'm beginning to suspect it may be related to ibus.
Comment 2 Joonas Niilola gentoo-dev 2023-10-27 07:46:51 UTC
Hmm no immediate ideas either. I wonder if you're using wayland and/or nvidia? 

https://bugzilla.mozilla.org/show_bug.cgi?id=1843541 this is probably the closest upstream bug I found (there are some more with "wayland freeze"), but unfortunately no solution yet.
Comment 3 Enne Eziarc 2023-10-27 08:07:55 UTC
(In reply to Joonas Niilola from comment #2)
> Hmm no immediate ideas either. I wonder if you're using wayland and/or
> nvidia? 

Oh, I'm the total opposite of that. My desktop's been plain old boring OpenBox(+picom) for as long as I can remember and I'm using amdgpu.

Have only been using ibus for a few years, but these problems are localised to Mozilla software and began much more recently. The age of the upstream bug does seem to be in the ballpark of when this started happening, I'll see if I can remember to gdb it next time it happens.
Comment 4 yves.caniou 2023-10-27 11:57:53 UTC
(In reply to Enne Eziarc from comment #1)
> I wonder if this is the same problem I've had in Firefox for a few months
> now, where the entire browser will freeze sometimes while typing in a
> textarea. Usually the window is completely unresponsive and I have to kill
> it, sometimes it can be closed normally (even though it already stopped
> redrawing at that point).
> 
> I haven't been able to narrow down the cause beyond "an editable textarea is
> in focus" but I'm beginning to suspect it may be related to ibus.

It actually happened while responding to this very message 5min ago.
I had to kill firefox.
Comment 5 Joonas Niilola gentoo-dev 2023-10-27 17:37:21 UTC
For Firefox issues, are there differences with 115esr and 119rapid?

https://bugzilla.mozilla.org/show_bug.cgi?id=1861615 might hopefully resolve it, if related.
Comment 6 yves.caniou 2023-10-27 18:33:17 UTC
(In reply to Joonas Niilola from comment #5)
> For Firefox issues, are there differences with 115esr and 119rapid?
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=1861615 might hopefully resolve
> it, if related.

firefox-bin, 119.0-r1, is installed (rapid).
I haven't tried 115.4.0.
Since the bug doesn't happen that often in the case of firefox, unsure if I'll be able to see something soon unfortunately.
But the issue doesn't say anything about previous affected versions. And I already had firefox freeze, from time to time (yet can't remember details when, etc.)
Comment 7 Enne Eziarc 2023-10-27 21:36:10 UTC
Created attachment 873559 [details]
gdb backtrace

Got a GDB dump of the top level process freezing just now. There's a few missing symbols, but it has enough in common with the upstream bug to confirm this is in fact the same thing.

I notice the root of the backtrace isn't ibus itself, but GLib. Given the timing of all this, could it be fallout from when GLib decided earlier this year to break everything downstream of them?
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-28 00:31:37 UTC
Which versions of dev-libs/glib and app-i18n/ibus do you each have?
Comment 9 Enne Eziarc 2023-10-28 02:51:36 UTC
(In reply to Sam James from comment #8)

I've got app-i18n/ibus-1.5.28-r1 and dev-libs/glib-2.76.4.

Most of my system is ~arch *except* for glib, iirc because I'd previously dropped to stable after 2.76.0 happened.
Comment 10 yves.caniou 2023-10-28 06:45:15 UTC
(In reply to Sam James from comment #8)
> Which versions of dev-libs/glib and app-i18n/ibus do you each have?

dev-libs/glib 2.76.4
and app-i18n/ibus 1.5.27
Comment 11 Enne Eziarc 2023-11-21 20:28:09 UTC
According to that upstream bug this should have been fixed in Firefox 120.0 which is out now.

Since it's basically impossible to reproduce on command, only time will tell, but I'm hopeful.
Comment 12 Enne Eziarc 2023-12-04 21:39:50 UTC
(In reply to Enne Eziarc from comment #11)
> According to that upstream bug this should have been fixed in Firefox 120.0
> which is out now.

Unfortunately, it's happened a few times since then. The last thing I can think to try at this point is to resume using ~arch dev-libs/glib - I should be safe now that bug 901805 has calmed down a bit. If that fixes it I'll try to remember to report back in, say, 2 weeks. Fingers crossed...
Comment 13 yves.caniou 2023-12-05 20:36:42 UTC
Still present in 115.5.1, happened a few minutes ago.
Comment 14 yves.caniou 2024-01-12 17:01:57 UTC
(In reply to yves.caniou from comment #13)
> Still present in 115.5.1, happened a few minutes ago.

And still present in 115.6.1.
Comment 15 Enne Eziarc 2024-02-18 06:13:52 UTC
Belated ping: with current versions (firefox-122.0, ibus-1.5.29, glib-2.78.4-r1), I haven't been seeing this hang at all in the last few weeks. Can't speak for thunderbird users, but it feels like one variant of the problem has gone away at least.
Comment 16 yves.caniou 2024-02-18 14:44:52 UTC
(In reply to Enne Eziarc from comment #15)
> Belated ping: with current versions (firefox-122.0, ibus-1.5.29,
> glib-2.78.4-r1), I haven't been seeing this hang at all in the last few
> weeks. Can't speak for thunderbird users, but it feels like one variant of
> the problem has gone away at least.

mail-client/thunderbird-bin 115.7.0 did it again some minutes ago: it seems related to saving the mail currently written in the draft folder. After, keypresses were not taken into account, or after some moment, and Thunderbird can still be accessed with the mouse, but retained keypresses can then launch some action since the focus is not in the redaction window.
Comment 17 yves.caniou 2024-02-21 13:13:36 UTC
(In reply to Enne Eziarc from comment #15)
> Belated ping: with current versions (firefox-122.0, ibus-1.5.29,
> glib-2.78.4-r1), I haven't been seeing this hang at all in the last few
> weeks. Can't speak for thunderbird users, but it feels like one variant of
> the problem has gone away at least.

Firefox-bin 123.0 just freezed while filling a field in a framadate similar apps. :/