Before submitting#
Area#
apps/desktop
Steps to reproduce#
- Run the Linux desktop AppImage (
t3code 0.0.46-nightly.20261009.2886) on GNOME/Wayland.
- Leave it open for a few hours with normal use (threads running, some idle time).
- Run
ls -la /tmp/.org.chromium.Chromium.* | wc -l and du -ch /tmp/.org.chromium.Chromium.* | tail -1.
Expected behavior#
The app keeps at most a few temporary files in /tmp and removes them when it no longer needs them.
Actual behavior#
The app writes a new 1024 x 1024 PNG of its own icon to /tmp/.org.chromium.Chromium.XXXXXX at a steady rate and never deletes it.
- Every file is about 1.4 MB. 399 of 400 sampled files are byte-identical to the app icon (
~/.local/share/icons/com.t3tools.T3Code.desktop.png, MD5 9c605a7c75c0b9b81f2d367210d7ff09).
- The rate was a constant ~116 files per hour (one about every 31 seconds), including overnight while the machine was idle.
- Over two days this produced 3,896 files and 5.2 GB: 1,616 files (2.2 GB) on Oct 8, 2,013 files (2.7 GB) on Oct 9.
- The gaps line up with app restarts. After the latest restart the rate dropped (19, 13 and 33 files per hour) and then stopped, so some app state seems to trigger it.
- The T3 Code processes and their children (
cloudflared, the resource monitor, provider CLIs) hold open file descriptors to some of these files.
On this machine /tmp is a tmpfs with a per-user quota, so the leak filled the quota and every program that writes to /tmp began failing with EDQUOT. That includes the provider CLIs running inside T3 Code, whose tool output was lost.
I could not pin down which call creates the files. Candidates I looked at: on Linux, applyNotificationBadge in apps/desktop/src/ipc/methods/notificationBadge.ts calls app.setBadgeCount, and Chromium's Linux notification bridge writes notification icons to .org.chromium.Chromium.* temp files. A repeated badge or notification update every ~31 seconds with the app icon would match the pattern.
Impact#
Major degradation or frequent failure
Version or commit#
t3code 0.0.46-nightly.20261009.2886 (AppImage), Electron 44.4.5, Chrome 152.0.7977.130
Environment#
Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, GNOME on Wayland. /tmp is tmpfs (7.5 GB) with usrquota.
Logs or stack traces#
$ file /tmp/.org.chromium.Chromium.oQhApc
/tmp/.org.chromium.Chromium.oQhApc: PNG image data, 1024 x 1024, 8-bit/color RGBA, non-interlaced
00 116 01 116 02 115 03 116 04 116 05 116 06 116 07 116 08 115 09 108 10 110 11 99
13 1 15 23 16 110 17 114 18 110 19 116 20 115 21 19 22 13 23 33
Workaround#
Delete old copies periodically, for example from an hourly user timer:
find /tmp -maxdepth 1 -user "$USER" -name '.org.chromium.Chromium.*' -type f -mmin +60 -delete
Update: I found the trigger, and it is partly on my side. Correcting the report so nobody chases a timer that does not exist.
The steady ~31 second cadence came from a systemd user service on my machine that launches the Nightly AppImage with
Restart=alwaysandRestartSec=30. A T3 Code instance started from the GNOME desktop entry was already running and held the ElectronSingletonLock. So every 30 seconds the service started a second instance, which handed over to the first one and exited within about a second. The unit's restart counter stood at 4,852.Each of those second instances wrote one
/tmp/.org.chromium.Chromium.XXXXXXcopy of the app icon and left it behind. The timestamps match the restarts exactly:After I changed the launcher to wait while another instance holds the lock, the service stayed up and no new icon file appeared.
So the remaining bug is narrower: every launch of a second instance on Linux leaves one 1.4 MB icon PNG in
/tmpand never deletes it. In normal use that means one file per click on the app icon while T3 Code is already open, plus one per launch by any autostart or keep-alive wrapper. It grows without bound, and on a tmpfs with a per-user quota it eventually breaks every program that writes to/tmp. I have updated the title. Severity is lower than I first reported.Repro: with T3 Code already running, run the AppImage again (
./T3-Code-Nightly.AppImage) and comparels /tmp/.org.chromium.Chromium.* | wc -lbefore and after. Each run adds one file.