PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding

Sometimes exception occurs when gaining focus

Open
#1,990 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug crash
Dominant language
Lua
Stars
5.4k
Forks
2.4k
Avg merge
1d 12h
Merged PRs (30d)
26

Description

  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the focus change by minimizing POB on a second monitor and using Alt-Tab on Windows 10. Start from the update-thread downloadFile function at the reported stack-trace location and investigate why outFile is nil. Done means switching focus no longer raises the exception and the application remains usable after dismissing or restarting.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.