Skip to content

frontend: Keep logs and crash reports local, no obsproject.com uploads - #1735

Merged
zackees merged 3 commits into
masterfrom
fix/1731-no-upstream-uploads
Oct 22, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/1731-no-upstream-uploads

Conversation

@zackees

@zackees zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member

Fixes #1731

obs-rust runs no log upload service, so OBS-Studio-Rust no longer sends anything to obsproject.com.

  • Crash handler: crashUploadURL and the upload code are gone. The crash prompt's checkbox now says "Open the crash report's folder". The prompt says the report was saved locally and asks the user to attach it to a new issue at https://github.com/obs-rust/obs-studio/issues/new/choose. Choosing it opens the crash log folder, and the dialog shows the file path.
  • Help > Log Files > Upload Current/Last Log: no POST. Clicking it opens the log folder, and the dialog shows the log file path with a Copy File Path button and the same issue-page pointer. The button reads "Show Log File".
  • Analyze: the button is hidden and openAnalyzeURL is removed.
  • New strings were added to en-US.ini only. The features-ledger line is under Platforms and packages.

RED 75cc636: the new ci/test_no_upstream_uploads.py fails on master and lists 3 hits: CrashHandler.cpp.hpp:27, OBSBasic_MainControls.cpp.hpp:266 and LogUploadDialog.cpp.hpp:135.
GREEN: the test passes, and ./lint passes.

The frontend was not compiled locally. This PR relies on PR CI's Qt lane for that. Tiers 1-4 do not apply because this is frontend UI with no libobs change.

@zackees
zackees enabled auto-merge October 22, 2026 06:11
)

CrashHandler.cpp also builds into test_crash_log_upload against a stub
OBSApp with QtCore only, which has no openCrashLogDirectory(). Keep
CrashHandler GUI-free: it reports the local path and OBSApp's handler
for crashLogUploadFinished opens the folder.
@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Fixed the Qt Frontend Linux failure (test_crash_log_upload: 'class OBSApp' has no member named 'openCrashLogDirectory').

Root cause: test_crash_log_upload compiles the real frontend/utility/CrashHandler.cpp against its own QtCore-only stub of OBSApp (test/cmocka/crash-handler-stubs/OBSApp.hpp). This PR made CrashHandler::uploadCrashLogToServer() call App()->openCrashLogDirectory(), which the stub does not declare. QDesktopServices from inside CrashHandler would not work either, because the test links only Qt6::Core.

Fix (production code only): CrashHandler stays free of GUI calls. It checks that the crash log exists and emits crashLogUploadFinished(<local path>). OBSApp's existing handler for that signal (in OBSInit) now calls openCrashLogDirectory() before forwarding logUploadFinished. Users see the same behaviour as before this fix.

Test: unchanged. Its only assertion covers the no-crash-log path (no started or finished signal, exactly one failure with LogUploadDialog.Errors.NoLogFile). That still holds and does not encode uploading, so there was no reason to edit it.

Also rebased onto current master. ./lint passes. I did not run a local Qt build (no prebuilt Qt/FFmpeg prefix on this host), so CI's Qt lane is the check.

@zackees
zackees force-pushed the fix/1731-no-upstream-uploads branch from 463ab07 to 208b348 Compare October 22, 2026 06:46
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit 8c69615 Oct 22, 2026
24 checks passed
@zackees
zackees deleted the fix/1731-no-upstream-uploads branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: frontend: crash reports and log uploads go to upstream OBS Studio's servers

1 participant