-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak in backlight driver #250
Comments
@tsujan Yes, I test it. If you create a new LXQt::Backlight object and then you change the backlight, LXQt::Backlight will run a new backlight driver and it will kill it after 60 seconds. I found the bug when I was testing the tool to change the backlight when computer is idle. For testing, I selected 5 seconds of idleness and when I checked the PID of lxqt-powermanager to kill it and run a new version, I found lots of backlight drivers running. A new one each 60 seconds. LXQt::Backlight was not killing the backlight driver. |
@selairi |
Yes, you are right. I found it while testing that tool. |
The commit was merged. No point in keeping this open. |
Sorry, I din not realize that I was in lxqt repository and I pushed this:
00a3949
Backlight doesn't delete the backlight driver after use and it builds a new one.
Expected Behavior
Change the backlight.
After 60 seconds backlight driver is deleted.
Current Behavior
Backlight driver doesn't be deleted and new one is build.
Possible Solution
The solution is close the stream to backlight driver.
Sorry, I din not realize that I was in lxqt repo and I pushed the solution:
00a3949
I was thinking that I was pushing to my own repo.
Steps to Reproduce (for bugs)
Context
System Information
The text was updated successfully, but these errors were encountered: