SwiftcordApp / Swiftcord

A fully native Discord client for macOS built 100% in Swift!
https://swiftcordapp.github.io/Swiftcord/
GNU General Public License v3.0
1.91k stars 85 forks source link

Fix SIGTRAP in SwiftyGif.SwiftyGifManager.startTimerIfNeeded() -> () #108

Closed cryptoAlgorithm closed 2 years ago

cryptoAlgorithm commented 2 years ago

Version 0.4.5(12)

Stacktrace

SwiftyGif.SwiftyGifManager.startTimerIfNeeded() -> () (SwiftyGifManager.swift:0);Swiftcord

SwiftyGif.SwiftyGifManager.addImageView(__C.NSImageView) -> Swift.Bool (SwiftyGifManager.swift:104);Swiftcord

(extension in SwiftyGif):_C.NSImageView.setGifImage(: __C.NSImage, manager: SwiftyGif.SwiftyGifManager, loopCount: Swift.Int) -> () (NSImageView+SwiftyGif.swift:80);Swiftcord

(extension in SwiftyGif):__C.NSImageView.(parseDownloadedGif in _E5EE4030BF9707461E2DD62C83815291)(url: Foundation.URL, data: Foundation.Data?, error: Swift.Error?, manager: SwiftyGif.SwiftyGifManager, loopCount: Swift.Int, levelOfIntegrity: Swift.Float) -> () (NSImageView+SwiftyGif.swift:187);Swiftcord

$sSo11NSImageViewC9SwiftyGifE03setD7FromURL_7manager9loopCount16levelOfIntegrity7session10showLoader06customP0So20NSURLSessionDataTaskCSg10Foundation0G0V_AC0cD7ManagerCSiSfSo0R0CSbSo6NSViewCSgtFyAN0S0VSg_So13NSURLResponseCSgs5Error_pSgtcfU_yyScMYccfU_TA (NSImageView+SwiftyGif.swift:126);Swiftcord

reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () (:0);Swiftcord

main (SwiftcordApp.swift:15);Swiftcord

Reason

SIGTRAP

Link to App Center

cryptoAlgorithm commented 2 years ago

0.4.5 is superseded by 0.5.1, which contains a fix for this.