Bug #5201
Each flight spawns new thread at 100% CPU
0%
Description
Every time I start a new flight, or revert an in-progress flight (either to launchpad or VAB), a new process thread is spawned which maxes out one CPU core in perpetuity. The threads remain running at max until the main application quits; leaving to the main menu does not halt them. Occasionally, and not readily reproducible, the threads will continue to run even after the main application quits. These stray processes can only be ended by issuing a kill command.
To reproduce:- Start htop to monitor CPU usage, and set it to sort by CPU%. Filter on "KSP" if necessary.
- Start KSP.
- Note a single CPU thread that is pegged at 100% - 105%.
- Load a game (or start a new one) and start a new flight on the launchpad. You don't actually have to go anywhere, or do anything with the ship.
- Note a second CPU thread has been spawned, and it is pegged at 100%.
- Press Escape, and revert to Launchpad.
- Note another CPU thread has been spawned, and it is pegged at 100%. All previous threads remain pegged at 100%.
- Repeat last two steps ad nauseum until your CPU has suffered enough.
- Quit to main menu. Note that CPU threads remain active.
- Exit application. Note that the CPU threads (most of them, anyways) finally stop.
History
#1 Updated by soreven over 9 years ago
I first noticed this problem in 1.0.3, but it persists in 1.0.4. I am using the x64 binary on Linux Mint 17.
#2 Updated by Squelch over 9 years ago
Please can you confirm this is an unmodded install?
It would also be appreciated if you could provide some other supporting evidence such as logs. We are unable to confirm the cpu saturation, nor the zombie threads.
For guidance, see the Bug Reporting Guide.
[Edit] A strace of one of the threads would also be useful.
#3 Updated by Squelch over 9 years ago
- Status changed from New to Need More Info
#4 Updated by Mesons over 9 years ago
I can't reproduce this on an unmodded install on Ubuntu 14.04. I see a lot of mods installed in your attached images; the issue probably lies with one of them. Try to remove the mods one by one until the problem goes away, and you'll know which mod is at fault.
#5 Updated by soreven over 9 years ago
Squelch wrote:
Please can you confirm this is an unmodded install?
It would also be appreciated if you could provide some other supporting evidence such as logs. We are unable to confirm the cpu saturation, nor the zombie threads.
For guidance, see the Bug Reporting Guide.
[Edit] A strace of one of the threads would also be useful.
I apologize, I hadn't seen the Bug Reporting guide. I was able to isolate this issue to a specific mod (KSP Trajectory Optimization Tool). This bug can be closed out.
#6 Updated by Squelch over 9 years ago
- Status changed from Need More Info to Moot
- % Done changed from 0 to 100
soreven wrote:
I apologize, I hadn't seen the Bug Reporting guide. I was able to isolate this issue to a specific mod (KSP Trajectory Optimization Tool). This bug can be closed out.
Thanks for reporting back, and I'm glad you have identified the problem.