Skip to content

frontend: Handle stuck upload dialog for crash logs#13414

Open
rue08 wants to merge 1 commit into
obsproject:masterfrom
rue08:fix-stuck-crash-report-dialog
Open

frontend: Handle stuck upload dialog for crash logs#13414
rue08 wants to merge 1 commit into
obsproject:masterfrom
rue08:fix-stuck-crash-report-dialog

Conversation

@rue08
Copy link
Copy Markdown

@rue08 rue08 commented May 7, 2026

Description

When a crash log file was empty or unavailable for reading, CrashHandler::uploadCrashLogToServer() returned early without emitting a failure signal.
As a result, LogUploadDialog remained stuck in the loading state because neither the success nor failure path was triggered.
Emit crashLogUploadFailed() before returning when the crash log content is empty so the dialog transitions to the existing error state correctly.

Previous Dialog
Screenshot 2026-05-07 at 10 07 14 PM
Current Dialog
Screenshot 2026-05-07 at 10 08 07 PM

Motivation and Context

Fixes issue #13401.

When no valid crash log file was available, the upload dialog remained indefinitely in the loading state instead of transitioning to an error state.

How Has This Been Tested?

Tested on macOS using a locally built OBS instance.

Temporarily forced crashLogFileContent.empty() to reproduce the failure path and verified that the dialog correctly transitions to the existing error state instead of remaining stuck in the loading state.

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@rue08 rue08 changed the title frontend: Handle empty crash login update frontend: Handle empty crash log update May 7, 2026
@rue08 rue08 changed the title frontend: Handle empty crash log update frontend: Handle stuck upload dialog for crash logs May 7, 2026
Emit crashLogUploadFailed() when the crash log file is
empty or unavailable for reading.
Previously, uploadCrashLogToServer() returned early
without emitting a failure signal that lead to upload
dialog stuck in the loading state.
@rue08 rue08 force-pushed the fix-stuck-crash-report-dialog branch from 2f35fd9 to 8f224ca Compare May 7, 2026 21:38
@WizardCM WizardCM added the kind/bug Categorizes issue or PR as related to a bug. label May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants