mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #9] 运行错误 runtime error: invalid memory address or nil pointer dereference #5777
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#5777
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yesicoo on GitHub (Nov 5, 2021).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/9
您好,我在mac上编译成win exe 控制台运行报以下错误
2021/11/05 17:02:52 /*****/go/pkg/mod/gorm.io/driver/sqlite@v1.1.4/migrator.go:32
[0.000ms] [rows:-] SELECT count() FROM sqlite_master WHERE type='table' AND name="config_backups"
panic: runtime error: invalid memory address or nil pointer dereference
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x3cfbce]
@0xJacky commented on GitHub (Nov 5, 2021):
您好,我手头上没有暂时没有Win的设备,可能暂时测不了,在mac上能正常运行吗
Jacky
@yesicoo commented on GitHub (Nov 5, 2021):
mac 上可以的 非常好
@0xJacky commented on GitHub (Nov 6, 2021):
好的 我下周看看,有可能是 sql driver 的锅
Jacky
@0xJacky commented on GitHub (Nov 23, 2021):
应该是 gorm sqlite driver 的锅,注释掉 server/model/models.go 的迁移代码是可以跑的。
@yesicoo commented on GitHub (Nov 24, 2021):
好的 我晚点试试 非常感谢
@0xJacky commented on GitHub (Nov 30, 2021):
您好,这个问题应该是没有启用CGO编译导致的。
请先用
brew install mingw-w64安装依赖再使用
编译 Windows 版本