Skip to content

App can't start background core #2233

@SG5

Description

@SG5

Search first

  • I searched and no similar issues were found

Platform/OS

Android

OS version

16

Hiddify Version

4.1.1

What Happened?

App can't connect

Minimal Reproducible Example (MRE)

Add config to the app
Try to connect

Expected Behavior

App can connect or show issue with config

Additional Context

No response

Application Config Options

{
  "log": {
    "level": "info"
  },

  "inbounds": [
    {
      "type": "socks",
      "tag": "socks-in",
      "listen": "127.0.0.1",
      "listen_port": 2334
    }
  ],

  "outbounds": [
    {
      "type": "hysteria2",
      "tag": "HY2-OPENWRT",

      "server": "hidden",
      "server_port": 443,

      "password": "foobar",

      "up_mbps": 50,
      "down_mbps": 50,

      "tls": {
        "enabled": true,

        "insecure": true
      }
    },

    {
      "type": "direct"
    }
  ],

  "route": {
    "final": "HY2-OPENWRT"
  }
}

Relevant log output

FATAL

2026-06-08 22:49:47.175067Z

runtime error: invalid memory address or nil pointer dereference

goroutine 1087 [running]:

runtime/debug.Stack()

runtime/debug/stack.go:26 +0x74

github.com/hiddify/hiddify-core/v2/

config. DeferPanicToError({0x72a893eb81, 0xb}, 0x400054cb30)

github.com/hiddify/hiddify-core/v2/config/debug.go:30 +0x48 panic({0x72ab74d740?, 0x72acd05db0?})

runtime/panic.go:783 +0xec

github.com/sagernet/sing-box/common/monitoring. (*OutboundMonitoring). Start(0x4000396d80, 0x0)

github.com/sagernet/sing-box@v1.13.0/common/monitoring/

outbound_monitoring.go:281 +0x1200

github.com/sagernet/sing-box/

adapter.StartNamed({0x72abb9a840, 0x400000ff50}, 0x0, {0x40001c4b80, 0x5, 0x8})

github.com/sagernet/sing-box@v1.13.0/adapter/lifecycle.go:95 +0x1f0

github.com/sagernet/sing-box. (*Box).preStart (0x40004c8f00)

github.com/sagernet/sing-box@v1.13.0/box.go:477 +0x1ec

github.com/sagernet/sing-box. (*Box).start(0x40004c8f00)

github.com/sagernet/sing-box@v1.13.0/box.go:493 +0x34

github.com/sagernet/sing-box. (*Box).Start(0x40004c8f00)

github.com/sagernet/sing-box@v1.13.0/box.go:451 +0x34

github.com/sagernet/sing-box/daemon.

(*Instance).Start(0x4000781620)

github.com/sagernet/sing-box@v1.13.0/daemon/instance.go:120 +0x38

github.com/sagernet/sing-box/daemon.

(*StartedService).startOrReload Servicelmp (0x40000df680,

0x400054c2a8, (0x0, 0x0}, 0x0)

github.com/sagernet/sing-box@v1.13.0/daemon/

started_service.go:214 +0x45c

github.com/sagernet/sing-box/daemon.

(*StartedService). StartOrReload Service Options (0x40000df680, {{0x0, 0x0, 0x0}, {0x0, 0x0}, 0x40002158f0, 0x40002b8600, 0x0, 0x0, ...})

github.com/sagernet/sing-box@x1.13.0/daemon/

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions