Fix crash handler
This commit is contained in:
@@ -2,9 +2,11 @@ import Foundation
|
|||||||
import Libbox
|
import Libbox
|
||||||
import Library
|
import Library
|
||||||
|
|
||||||
|
LibboxPrepareCrashSignalHandlers()
|
||||||
NativeCrashReporter.installForCurrentProcess(
|
NativeCrashReporter.installForCurrentProcess(
|
||||||
basePath: URL(fileURLWithPath: WorkingDirectoryManager.helperNativeCrashBasePath, isDirectory: true)
|
basePath: URL(fileURLWithPath: WorkingDirectoryManager.helperNativeCrashBasePath, isDirectory: true)
|
||||||
)
|
)
|
||||||
|
LibboxReinstallCrashSignalHandlers()
|
||||||
|
|
||||||
let pendingCrashLogs = RootHelperService.readCrashLogFiles()
|
let pendingCrashLogs = RootHelperService.readCrashLogFiles()
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ open class ExtensionProvider: NEPacketTunnelProvider {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
override public init() {
|
override public init() {
|
||||||
|
LibboxPrepareCrashSignalHandlers()
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
if Variant.useSystemExtension {
|
if Variant.useSystemExtension {
|
||||||
NativeCrashReporter.installForCurrentProcess(
|
NativeCrashReporter.installForCurrentProcess(
|
||||||
@@ -93,6 +94,7 @@ open class ExtensionProvider: NEPacketTunnelProvider {
|
|||||||
#else
|
#else
|
||||||
NativeCrashReporter.installForCurrentProcess()
|
NativeCrashReporter.installForCurrentProcess()
|
||||||
#endif
|
#endif
|
||||||
|
LibboxReinstallCrashSignalHandlers()
|
||||||
super.init()
|
super.init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ import UserNotifications
|
|||||||
|
|
||||||
open class ApplicationDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDelegate {
|
open class ApplicationDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDelegate {
|
||||||
public func applicationDidFinishLaunching(_: Notification) {
|
public func applicationDidFinishLaunching(_: Notification) {
|
||||||
|
LibboxPrepareCrashSignalHandlers()
|
||||||
NativeCrashReporter.installForCurrentProcess()
|
NativeCrashReporter.installForCurrentProcess()
|
||||||
|
LibboxReinstallCrashSignalHandlers()
|
||||||
NSLog("Here I stand")
|
NSLog("Here I stand")
|
||||||
let options = LibboxSetupOptions()
|
let options = LibboxSetupOptions()
|
||||||
options.basePath = FilePath.sharedDirectory.relativePath
|
options.basePath = FilePath.sharedDirectory.relativePath
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ class ApplicationDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCe
|
|||||||
private var reportTransferServer: ReportTransferServer?
|
private var reportTransferServer: ReportTransferServer?
|
||||||
|
|
||||||
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
||||||
|
LibboxPrepareCrashSignalHandlers()
|
||||||
NativeCrashReporter.installForCurrentProcess()
|
NativeCrashReporter.installForCurrentProcess()
|
||||||
|
LibboxReinstallCrashSignalHandlers()
|
||||||
NSLog("Here I stand")
|
NSLog("Here I stand")
|
||||||
let options = LibboxSetupOptions()
|
let options = LibboxSetupOptions()
|
||||||
options.basePath = FilePath.sharedDirectory.relativePath
|
options.basePath = FilePath.sharedDirectory.relativePath
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ import UIKit
|
|||||||
|
|
||||||
class ApplicationDelegate: NSObject, UIApplicationDelegate {
|
class ApplicationDelegate: NSObject, UIApplicationDelegate {
|
||||||
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
||||||
|
LibboxPrepareCrashSignalHandlers()
|
||||||
NativeCrashReporter.installForCurrentProcess()
|
NativeCrashReporter.installForCurrentProcess()
|
||||||
|
LibboxReinstallCrashSignalHandlers()
|
||||||
NSLog("Here I stand")
|
NSLog("Here I stand")
|
||||||
let options = LibboxSetupOptions()
|
let options = LibboxSetupOptions()
|
||||||
options.basePath = FilePath.sharedDirectory.relativePath
|
options.basePath = FilePath.sharedDirectory.relativePath
|
||||||
|
|||||||
Reference in New Issue
Block a user