bitstadium / HockeySDK-iOS

HockeyApp was retired and the SDKs are deprecated. Please use App Center instead.
https://github.com/microsoft/appcenter-sdk-apple
Other
597 stars 268 forks source link

HockeyApp freezes app after background/resume #492

Closed phoney closed 6 years ago

phoney commented 6 years ago

I updated to v 5.1.0 today and my app now freezes upon background/resume. This didn't happen with 5.0.0 and I've had to go back to that version. All I do is launch the app, tap the home button, tap the app icon in the home screen. The app resumes but the UI is frozen. Clicking the Pause button in Xcode shows the stack trace below. I think this happens every time on various devices. This looks like a deadlock.

The stack trace shows BT code. I don't have an example app but there's very little BT code in my app. Here it is:

Called from my app delegate at app launch: BITHockeyManager.shared().configure(withIdentifier: HockeyAppIdentifier) BITHockeyManager.shared().start() BITHockeyManager.shared().crashManager.crashManagerStatus = .autoSend BITHockeyManager.shared().authenticator.authenticateInstallation()

Called to send custom events:

var timeDiff: TimeInterval = some number of seconds BITHockeyManager.shared().metricsManager.trackEvent(withName: eventName, properties: nil, measurements: [timeDifferenceKey : timeDiff as NSNumber])

The stack trace shows

[BITCHannel timerIsRunning] [BITChannel registerObservers]

screen shot 2017-12-13 at 2 46 51 pm

ElektrojungeAtWork commented 6 years ago

Hey @phoney,

we just repro'd this. Many apologies from our side. I'll let you know as soon as we have a fix ready.

Best, Benjamin

ElektrojungeAtWork commented 6 years ago

There's a new release coming in later today!

ElektrojungeAtWork commented 6 years ago

5.1.1 is out and fixes this issue!