ClashX.Meta icon indicating copy to clipboard operation
ClashX.Meta copied to clipboard

[Bug]更新macos26后打开会立即闪退,显示origin config文件已更改,即使强行维持运行也会显示api Connect error(即使是direct模式仍然显示这个错误)

Open Xwen0857 opened this issue 1 year ago • 23 comments

感谢你向 ClashX 提交 issue! 在提交之前,请确认:

  • [ ] 我已经在 Issue Tracker 中找过我要提出的问题
  • [ ] 这是 ClashX UI层面的问题,并非 Clash Core 的问题(例如xx软件连不上,无法连接特定服务器等)。其他 Clash 衍生版本没有次问题。
  • [ ] 如果你可以自己 debug 并解决的话,提交 PR 吧!

请注意,如果你并没有遵照这个 issue template 填写内容,我们将直接关闭这个 issue。

我都确认过了,我要继续提交。


请附上任何可以帮助我们解决这个问题的信息,如果我们收到的信息不足,我们将对这个 issue 加上 Needs more information 标记并在收到更多资讯之前关闭 issue。

clashX config

……

ClashX log

……

ClashX Crash log

……

环境 Environment

……

  • 使用者的操作系统 (the OS running on the client) ……
  • 网路环境或拓扑 (network conditions/topology) ……
  • ISP 有没有进行 DNS 污染 (is your ISP performing DNS pollution?) ……
  • 其他 ……

说明 Description

重现问题的具体布骤 Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. ……

我预期会发生……?

实际上发生了什麽?

可能的解决方案 Possible Solution

更多信息 More Information

Xwen0857 avatar Jun 10 '25 08:06 Xwen0857

遇到了同样的问题,补充一些控制台输出

chmod: /Users/<user_name>/Library/Application Support/com.metacubex.ClashX.meta/com.metacubex.ClashX.ProxyConfigHelper.meta: No such file or directory
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018dd4a690 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000018d832430 objc_exception_throw + 88
	2   Foundation                          0x000000018ff06be0 -[NSConcreteTask launchWithDictionary:error:] + 3976
	3   ClashX Meta                         0x00000001007765b0 ClashX Meta + 255408
	4   ClashX Meta                         0x00000001007a3cb0 ClashX Meta + 441520
	5   ClashX Meta                         0x00000001007a39fc ClashX Meta + 440828
	6   ClashX Meta                         0x00000001007a31e0 ClashX Meta + 438752
	7   ClashX Meta                         0x000000010075cf54 ClashX Meta + 151380
	8   ClashX Meta                         0x00000001007aa0fc ClashX Meta + 467196
	9   ClashX Meta                         0x0000000100786170 ClashX Meta + 319856
	10  ClashX Meta                         0x00000001009bf9b8 ClashX Meta + 2652600
	11  ClashX Meta                         0x00000001007f559c ClashX Meta + 775580
	12  libdispatch.dylib                   0x000000018da9fb3c _dispatch_call_block_and_release + 32
	13  libdispatch.dylib                   0x000000018dab9aa4 _dispatch_client_callout + 16
	14  libdispatch.dylib                   0x000000018dad70b0 _dispatch_main_queue_drain.cold.5 + 812
	15  libdispatch.dylib                   0x000000018daaef28 _dispatch_main_queue_drain + 180
	16  libdispatch.dylib                   0x000000018daaee64 _dispatch_main_queue_callback_4CF + 44
	17  CoreFoundation                      0x000000018dd26064 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
	18  CoreFoundation                      0x000000018dcf8920 __CFRunLoopRun + 1972
	19  CoreFoundation                      0x000000018ddb6b78 _CFRunLoopRunSpecificWithOptions + 564
	20  HIToolbox                           0x000000019a68d874 RunCurrentEventLoopInMode + 316
	21  HIToolbox                           0x000000019a690af4 ReceiveNextEventCommon + 456
	22  HIToolbox                           0x000000019a81a318 _BlockUntilNextEventMatchingListInMode + 48
	23  AppKit                              0x00000001925251a0 _DPSBlockUntilNextEventMatchingListInMode + 236
	24  AppKit                              0x0000000192081f9c _DPSNextEvent + 588
	25  AppKit                              0x0000000192a8785c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
	26  AppKit                              0x0000000192a87568 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 72
	27  AppKit                              0x00000001928349b4 -[NSMenuTrackingSession startRunningMenuEventLoop:] + 300
	28  AppKit                              0x0000000192834814 -[NSMenuTrackingSession startMonitoringEvents:] + 284
	29  AppKit                              0x0000000193047598 -[NSContextMenuTrackingSession startMonitoringEvents:] + 84
	30  AppKit                              0x00000001927d7960 +[NSContextMenuImpl presentPopup:fromView:withContext:animated:] + 1044
	31  AppKit                              0x0000000192abbdc8 _NSPopUpMenu + 2148
	32  AppKit                              0x0000000192abb490 -[NSCocoaMenuImpl popUpMenu:atLocation:width:view:selectedItemIndexProvider:font:positioningRect:flags:options:] + 432
	33  AppKit                              0x0000000192abb2b8 -[NSCocoaMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 96
	34  AppKit                              0x0000000192a72178 +[NSStatusBarButtonCell popUpStatusBarMenu:ofItem:ofBar:inRect:ofView:withEvent:] + 460
	35  AppKit                              0x0000000192a71144 -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 248
	36  AppKit                              0x0000000192cb2894 -[NSControl(_NSTracking) _mouseDown:] + 612
	37  AppKit                              0x0000000192cb2604 -[NSControl(_NSTracking) mouseDown:] + 104
	38  AppKit                              0x0000000192144ea8 forwardMethod + 252
	39  AppKit                              0x0000000192d751fc -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3676
	40  AppKit                              0x0000000192d72084 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 492
	41  AppKit                              0x0000000192d71b14 -[NSWindow(NSEventRouting) sendEvent:] + 372
	42  AppKit                              0x0000000192a79250 -[NSStatusBarWindow sendEvent:] + 864
	43  AppKit                              0x0000000192a863b0 -[NSApplication(NSEventRouting) sendEvent:] + 1276
	44  AppKit                              0x0000000192585e1c -[NSApplication _handleEvent:] + 60
	45  AppKit                              0x000000019207a838 -[NSApplication run] + 408
	46  AppKit                              0x00000001920667cc NSApplicationMain + 888
	47  ClashX Meta                         0x00000001007601e8 ClashX Meta + 164328
	48  dyld                                0x000000018d8a5854 start + 6256
)
libc++abi: terminating due to uncaught exception of type NSException

Cinea4678 avatar Jun 10 '25 15:06 Cinea4678

我也遇到同样的问题,等解决哈

huntian32 avatar Jun 11 '25 01:06 huntian32

你好,mac os 26,出现打开闪退,希望尽快能修复这个问题哈,谢谢

nasasky avatar Jun 11 '25 06:06 nasasky

 你好,M1 macOS 26 beta 1 遇到同样问题,闪退 or error

noxsk avatar Jun 11 '25 08:06 noxsk

你好,同样的问题,尝试删除了sudo launchctl remove com.metacubex.ClashX.ProxyConfigHelper这个服务重新安装还是闪退。 但是com.metacubex.ClashX.ProxyConfigHelper这个服务没安装的时候软件好像不闪退但是不安装代理功能无法使用,怀疑macos26应该修改了什么策略导致异常

xyfl0203 avatar Jun 11 '25 09:06 xyfl0203

M2 Macbook Air with MacOS 26 beta, 遇到同样的问题。

simonj1105 avatar Jun 15 '25 16:06 simonj1105

Rebuild the project yourself and change the source code.

rootProject/ClashX/General/Utils/Command.swift:

import Foundation

struct Command {
    let cmd: String
    let args: [String]

    func run() -> String {
        var output = ""
        
        let task = Process()
        
        task.executableURL = URL(fileURLWithPath: cmd)
        task.arguments = args
        
        let outpipe = Pipe()
        task.standardOutput = outpipe
        
        do {
            try task.run()
            task.waitUntilExit()
            
            let outdata = outpipe.fileHandleForReading.readDataToEndOfFile()
            if let string = String(data: outdata, encoding: .utf8) {
                output = string.trimmingCharacters(in: .newlines)
            }
        } catch {
            print("Error running command: \(error)")
        }
        
        return output
    }
}

Apple Documentation: launchPath Deprecated: https://developer.apple.com/documentation/foundation/process/launchpath#Deprecated Use executableURL

thehelium avatar Jun 16 '25 05:06 thehelium

Rebuild the project yourself and change the source code.

rootProject/ClashX/General/Utils/Command.swift:

import Foundation

struct Command { let cmd: String let args: [String]

func run() -> String {
    var output = ""
    
    let task = Process()
    
    task.executableURL = URL(fileURLWithPath: cmd)
    task.arguments = args
    
    let outpipe = Pipe()
    task.standardOutput = outpipe
    
    do {
        try task.run()
        task.waitUntilExit()
        
        let outdata = outpipe.fileHandleForReading.readDataToEndOfFile()
        if let string = String(data: outdata, encoding: .utf8) {
            output = string.trimmingCharacters(in: .newlines)
        }
    } catch {
        print("Error running command: \(error)")
    }
    
    return output
}

}

Apple Documentation: launchPath Deprecated: https://developer.apple.com/documentation/foundation/process/launchpath#Deprecated Use executableURL

but then will persist to occur this page. Image

Mark-Wu2003 avatar Jul 09 '25 13:07 Mark-Wu2003

M2 Macbook Air with MacOS 26 beta, same issue

Classicalqy avatar Aug 01 '25 06:08 Classicalqy

same issue

cloak86 avatar Aug 01 '25 15:08 cloak86

try this vision https://down.nmsl.ooo/mac/ClashX.dmg

logaagit avatar Sep 16 '25 06:09 logaagit

@logaagit Thanks, it’s working for me.

fuscoyu avatar Sep 16 '25 07:09 fuscoyu

same issue

MorganXDX avatar Sep 16 '25 09:09 MorganXDX

@logaagit so nice.

zggg avatar Sep 16 '25 11:09 zggg

@logaagit works for me too! thx

JasonHuang0812 avatar Sep 17 '25 05:09 JasonHuang0812

@logaagit Very nice 👌

wellgom1699-a11y avatar Sep 18 '25 12:09 wellgom1699-a11y

After upgrading to macOS 26, I encountered the same issue. ClashX is ok, but I hope ClashX Pro gets fixed soon.

kkxiaoa avatar Sep 19 '25 13:09 kkxiaoa

@logaagit work, good.

1791571768 avatar Sep 26 '25 09:09 1791571768

there is another client of clash supporting MacOS, stash, can use this for a moment.

Image

GeekQuantCat avatar Sep 30 '25 15:09 GeekQuantCat

同样报错,亲测重装之后就好了

mimoren avatar Oct 09 '25 02:10 mimoren