Skip to content

GUI test on Windows flaked: QLabel already deleted after a step-index mode solve #791

Open

Description

@jtravs

gui tests on Windows: test_a_step_index_fibre_solves_its_mode_for_its_numbers failed once (PR #778) with

RuntimeError: Internal C++ object (PySide6.QtWidgets.QLabel) already deleted.

and passed on the re-run of the same commit. A Python reference outlived the widget that Qt deleted, which points at teardown order or a deferred delete (deleteLater) racing a late update from the mode-solve result.

To do if it recurs: find which label is touched after its window closes, and either drop the late update when the widget is gone or hold the result callback on the window's lifetime.

Activity

  1. added
    testingTests, test tiers and CI coverage
    area: guiThe desktop front end (gui/, solprop-gui)
    on Nov 13, 2026
  2. jtravs commented on Nov 13, 2026

    @jtravs
    ContributorAuthor

    Two more occurrences of the same Windows GUI flake (RuntimeError: libshiboken: Internal C++ object (PySide6.QtWidgets.QLabel) already deleted) on unrelated branches, 2026-11-13:

  3. jtravs commented on Nov 13, 2026

    @jtravs
    ContributorAuthor

    Picked up by the issue-fixing session (branch test/gui-flake-791).

  4. jtravs commented on Nov 13, 2026

    @jtravs
    ContributorAuthor

    Recurred twice on #802 (run 43465770775, Windows GUI job): test_a_graded_index_fibre_shows_its_profile_and_its_modes, then on re-run test_a_solid_core_fibre_runs_and_every_page_reads_it, both RuntimeError: libshiboken: Internal C++ object (PySide6.QtWidgets.QLabel) already deleted. The PR changes no GUI code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: guiThe desktop front end (gui/, solprop-gui)priority: lowWorth doing, no hurrytestingTests, test tiers and CI coverage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions