Summary: | Klaptopdaemon tries to read nonexisting /proc/acpi/button/*/*/status file, ever growing .xsession-errors | ||
---|---|---|---|
Product: | [Unmaintained] klaptopdaemon | Reporter: | Samuel Kvasnica <my.bugs> |
Component: | general | Assignee: | Paul Campbell <paul> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | gtwilliams, Jochen.Trumpf, rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Fix for .xsession-errors overflow
Introducing guards for all QFile::open() calls Introducing guards for all QFile::open() calls |
Description
Samuel Kvasnica
2005-04-07 17:32:51 UTC
I can confirm, that after a fresh gentoo install my .xsession-errors file grows up with messages 'QFile::open: No file name specified' until I finished the icon to watch/change power settings/battery and so on. is somebody maintaining this part of KDE ? I have experienced the same problem after upgrading to Ubuntu Breezy with KDE 3.4.3. I found out that any other button action than "Off" causes these messages. As mentioned by Samuel, laptop_portable::get_button doesn't properly check for an empty string. But there is also a bug in laptop_daemon::ButtonThreadInternals which has missing checks if lid or power buttons are enabled. This results in calls to get_button even if this button isn't available. I have created a patch which fixes these two issues. Created attachment 13001 [details]
Fix for .xsession-errors overflow
Tested on KDE 3.4.3.
Praise the Lord ! is somebody finally going to insert this patch into the regular kde sources ? I'm really annoyed having each time to do it myself after downloading a new version... Thanks, Sam Zed wrote: [bugs.kde.org quoted mail] Just upgraded to KDE3.5-RC1 and again lots of 'QFile::open: No file name specified' messages in .xsession-errors. Those messages stopped after 'dcop kded kded unloadModule kdetrayproxy'. By all means, I reported this bug in april 2005, along with a fix. There was a more extensive patch attached by Zed as well. The best joke is, the status of this bug is still "UNCONFIRMED" although it is pretty reproducible. I also wonder when klaptopdaemon will reflect the fact that some acpi stuff moved now to /sys/power (havent tried KDE3.5 though). Hello, KDE developers, good morning ! Are you still sleeping ?!? Using KDE 3.5 and same bug here. Resolved it by not using "Configure klaptop -> Button actions -> Lid switch closed". Old bug and not fixed in KDE 3.5 ?! Running kubuntu and by accident I noticed that my hard drive filling with these messages in .xsession-errors file. *** This bug has been confirmed by popular vote. *** And please check also for the new location of acpi stuff in /sts/power (kernel 2.6.14) and new directory name /proc/suspend2 instead of /proc/software_suspend if these are used in klaptopdaemon. Created attachment 14441 [details]
Introducing guards for all QFile::open() calls
The problem still occurs here in Debian version 3.5.0-3.
This patch uses QFile::exists() instead of checking for null-filenames to
ensure every file opened by klaptopdaemon really is there.
Created attachment 14442 [details]
Introducing guards for all QFile::open() calls
Sorry, forgot to gunzip the file before uploading...
Hi, The "QFile::open: No file name specified" problem in kdevelop might not be limited to klaptop problem. When I try to create a "Simple SQL" project, the message pops up and the project failed to create (actually, only proj.kdevelop, proj.sql, templates are created). However, there is no problem to create a simple "Hello World" project! Although I do use a laptop (IBM X31), I don't have klaptop installed. I have an IBM X31 with Kubuntu Dapper KDE 3.5.2, klaptopdaemon 3.5.2-0ubuntu8, and I recently found I have this bug. For me it works to set the lid action to 'Off'. It is annoying though, as now I have to manually suspend before closing the lid. Has the patch been included in newer versions? Seems resolved in klaptopdaemon 4:3.5.8-0ubuntu1 (Kubuntu Gutsy). Thanks a lot! klaptopdaemon has been dropped from KDE 4.x |