kean / PulsePro

A macOS app for viewing logs from Pulse
https://pulselogger.com
482 stars 24 forks source link

Crash (EXC_BAD_INSTRUCTION) in NetworkLogger initialization #4

Closed vox-humana closed 3 years ago

vox-humana commented 3 years ago

If I just follow the setup manual and create NetworkLogger using default constructor like in the manual let logger = NetworkLogger() I am getting crash with this error error:

Fatal error: Use of unimplemented initializer 'init()' for class 'PulseCore.NetworkLogger'

image

However, if I directly set default parameters (from https://github.com/kean/PulseUI/blob/master/Sources/Pulse/PersistentLogHandler.swift#L21): let logger = NetworkLogger(logger: NetworkLogger.makeDefaultLogger(), blobStore: .default) it doesn't crash.

Suspect some swift/objc issue :suspect:

Xcode 12.4 (also tested on 12.2) 0.9.4 and 0.9.5

kean commented 3 years ago

Thanks for the report, @vox-humana. Will take care of it this weekend, as well as some other issues.

kean commented 3 years ago

Fixed in 0.9.6