Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] macos 托盘菜单卡死/自动消失 #95

Open
jqtmviyu opened this issue Sep 9, 2024 · 0 comments
Open

[Bug] macos 托盘菜单卡死/自动消失 #95

jqtmviyu opened this issue Sep 9, 2024 · 0 comments

Comments

@jqtmviyu
Copy link

jqtmviyu commented Sep 9, 2024

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

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

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

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


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

clashX config

## Clash Meta wiki  https://wiki.metacubex.one/

mixed-port: 7890 # HTTP(S) 和 SOCKS 代理混合端口
allow-lan: true # 允许局域网的连接
mode: rule # 规则模式:Rule(规则) / Global(全局代理)/ Direct(全局直连)
log-level: info # 日志等级 silent/error/warning/info/debug
ipv6: true # 开启 IPv6 总开关,关闭阻断所有 IPv6 链接和屏蔽 DNS 请求 AAAA 记录
external-controller: "0.0.0.0:9090" # RESTful API 监听地址
# secret: '' # RESTful API 的口令
# 配置 WEB UI 目录,使用 http://{{external-controller}}/ui 访问
external-ui: ui
external-ui-url: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/refs/heads/gh-pages.zip"

tun:
  enable: false
  stack: mixed
  dns-hijack:
    - "any:53"
    - "tcp://any:53"
  auto-route: true
  auto-redirect: true
  auto-detect-interface: true

tcp-concurrent: true # TCP 并发连接所有 IP, 将使用最快握手的 TCP
unified-delay: true # 统一延迟,将所有连接延迟为最小值
keep-alive-interval: 15 #  TCP保持活动间隔

profile:
  store-selected: true # 存储 select 选择记录

geodata-mode: true
geox-url:
  geoip: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
  geosite: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
  mmdb: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"
  asn: "https://mirror.ghproxy.com/https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb"

sniffer:
  enable: true
  sniff:
    HTTP:
      ports: [80, 8080-8880]
      override-destination: true
    TLS:
      ports: [443, 8443]
    QUIC:
      ports: [443, 8443]
  skip-domain:
    - "Mijia Cloud"
    - "+.push.apple.com"

# https://wiki.metacubex.one/config/dns/diagram/
dns:
  enable: true
  ipv6: true
  enhanced-mode: redir-host
  nameserver:
    - https://doh.opendns.com/dns-query
    - https://9.9.9.9:5053/dns-query
    - https://101.101.101.101/dns-query
    - udp://192.168.2.1:7053
  default-nameserver: # 用来查询nameserver
    - 119.29.29.29
    - 223.5.5.5
    - 192.168.2.1
  nameserver-policy: # 指定域名查询的解析服务器,可使用 geosite, 优先于 nameserver/fallback 查询
    "rule-set:private,microsoft,apple,cn":
      - 119.29.29.29
      - 223.5.5.5
      - 192.168.2.1

proxy-providers:
  🚄 1:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/1.yaml
    url:
    override:
      additional-prefix: "🚄 1 "
  🚄 2:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/2.yaml
    url:
    override:
      additional-prefix: "🚄 2 "
  🚄 3:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/3.yaml
    url:
    override:
      additional-prefix: "🚄 3 "
  🚄 4:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/4.yaml
    url:
    override:
      additional-prefix: "🚄 4 "
  🚄 5:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/5.yaml
    url:
    override:
      additional-prefix: "🚄 5 "
  🌩️:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/edge.yaml
    url:
    exclude-filter: "直连|CMCC|频道|流量|路线|网站"
    override:
      additional-prefix: "🌩️ "
  🛫 1:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/x.yaml
    url:
    override:
      additional-prefix: "🛫 1 "
  🛫 2:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/xx.yaml
    url:
    override:
      additional-prefix: "🛫 2 "
  🛫 3:
    type: http
    interval: 36000
    health-check:
      { enable: true, url: http://www.gstatic.com/generate_204, interval: 300 }
    path: ./providers/xxx.yaml
    url:
    override:
      additional-prefix: "🛫 3 "

proxy-groups:
  - {
      name: 🚀 节点选择,
      type: select,
      proxies:
        [
          🚄 自动,
          🛫 自动,
          🚄 手动,
          🛫 手动,
          🌩️ 自动,
          🇭🇰 香港手动,
          🇯🇵 日本手动,
          🇸🇬 狮城手动,
          🇺🇸 美国手动,
        ],
    }

  ## 按免费付费分组
  - {
      name: 🚄 自动,
      type: url-test,
      include-all: true,
      filter: "🚄",
      exclude-filter: "到期|流量|线路|网站",
      url: "http://www.gstatic.com/generate_204",
      interval: 300,
      tolerance: 50,
    }
  - {
      name: 🛫 自动,
      type: url-test,
      include-all: true,
      filter: "🛫",
      exclude-filter: "到期|流量|线路|网站",
      url: "http://www.gstatic.com/generate_204",
      interval: 300,
      tolerance: 50,
    }

  - {
      name: 🚄 手动,
      type: select,
      include-all: true,
      filter: "🚄",
      exclude-filter: "到期|流量|线路|网站",
    }
  - {
      name: 🛫 手动,
      type: select,
      include-all: true,
      filter: "🛫",
      exclude-filter: "到期|流量|线路|网站",
    }

  - {
      name: 🌩️ 自动,
      type: url-test,
      include-all: true,
      filter: "🌩️",
      url: "http://www.gstatic.com/generate_204",
      interval: 300,
      tolerance: 50,
    }

  ## 分流
  - {
      name: 🤖 人工智能,
      type: select,
      proxies:
        [🇺🇸 美国手动, 🇭🇰 香港手动, 🇯🇵 日本手动, 🇰🇷 韩国手动, 🇸🇬 狮城手动],
    }
  - {
      name: 🎬 YouTube,
      type: select,
      proxies: [🚀 节点选择, 🚄 自动, 🛫 自动, 🚄 手动, 🛫 手动],
    }
  - {
      name: 🎵 spotify,
      type: select,
      proxies:
        [🇯🇵 日本手动, 🇭🇰 香港手动, 🇰🇷 韩国手动, 🇸🇬 狮城手动, 🇺🇸 美国手动],
    }
  - { name: 📲 电报IP, type: select, proxies: [🚀 节点选择] }
  - { name: 🪟 微软服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择] }
  - { name: 🍎 苹果服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择] }
  - { name: 🇨🇳 直连域名, type: select, proxies: [DIRECT] }
  - { name: 🔒 私有网络, type: select, proxies: [DIRECT] }
  - { name: 🔒 私有IP, type: select, proxies: [DIRECT] }
  - { name: 🇨🇳 直连IP, type: select, proxies: [DIRECT] }
  - { name: 🎯 全球直连, type: select, proxies: [DIRECT] }
  - { name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连] }

  ## 分隔,下面是地区分组
  - name: 🇭🇰 香港手动
    type: select
    include-all: true
    filter: "(?i)港|hk|hongkong|hong kong"

  - name: 🇨🇳 台湾手动
    type: select
    include-all: true
    filter: "(?i)台|tw|taiwan"

  - name: 🇯🇵 日本手动
    type: select
    include-all: true
    filter: "(?i)日|jp|japan"

  - name: 🇰🇷 韩国手动
    type: select
    include-all: true
    filter: "(?i)🇰🇷|韩|kr|korea"

  - name: 🇸🇬 狮城手动
    type: select
    include-all: 300
    filter: "(?i)(新|sg|singapore)"

  - name: 🇺🇸 美国手动
    type: select
    include-all: true
    filter: (?i)美|(?<!\w)us(?!\w)|unitedstates|united states

  # 当前选择节点超时,则会按顺序切换到下一个可以节点
  - name: "故障转移"
    type: fallback
    url: "http://www.gstatic.com/generate_204"
    interval: 600
    lazy: true
    include-all: true
    filter: "🚄|🌩️"

rules:
  ## 直连
  - DOMAIN,clash.razord.top,DIRECT
  - DOMAIN,yacd.haishan.me,DIRECT
  - DOMAIN-KEYWORD,lan,DIRECT
  - DOMAIN-KEYWORD,local,DIRECT
  - DOMAIN-KEYWORD,localhost,DIRECT
  - DOMAIN-SUFFIX,deepl.com,DIRECT
  ## 🚀 节点选择
  - DOMAIN-SUFFIX,mikanani.me,🚀 节点选择
  - DOMAIN-SUFFIX,bing.com,🚀 节点选择
  - DOMAIN-SUFFIX,visualstudio.com,🚀 节点选择
  - DOMAIN-SUFFIX,microsoft.com,🚀 节点选择
  ## OpenAi
  - DOMAIN-SUFFIX,openai.com,🤖 人工智能
  - DOMAIN-SUFFIX,chatgpt.com,🤖 人工智能
  - DOMAIN-SUFFIX,claude.ai,🤖 人工智能
  - DOMAIN-SUFFIX,groq.com,🤖 人工智能
  - DOMAIN-SUFFIX,deepseek.com,🤖 人工智能
  ## reject
  - DOMAIN-SUFFIX,sentry.io,REJECT
  # - DOMAIN-SUFFIX,variations.brave.com,REJECT # 屏蔽brave更新
  # - DOMAIN-SUFFIX,bravesoftware.com,REJECT
  # - DOMAIN-SUFFIX,go-updater.brave.com,REJECT
  # - DOMAIN-SUFFIX,laptop-updates.brave.com,REJECT
  ## process
  - PROCESS-NAME,KeyboardHolder,REJECT
  - PROCESS-NAME,HazeOver,REJECT
  ## 规则模板
  - RULE-SET,ai,🤖 人工智能
  - RULE-SET,youtube,🎬 YouTube
  - RULE-SET,spotify,🎵 spotify
  - RULE-SET,private,🔒 私有网络
  - RULE-SET,microsoft,🪟 微软服务
  - RULE-SET,apple,🍎 苹果服务
  - RULE-SET,cn,🇨🇳 直连域名

  - RULE-SET,telegramip,📲 电报IP,no-resolve
  - RULE-SET,privateip,🔒 私有IP,no-resolve
  - RULE-SET,cnip,🇨🇳 直连IP

  - MATCH,🐟 漏网之鱼

rule-providers:
  ai:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/ai.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/openai.mrs"
  youtube:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/youtube.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/youtube.mrs"
  spotify:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/spotify.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/spotify.mrs"
  private:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/private.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/private.mrs"
  microsoft:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/microsoft.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/microsoft.mrs"
  apple:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/apple.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/apple.mrs"
  cn:
    type: http
    interval: 86400
    behavior: domain
    format: mrs
    path: ./rules/cn.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geosite/cn.mrs"

  telegramip:
    type: http
    interval: 86400
    behavior: ipcidr
    format: mrs
    path: ./rules/telegramip.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geoip/telegram.mrs"
  privateip:
    type: http
    interval: 86400
    behavior: ipcidr
    format: mrs
    path: ./rules/privateip.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geoip/private.mrs"
  cnip:
    type: http
    interval: 86400
    behavior: ipcidr
    format: mrs
    path: ./rules/cnip.mrs
    url: "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo-lite/geoip/cn.mrs"

ClashX log

……

ClashX Crash log

……

环境 Environment

……

  • 使用者的操作系统 (the OS running on the client)

macos 12.5.7 x64

  • 网路环境或拓扑 (network conditions/topology)
    ……
  • ISP 有没有进行 DNS 污染 (is your ISP performing DNS pollution?)
    ……
  • 其他
    ……

说明 Description

托盘菜单会突然消失或者卡死导致鼠标转圈.

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

  1. 鼠标移动到托盘图标上, 并在浮动菜单上滑动

我预期会发生……?

托盘菜单能够正常使用

实际上发生了什麽?

菜单消失或者鼠标卡死转圈

可能的解决方案 Possible Solution

更多信息 More Information

  1. 使用 http://127.0.0.1:9090/ui/ api 能够正常选择分流规则
  2. 同样配置直接用shell启动内核没有报错并正常使用
  3. clashx pro 同样多的节点和规则并不会导致卡死.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant