sillsdev / sillsdev/languageforge-lexbox

Intermittent "Timed out waiting for popstate event"

Open
#2,480 2 comments 0 reactions 1 assignee View on GitHub

@rmunn is already working on this.

Since Jul 24, 2026.

bug
Dominant language
C#
Stars
9
Forks
8
Avg merge
2d 13h
Merged PRs (30d)
49

Description

Describe the bug
While testing https://github.com/sillsdev/languageforge-lexbox/pull/2458 I once managed to trigger a race-condition bug. Did the same thing multiple times later and never reproduced it again. But this isn't the first time I've seen it happen. The symptom is that when opening or closing a dialog, sometimes a popup can show up with Error: Timed out waiting for popstate event after history change "BackHandler-picture-viewer-dialog". (The precise history change obviously depends on what you were doing at the time)

To Reproduce
Steps to reproduce the behavior:

  1. Go to an entry with a picture
  2. Click on the picture to see "fullscreen" view (not actually fullscreen if you're on desktop, it's limited to the picture's native resolution)
  3. Click on the three-dots menu
  4. Click on edit
  5. MOST of the time it works, sometimes you get "Timed out waiting for popstate event"

Expected behavior
Switching between two dialogs should always succeed without a race condition.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.