Some App tests leave closed windows alive after GC
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Follow-up from #540 / #636.
While measuring #540 (full App run on Linux, f80ecb74, before #636, with my measuring hooks: a GC every 30 s and a count of live windows), windows that tests had already closed were still alive after a GC:
- Up to 44 closed windows were still alive after a GC; at 4620 s, 44 of the 49 live windows had already been closed. Windows alive after a GC, open ones included, peaked at 62.
- The working set rose from 345 MB to about 760 MB in the first ~21 min, then stayed between 742 and 929 MB until the end.
- Run on their own 40 times, the main window and the close dialog were released after GC, so it isn't those two by themselves. I don't know yet which tests leave windows behind.
Since #636 this no longer costs much time, but the windows still hold memory, and it is worth knowing whether the app itself can keep a closed window alive.
What I'd do:
- Find the tests: after each test, run a GC and record which closed windows are still alive, over a full App run.
- Find what holds them: for those tests, check what keeps the window reachable (an event subscription, a service or view model, a test helper).
- Report before fixing: post the results here first, including whether the same thing can happen in the app or only in the tests, and then decide the fix.
- Ngôn ngữ chính
- C#
- Star
- 3.6k
- Fork
- 192
- Merge trung bình
- 7 giờ 20 phút
- Pull request đã merge (30 ngày)
- 320
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của KnifeLemon/Filee
-
[Format]: .embĐang mởformats
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
KnifeLemon/Filee#770 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Format]: .xdfĐang mởformats
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
KnifeLemon/Filee#769 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Format]: .lstĐang mởformats
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
KnifeLemon/Filee#767 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: H266Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
KnifeLemon/Filee#756 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: Make the filee command easier for scripts and AI agents to driveCó thể đã có người làm @SeoJCalive đã nhận hôm nay. Đang mởenhancement
KnifeLemon/Filee#753 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của KnifeLemon/Filee
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 89/100
getsentry/sentry-dotnet#5833 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: core priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
RicoSuter/Namotion.Interceptor#863 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bitfoundation/bitplatform#14428 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày