PathOfBuildingCommunity / PathOfBuildingCommunity/PathOfBuilding
Sometimes exception occurs when gaining focus
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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