GopeedLab/gopeed · error · FlutterError

ERROR

ERROR

Error message

error.debugDescription

What it means

Error "error.debugDescription" thrown in GopeedLab/gopeed.

Source

Thrown at ui/flutter/ios/Runner/AppDelegate.swift:25

    override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
        let batteryChannel = FlutterMethodChannel(name: "gopeed.com/libgopeed",
                                                  binaryMessenger: controller.binaryMessenger)
        batteryChannel.setMethodCallHandler({
            (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
            switch call.method {
            case "start":
                let args = call.arguments as? Dictionary<String, Any>
                let cfg = args?["cfg"] as? String
                let portPrt = UnsafeMutablePointer<Int>.allocate(capacity: MemoryLayout<Int>.stride)
                var error: NSError?
                if LibgopeedStart(cfg, portPrt, &error){
                    result(portPrt.pointee)
                }else{
                    result(FlutterError(code: "ERROR", message: error.debugDescription, details: nil))
                }
            case "stop":
                LibgopeedStop()
                result(nil)
            default:
                result(FlutterMethodNotImplemented)
            }
        })
        
        GeneratedPluginRegistrant.register(with: self)

        SwiftFlutterForegroundTaskPlugin.setPluginRegistrantCallback(registerPlugins)
        if #available(iOS 10.0, *) {
            UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
        }
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
}

View on GitHub (pinned to 7b7327ffb3)

When it happens

Trigger: Thrown at ui/flutter/ios/Runner/AppDelegate.swift:25 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class

Background: Error: deliberate library guards and refused operations — this error's family across 54 libraries.


AI-assisted analysis of GopeedLab/gopeed@7b7327ffb3 (2026-08-16). Data as JSON: /api/errors/be15ff768e6bac19. Report an issue: GitHub.