OpenList icon indicating copy to clipboard operation
OpenList copied to clipboard

[BUG] 出现空指针错误导致程序强行退出

Open Xtnayue opened this issue 1 year ago • 8 comments

请确认以下事项

  • [x] 我已确认阅读并同意 AGPL-3.0 第15条 。 本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • [x] 我已确认阅读并同意 AGPL-3.0 第16条 。 无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • [x] 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • [x] 我已确认阅读了OpenList文档。

  • [x] 我已确认没有重复的问题或讨论。

  • [x] 我已确认是OpenList的问题,而不是其他原因(例如 网络 ,依赖或操作)。

  • [x] 我认为此问题必须由OpenList处理,而非第三方。

  • [x] 我已确认这个问题在最新版本中没有被修复。

OpenList 版本(必填)

4.14

使用的存储驱动(必填)

189cloudpc

问题描述(必填)

登陆后,或点击天翼云盘驱动后,出现空指针报错,程序强制退出,前端显示Network Error,如图。

Image

配置文件内容(必填)

默认配置

日志(可选)

myarch@myarch-jiguangxseriesgm6aq7c /u/bin [2]> sudo /usr/bin/openlist server --data /home/myarch/openlist INFO[2025-10-05 13:20:39] reading config file: /home/myarch/openlist/config.json INFO[2025-10-05 13:20:39] load config from env with prefix: OPENLIST_ INFO[2025-10-05 13:20:39] max buffer limit: 786MB INFO[2025-10-05 13:20:39] mmap threshold: 4MB INFO[2025-10-05 13:20:39] init logrus... start HTTP server @ 0.0.0.0:52415 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x19b0ff1]

goroutine 39 [running]: github.com/OpenListTeam/OpenList/v4/drivers/189pc.(*Cloud189PC).EncryptParams(0x6d84f20?, 0x0, 0x65?) github.com/OpenListTeam/OpenList/v4/drivers/189pc/utils.go:82 +0x51 github.com/OpenListTeam/OpenList/v4/drivers/189pc.(*Cloud189PC).request(0xc000ba6508, {0x24be16e, 0x36}, {0x24158cd, 0x3}, 0xc00088add8, 0x0, {0x696b740, 0xc00054ea80}, {0x0, ...}) github.com/OpenListTeam/OpenList/v4/drivers/189pc/utils.go:96 +0x489 github.com/OpenListTeam/OpenList/v4/drivers/189pc.(*Cloud189PC).get(...) github.com/OpenListTeam/OpenList/v4/drivers/189pc/utils.go:141 github.com/OpenListTeam/OpenList/v4/drivers/189pc.(*Cloud189PC).getCapacityInfo(0xc000ba6508, {0x6f55d50, 0xc00054e9a0}) github.com/OpenListTeam/OpenList/v4/drivers/189pc/utils.go:1479 +0xab github.com/OpenListTeam/OpenList/v4/drivers/189pc.(*Cloud189PC).GetDetails(0xc000ba6508, {0x6f55d50?, 0xc00054e9a0?}) github.com/OpenListTeam/OpenList/v4/drivers/189pc/driver.go:415 +0x26 github.com/OpenListTeam/OpenList/v4/internal/op.GetStorageDetails({0x6f55d50?, 0xc00054e9a0?}, {0x6f63558?, 0xc000ba6508?}) github.com/OpenListTeam/OpenList/v4/internal/op/storage.go:447 +0x54 github.com/OpenListTeam/OpenList/v4/internal/op.GetStorageVirtualFilesWithDetailsByPath.func1({0x6f63558, 0xc000ba6508}, {0x6f61db8, 0xc000bbb400}) github.com/OpenListTeam/OpenList/v4/internal/op/storage.go:357 +0x15d github.com/OpenListTeam/OpenList/v4/internal/op.getStorageVirtualFilesByPath.func2() github.com/OpenListTeam/OpenList/v4/internal/op/storage.go:404 +0x94 created by github.com/OpenListTeam/OpenList/v4/internal/op.getStorageVirtualFilesByPath in goroutine 176 github.com/OpenListTeam/OpenList/v4/internal/op/storage.go:402 +0x6e5

复现链接(可选)

这是data.db 下载后把文件后缀改回.db,放到相应目录里

Xtnayue avatar Oct 05 '25 05:10 Xtnayue

感谢您联系OpenList。我们会尽快回复您。 Thanks for contacting OpenList. We will reply to you as soon as possible.

github-actions[bot] avatar Oct 05 '25 05:10 github-actions[bot]

我们根据你的data.db也一样无法复现此问题

我们还寻找其他用户进行反馈,目前用户反馈天翼云盘可以正常使用,并提供了截图信息。

image

此为用户提供的截图信息。

您必须提供更多复现方案,否则该问题将被认为无法复现并被关闭。

jyxjjj avatar Oct 05 '25 12:10 jyxjjj

我们根据你的data.db也一样无法复现此问题

我们还寻找其他用户进行反馈,目前用户反馈天翼云盘可以正常使用,并提供了截图信息。

image

此为用户提供的截图信息。

您必须提供更多复现方案,否则该问题将被认为无法复现并被关闭。

我前面发的data.db 的账密是 admin : 2580 刚才忘发了,进入后到后台启动"天翼云盘"这个驱动,就会触发这个bug。 通过该data.db及上述方法可以稳定复现该bug。但是无法目前复现出类似的data.db数据库文件。

发这条issue的本意是,这个bug会导致程序异常退出(我不认为这种程序异常退出,会是由我的错误操作引起的,这应该是一个bug。),而不是我用openlist挂载天翼云盘失败了。

Xtnayue avatar Oct 05 '25 13:10 Xtnayue

此问题疑似因登录失败引起,开发者已提交在登录失败时直接返回报错,请等待Beta的Actions跑完后下载Beta版本尝试。

jyxjjj avatar Oct 05 '25 14:10 jyxjjj

那现在怎么办呢?一登录就停止,还没办法备份配置,然后重装

kettly1260 avatar Oct 15 '25 07:10 kettly1260

那现在怎么办呢?一登录就停止,还没办法备份配置,然后重装

已经修复过了,请下载Beta尝试,暂未发版本。最近还有几个PR,预估本周可以发版本,我感觉最晚下周二。

jyxjjj avatar Oct 15 '25 08:10 jyxjjj

那现在怎么办呢?一登录就停止,还没办法备份配置,然后重装

用storage命令 禁用/删除 189pc 驱动

Xtnayue avatar Oct 20 '25 15:10 Xtnayue

用storage命令 禁用/删除 189pc 驱动

不是都修了吗

KirCute avatar Oct 20 '25 15:10 KirCute