QiuSimons / luci-app-daed

102 stars 22 forks source link

panic occurred: runtime error: invalid memory address or nil pointer dereference #25

Closed Roxy09099 closed 1 month ago

Roxy09099 commented 1 month ago

image panic occurred: runtime error: invalid memory address or nil pointer dereference database is locked (5) (SQLITE_BUSY) manually adding vmess/vless configuration gives no error message but after confirm no node is added

Same error when adding subscription

QiuSimons commented 1 month ago

use test branch

Roxy09099 commented 1 month ago

use test branch

2024-09-25T16:01:11.7267035Z make[3]: Entering directory '/home/runner/work/YAOF/YAOF/openwrt/package/new/luci-app-daed/daed' 2024-09-25T16:01:11.8982550Z mkdir -p /home/runner/work/YAOF/YAOF/openwrt/dl 2024-09-25T16:01:11.9024244Z SHELL= flock /home/runner/work/YAOF/YAOF/openwrt/tmp/.daed-604e981.tar.gz.flock -c ' /home/runner/work/YAOF/YAOF/openwrt/scripts/download.pl "/home/runner/work/YAOF/YAOF/openwrt/dl" "daed-604e981.tar.gz" "skip" "" || ( /home/runner/work/YAOF/YAOF/openwrt/scripts/dl_github_archive.py --dl-dir="/home/runner/work/YAOF/YAOF/openwrt/dl" --url="https://github.com/daeuniverse/daed.git" --version="604e981d433e5132462a7d1e239d41061cd53d59" --subdir="daed-604e981" --source="daed-604e981.tar.gz" --hash="skip" || ( echo "Checking out files from the git repository..."; mkdir -p /home/runner/work/YAOF/YAOF/openwrt/tmp/dl && cd /home/runner/work/YAOF/YAOF/openwrt/tmp/dl && rm -rf daed-604e981 && [ ! -d daed-604e981 ] && git clone https://github.com/daeuniverse/daed.git daed-604e981 && (cd daed-604e981 && git checkout 604e981d433e5132462a7d1e239d41061cd53d59 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd daed-604e981 && git log -1 --format='\''@%ct'\'' && rm -rf daed-604e981/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c daed-604e981 | gzip -nc > /home/runner/work/YAOF/YAOF/openwrt/tmp/dl/daed-604e981.tar.gz && mv /home/runner/work/YAOF/YAOF/openwrt/tmp/dl/daed-604e981.tar.gz /home/runner/work/YAOF/YAOF/openwrt/dl/ && rm -rf daed-604e981; ); ) ' 2024-09-25T16:01:11.9440875Z rm -f /home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.built 2024-09-25T16:01:11.9466855Z touch /home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.built_check 2024-09-25T16:01:11.9518419Z ( pushd /home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing ; make deps ; CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/runner/work/YAOF/YAOF/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/runner/work/YAOF/YAOF/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/daeuniverse/dae-wing" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/daeuniverse/dae-wing/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing" GO_BUILD_DIR="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.go_work/build" GO_BUILD_BIN_DIR="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/runner/work/YAOF/YAOF/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" GOPATH="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.go_work/build" GOCACHE="/home/runner/work/YAOF/YAOF/openwrt/tmp/go-build" GOMODCACHE="/home/runner/work/YAOF/YAOF/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local; go generate ./... ; cd dae-core ; BPF_CLANG="/usr/bin/clang" BPF_STRIP_FLAG="-strip=/usr/bin//llvm-strip" BPF_CFLAGS="-O2 -Wall -Werror -DMAX_MATCH_SET_LEN=1024 -I/home/runner/work/YAOF/YAOF/openwrt/staging_dir/target-x86_64_musl/bpf-headers/tools/lib -I/home/runner/work/YAOF/YAOF/openwrt/staging_dir/target-x86_64_musl/bpf-headers/arch/mips/include/asm/mach-generic" BPF_TARGET="bpfel,bpfeb" go generate control/control.go ; popd ; CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/runner/work/YAOF/YAOF/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/runner/work/YAOF/YAOF/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/daeuniverse/dae-wing" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/daeuniverse/dae-wing/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing" GO_BUILD_DIR="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.go_work/build" GO_BUILD_BIN_DIR="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/runner/work/YAOF/YAOF/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" GOOS="linux" GOARCH="amd64" GO386="" GOAMD64="v1" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" CGO_CFLAGS="-O2 -march=x86-64-v2 -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing=wing -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE" CGO_CPPFLAGS="-I/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include" CGO_CXXFLAGS="-O2 -march=x86-64-v2 -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing=wing -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -D_LARGEFILE64_SOURCE -ffunction-sections -fdata-sections -flto=auto -fno-fat-lto-objects" CGO_LDFLAGS="-L/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,--gc-sections -flto=auto -fuse-linker-plugin -znow -zrelro" GOPATH="/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.go_work/build" GOCACHE="/home/runner/work/YAOF/YAOF/openwrt/tmp/go-build" GOMODCACHE="/home/runner/work/YAOF/YAOF/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/runner/work/YAOF/YAOF/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1727094886' -linkmode external -extldflags '-L/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,--gc-sections -flto=auto -fuse-linker-plugin -Wl,-z,now -Wl,-z,relro'" -ldflags "-s -w -X 'github.com/daeuniverse/dae-wing/db.AppDescription=daed is a integration solution of dae, API and UI.' -X github.com/daeuniverse/dae-wing/db.AppName=daed -X github.com/daeuniverse/dae-wing/db.AppVersion=daed-604e981_core-da8890c -buildid '1727094886' -linkmode external -extldflags '-L/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/runner/work/YAOF/YAOF/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,--gc-sections -flto=auto -fuse-linker-plugin -Wl,-z,now -Wl,-z,relro'" -tags "embedallowed" ; ) 2024-09-25T16:01:11.9545529Z ~/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing ~/work/YAOF/YAOF/openwrt/package/new/luci-app-daed/daed 2024-09-25T16:01:11.9546702Z make[4]: Entering directory '/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing' 2024-09-25T16:01:12.6010743Z time="2024-09-25T16:01:12Z" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32 2024-09-25T16:01:12.8409255Z time="2024-09-25T16:01:12Z" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32 2024-09-25T16:01:13.1284403Z make[4]: Leaving directory '/home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing' 2024-09-25T16:01:13.4167469Z time="2024-09-25T16:01:13Z" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32 2024-09-25T16:01:13.6475694Z time="2024-09-25T16:01:13Z" level=warning msg="dangerous converting: may exceeds graphQL int32 range" name=SoMarkFromDae type=uint32 2024-09-25T16:01:14.0684440Z Error: exec: "/usr/bin//llvm-strip": stat /usr/bin//llvm-strip: no such file or directory 2024-09-25T16:01:14.0686558Z exit status 1 2024-09-25T16:01:14.0713549Z control/control.go:8: running "go": exit status 1 2024-09-25T16:01:14.0719827Z ~/work/YAOF/YAOF/openwrt/package/new/luci-app-daed/daed 2024-09-25T16:01:14.0756576Z Finding targets 2024-09-25T16:01:14.3852522Z 2024-09-25T16:01:14.3853006Z Building targets 2024-09-25T16:01:15.0155651Z github.com/daeuniverse/dae/control 2024-09-25T16:01:15.1373358Z # github.com/daeuniverse/dae/control 2024-09-25T16:01:15.1374500Z ../../dae-core/control/dns_control.go:10:2: "crypto/tls" imported and not used 2024-09-25T16:01:15.1375858Z ../../dae-core/control/dns_control.go:34:2: "github.com/daeuniverse/outbound/protocol/tuic/common" imported as tc and not used 2024-09-25T16:01:15.1376983Z ../../dae-core/control/dns_control.go:35:2: "github.com/daeuniverse/quic-go" imported as quic and not used 2024-09-25T16:01:15.1378058Z ../../dae-core/control/dns_control.go:36:2: "github.com/daeuniverse/quic-go/http3" imported and not used 2024-09-25T16:01:15.7569269Z 2024-09-25T16:01:16.0678855Z make[3]: [Makefile:158: /home/runner/work/YAOF/YAOF/openwrt/build_dir/target-x86_64_musl/daed-604e981/wing/.built] Error 1 2024-09-25T16:01:16.0680275Z make[3]: Leaving directory '/home/runner/work/YAOF/YAOF/openwrt/package/new/luci-app-daed/daed' 2024-09-25T16:01:16.0683600Z time: package/new/luci-app-daed/daed/compile#3.48#2.50#4.35 2024-09-25T16:01:16.0691463Z ERROR: package/new/luci-app-daed/daed failed to build. 2024-09-25T16:01:16.0695184Z make[2]: [package/Makefile:129: package/new/luci-app-daed/daed/compile] Error 1 2024-09-25T16:01:16.0700569Z make[2]: Leaving directory '/home/runner/work/YAOF/YAOF/openwrt' 2024-09-25T16:01:16.0705803Z make[1]: [package/Makefile:123: /home/runner/work/YAOF/YAOF/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 2024-09-25T16:01:16.0710591Z make[1]: Leaving directory '/home/runner/work/YAOF/YAOF/openwrt' 2024-09-25T16:01:16.0717443Z make: [/home/runner/work/YAOF/YAOF/openwrt/include/toplevel.mk:233: world] Error 2 2024-09-25T16:01:16.0726203Z ##[error]Process completed with exit code 2. 2024-09-25T16:01:16.0940932Z Post job cleanup. 2024-09-25T16:01:16.1925760Z [command]/usr/bin/git version 2024-09-25T16:01:16.1963449Z git version 2.46.1 2024-09-25T16:01:16.2007655Z Copying '/home/runner/.gitconfig' to '/home/runner/work/_temp/395fa388-d868-48d3-9bfe-40dda7c135c8/.gitconfig' 2024-09-25T16:01:16.2017776Z Temporarily overriding HOME='/home/runner/work/_temp/395fa388-d868-48d3-9bfe-40dda7c135c8' before making global git config changes 2024-09-25T16:01:16.2019518Z Adding repository directory to the temporary git global config as a safe directory 2024-09-25T16:01:16.2023715Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/YAOF/YAOF 2024-09-25T16:01:16.2067016Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand 2024-09-25T16:01:16.2099604Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2024-09-25T16:01:16.2333078Z [command]/usr/bin/git config --local --name-only --get-regexp http.https\:\/\/github.com\/.extraheader 2024-09-25T16:01:16.2352594Z http.https://github.com/.extraheader 2024-09-25T16:01:16.2365335Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader 2024-09-25T16:01:16.2400545Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https\:\/\/github.com\/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2024-09-25T16:01:16.2868602Z Cleaning up orphan processes When using test branch, compile error occurs

QiuSimons commented 1 month ago

https://github.com/QiuSimons/luci-app-daed/actions/runs/11024718997

ci shows no issue.