Skip to content

Bug: Application crashes on Mac after reading a notification and minimizing window #2451

@zoc

Description

@zoc

Environment:

  • OS: macOS Tahoe 26.4 (25E246)
  • IceCubesApp version: 2.1.3

Description

IceCubes crashes each time I get and read a new notification, after I minimize the application window. Steps to reproduce:

  1. Go to Chronology view
  2. Wait until a new notification appears
  3. Switch to Notifications view
  4. Switch back to Chronology view
  5. Minimize application window
  6. App crashes after a few seconds.

I cloned the repo and ran the app in Xcode, and it seems to be related to a missing SceneDelegate instance in a view's environment: "SwiftUICore/Environment+Objects.swift:34: Fatal error: No Observable object of type SceneDelegate found. A View.environmentObject(_:) for SceneDelegate may be missing as an ancestor of this view."

Asked Claude to suggest a fix but to be honest my experience in swift/swiftUI is close to zero, So I would prefer someone with better understanding of the tech stack and code base to have a look at it.

I can provide the crash dump if needed.

Related Issues

  • Search that this bugs don't already exist before creating it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions