Emoji picker (add reaction): emoji flicker in and out and the category rail jumps #619

Open
opened 2026-11-15 09:04:38 +00:00 by charles · 1 comment
Owner

Report (Charles, 2026-11-15, presumably on nightly 2026.1115.307). "reactions preview has all of the icons (or almost all) flickering like crazy and make the left bar freak out". His screenshot shows the emoji picker opened to add a reaction (the expression picker: category rail on the left, "Frequently used" and a community's emoji section in the grid).

What the screenshot shows (one frozen frame).

  • Many grid cells are empty at that instant: in "Frequently used" only 5 of the first two rows' cells are drawn, with gaps between them; the community section's first row has its first three cells empty; a later row has only two emoji with gaps. Cells that are drawn include static custom emoji, animated custom emoji and unicode emoji, so it is not one kind.
  • Below the last full row the grid is cut off by a black band, with the top of another emoji peeking out under it.
  • The left bar that "freaks out" is the picker's category rail.

Suspects (not reproduced yet).

  • Image churn: the picker asks for more images than the image cache / media::wanted set keeps, so entries are evicted and re-requested every frame (drawn, dropped, drawn). PR #540 (#535, nightly 297) added wanted_animated URLs to media::wanted for quick reactions — check whether it changed the wanted set, its ordering or its cap for the picker; a still and an animated variant of the same emoji replacing each other each frame would look exactly like this.
  • The rail: its highlighted category follows the grid's scroll position / section offsets; if cells or rows change height as images come and go (or virtualised rows are re-measured each frame), the section offsets move and the highlight and the rail's scroll jump. The black band suggests the grid's content height or the virtualised window is wrong at that instant.
  • PR #608 (#594, nightly 307) changed hover handling in the shared menu widget; check whether the picker is affected (it is opened from the message menu / hover bar).

To do. Reproduce headlessly with a picker holding 60+ custom emoji (static and animated) plus frequently used: step frames with the cursor still and record, per frame, which cells draw an image, the wanted set, cache evictions, the rail's active category and scroll offset. Nothing may change frame to frame except animation frames advancing. Bisect between nightlies 291, 297, 304, 307.

**Report (Charles, 2026-11-15, presumably on nightly 2026.1115.307).** "reactions preview has all of the icons (or almost all) flickering like crazy and make the left bar freak out". His screenshot shows the **emoji picker opened to add a reaction** (the expression picker: category rail on the left, "Frequently used" and a community's emoji section in the grid). **What the screenshot shows (one frozen frame).** - Many grid cells are empty at that instant: in "Frequently used" only 5 of the first two rows' cells are drawn, with gaps between them; the community section's first row has its first three cells empty; a later row has only two emoji with gaps. Cells that are drawn include static custom emoji, animated custom emoji and unicode emoji, so it is not one kind. - Below the last full row the grid is cut off by a black band, with the top of another emoji peeking out under it. - The left bar that "freaks out" is the picker's category rail. **Suspects (not reproduced yet).** - Image churn: the picker asks for more images than the image cache / `media::wanted` set keeps, so entries are evicted and re-requested every frame (drawn, dropped, drawn). PR #540 (#535, nightly 297) added `wanted_animated` URLs to `media::wanted` for quick reactions — check whether it changed the wanted set, its ordering or its cap for the picker; a still and an animated variant of the same emoji replacing each other each frame would look exactly like this. - The rail: its highlighted category follows the grid's scroll position / section offsets; if cells or rows change height as images come and go (or virtualised rows are re-measured each frame), the section offsets move and the highlight and the rail's scroll jump. The black band suggests the grid's content height or the virtualised window is wrong at that instant. - PR #608 (#594, nightly 307) changed hover handling in the shared menu widget; check whether the picker is affected (it is opened from the message menu / hover bar). **To do.** Reproduce headlessly with a picker holding 60+ custom emoji (static and animated) plus frequently used: step frames with the cursor still and record, per frame, which cells draw an image, the wanted set, cache evictions, the rail's active category and scroll offset. Nothing may change frame to frame except animation frames advancing. Bisect between nightlies 291, 297, 304, 307.
charles changed title from Hover bar quick reactions flicker and disturb the left bar to Emoji picker (add reaction): emoji flicker in and out and the category rail jumps 2026-11-15 09:04:56 +00:00
Author
Owner

Reproduced and fixed in #625 (not merged).

Cause. The picker started animating its animated custom emoji in nightly 291 (292a6706). Its cells asked for them at the 240 px rung, which comes to about 9 MiB for a 40-frame emoji. A screen of animated emoji wanted several times the image store's 96 MiB. Each new picture evicted others that were on screen, including the community and rail icons. The next hover, scroll or snapshot asked for those again, and so on with no end. In a headless reproduction of the reaction picker (a community of 72 emoji, half animated), 156 of the 166 wanted pictures were missing and reloaded on every frame.

Bisect. Nightly 290 is fine. 291, 297, 304 and 307 all show it. #540 and #608 are not the cause.

Fix. Picker emoji are now requested at 48 px, as in the web picker (15 MiB for the same screen). The image store also never evicts a picture that is in view.

Not reproduced headlessly: the black band across the grid. It is likely the same churn showing up on the GPU, so please check it on the next nightly.

Reproduced and fixed in #625 (not merged). **Cause.** The picker started animating its animated custom emoji in nightly 291 (292a6706). Its cells asked for them at the 240 px rung, which comes to about 9 MiB for a 40-frame emoji. A screen of animated emoji wanted several times the image store's 96 MiB. Each new picture evicted others that were on screen, including the community and rail icons. The next hover, scroll or snapshot asked for those again, and so on with no end. In a headless reproduction of the reaction picker (a community of 72 emoji, half animated), 156 of the 166 wanted pictures were missing and reloaded on every frame. **Bisect.** Nightly 290 is fine. 291, 297, 304 and 307 all show it. #540 and #608 are not the cause. **Fix.** Picker emoji are now requested at 48 px, as in the web picker (15 MiB for the same screen). The image store also never evicts a picture that is in view. **Not reproduced headlessly:** the black band across the grid. It is likely the same churn showing up on the GPU, so please check it on the next nightly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#619
No description provided.