Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macCatalyst app: Sentry >= 8.11 hangs on launch #3293

Closed
gabors opened this issue Sep 19, 2023 · 8 comments
Closed

macCatalyst app: Sentry >= 8.11 hangs on launch #3293

gabors opened this issue Sep 19, 2023 · 8 comments

Comments

@gabors
Copy link
Contributor

gabors commented Sep 19, 2023

Platform

macOS

Installed

Swift Package Manager

Version

8.11

Steps to Reproduce

Create a UIKit macCatalyst app with Xcode 14 or Xcode 15.
Make sure Notifications are disabled for this app in macOS Settings.
Add Sentry Swift Package v 8.11 or 8.12. 8.10 still works fine.
Integrate Sentry to start on app launch.
Launch the app.

App hangs on launch.
image

`SentrySDK.start { options in
options.dsn = Configuration.sentry.dsn
options.environment = Configuration.sentry.env
options.releaseName = BuildInfo.current.version.description
options.maxBreadcrumbs = 128
options.attachStacktrace = true
options.enableSwizzling = false
options.enableNetworkTracking = false
options.enableAutoPerformanceTracing = false
options.enableCoreDataTracing = false
options.enableAppHangTracking = false
options.enableWatchdogTerminationTracking = false
options.enableCaptureFailedRequests = false
}

    if let user {
        let su = Sentry.User(userId: user.id.description)
        su.email = user.email
        su.username = user.displayName
        SentrySDK.setUser(su)
    }

    SentrySDK.configureScope { scope in
        scope.setTags(self.createSentryTags())
    }`

Expected Result

Expecting to launch

Actual Result

Hangs if Notifications are disabled.
If Notifications are enabled, app launches fine.

image

Are you willing to submit a PR?

Sure

@brustolin
Copy link
Contributor

Duplicate of #3277.
Please follow the other issue for updates.

@brustolin brustolin closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in Mobile & Cross Platform SDK Sep 20, 2023
@gabors
Copy link
Contributor Author

gabors commented Sep 20, 2023

@brustolin is there a workaround currently so we can use Sentry 8.11 and newer?

@gabors
Copy link
Contributor Author

gabors commented Sep 20, 2023

@brustolin I do not think this is necessarily the same issue as #3277
When I run the iOS target of my app, which shares the same code base as the macCatalyst app I do not get the app hanging on startup. App starts up just fine on iOS 17 sim with Sentry SDK 8.12

@brustolin
Copy link
Contributor

Hello @gabors,

Does the app hang for a while but eventually resume running, or does it freeze forever?
#3277 was an edge case that also doesn't happen all the time. Maybe this is why you haven't seen it happening on the device simulator.

In any case, I'll take another look at this one

@gabors
Copy link
Contributor Author

gabors commented Sep 21, 2023

Hello @gabors,

Does the app hang for a while but eventually resume running, or does it freeze forever?

#3277 was an edge case that also doesn't happen all the time. Maybe this is why you haven't seen it happening on the device simulator.

In any case, I'll take another look at this one

The catalyst app freezes every launch and does not eventually unfreeze. Just stays hanging.
Thanks for looking into this.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 21, 2023
@brustolin
Copy link
Contributor

Hello @gabors.
Can you update to the new SDK version 8.13.0 to see if the problem persist for you?

@gabors
Copy link
Contributor Author

gabors commented Sep 25, 2023

Hello @gabors.
Can you update to the new SDK version 8.13.0 to see if the problem persist for you?

Hi @brustolin Just tried 8.13 and so far so good! Mac Catalyst app no long hangs on launch!

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 25, 2023
@brustolin
Copy link
Contributor

Hi @brustolin Just tried 8.13 and so far so good! Mac Catalyst app no long hangs on launch!

Awesome. I will close this issue. Let me know if this happens again.

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

No branches or pull requests

2 participants