Skip to content

[stable-4.0] Prevent crash on wake (Ticket#96101255)#10292

Merged
mgallien merged 1 commit into
stable-4.0from
backport/10290/stable-4.0
Jul 2, 2026
Merged

[stable-4.0] Prevent crash on wake (Ticket#96101255)#10292
mgallien merged 1 commit into
stable-4.0from
backport/10290/stable-4.0

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 2, 2026

Copy link
Copy Markdown

Backport of PR #10290

The tray window loads avatars and file previews over the network. When
the Mac wakes from sleep, the client resets the account's network manager,
which threw away the in-flight image download. The image-loading thread
then tried to read that already-deleted download and crashed.
Keep the network manager alive until the image request finishes, and clean
up the download afterwards, so nothing is read after it's gone.
Fixes the SIGSEGV in AsyncImageResponse::processNetworkReply reported on
33.0.7 (crash ~5s after wake from sleep).

Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@backportbot backportbot Bot requested a review from Aiiaiiio as a code owner July 2, 2026 14:56
@backportbot backportbot Bot requested a review from i2h3 July 2, 2026 14:56
@backportbot backportbot Bot added bug os: 🍎 macOS Apple macOS, formerly also known as OS X feature: ☁️ GUI System tray icon and menu. 3. to review labels Jul 2, 2026
@backportbot backportbot Bot added this to the 4.0.11 milestone Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10292.zip

Digest: sha256:55d93439ea6ac5db29c25f4f3f0a946cc17fb86dd66e0cc67718782832c39f14

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit ab39086 into stable-4.0 Jul 2, 2026
15 checks passed
@mgallien mgallien deleted the backport/10290/stable-4.0 branch July 2, 2026 15:42
@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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

Labels

3. to review bug feature: ☁️ GUI System tray icon and menu. os: 🍎 macOS Apple macOS, formerly also known as OS X

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants