PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding

Sometimes exception occurs when gaining focus

未关闭
#1,990 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug crash
主要语言
Lua
星标
5.4k
派生
2.4k
平均合并
1 天 12 小时
30 天内合并 PR
26

描述

  • What happened?
    Error pops up:
In update thread: [string "#@..."]: 47: attempt to index local 'outFile' (a nil value)
stack traceback:
[string "#@..."]: 47: in function 'downloadFile'
[string "#@..."]: 175: in main chunk
Press Enter/Escape to Dismiss, or F5 to restart the application.

Problem will persist upon either dismissing or restarting the application.

  • What were you trying to do?
    Switching to POB from POE.

  • What steps will reproduce the bug?
    When POB is minimized on a second monitor and I ALT-TAB into it.

  • Does it reproduce every time?
    Problem does not reproduce 100% of the time but is rather frequent.

  • Provide a build code:
    Running 1.4.170.24 on Windows 10.

  • Screenshots:
    https://imgur.com/a/VhkhIYr

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

通过在第二台显示器上最小化 POB,并在 Windows 10 上使用 Alt-Tab,重现焦点切换。请从报告的 stack trace 位置处的 update-thread downloadFile 函数开始调查,查明 outFile 为何是 nil。完成标准是切换焦点不再引发异常,并且在关闭或重启后应用仍可继续使用。

由索引模型根据 Issue 内容生成。

评估

技术栈
lua
领域
desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。