mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 05:26:04 +03:00
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#934
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/1Remote/1Remote/pull/1003
Author: @Copilot
Created: 10/18/2025
Status: ✅ Merged
Merged: 10/18/2025
Merged by: @VShawn
Base:
main← Head:copilot/analyze-issue-924📝 Commits (5)
d6a9a81Initial planb75b18dFix GDI+ error crash on Windows 11 24H2 during window switching (#924)92bee36Add unit tests for GDI+ error handling71a8929Add comprehensive documentation for GDI+ error fix584bb92Delete ISSUE_924_FIX_DOCUMENTATION.md📊 Changes
2 files changed (+169 additions, -0 deletions)
View changed files
➕
Tests/Service/GdiErrorHandlingTests.cs(+128 -0)📝
Ui/Bootstrapper.cs(+41 -0)📄 Description
Problem
Users on Windows 11 24H2 were experiencing frequent application crashes with the following error:
The crashes occurred during:
Root Cause
This is a known transient error in
System.Windows.Forms.Integration.WinFormsAdapter(used for hosting WinForms controls like RDP in WPF). The error represents a race condition in the GDI+ rendering pipeline during rapid state changes, particularly common on Windows 11 24H2. The error is transient and doesn't indicate actual resource corruption - it's a timing issue where the graphics context becomes temporarily unavailable.Solution
Implemented intelligent error filtering in the global exception handler (
Bootstrapper.OnUnhandledException) to detect and gracefully suppress this specific transient error while preserving all other error reporting.The fix:
Detects the specific error pattern:
System.Runtime.InteropServices.ExternalException0x80004005(E_FAIL)Suppresses the error gracefully:
Preserves normal error handling:
Changes
IsTransientGdiError()method and updatedOnUnhandledException()to filter transient GDI+ errorsTesting
Impact
Fixes #924
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.