By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1655

Summary: New stderr messages as a result of commit 5354555
Product: TDE Reporter: Darrell <darrella>
Component: other (any)Assignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: blocker CC: bugwatch, darrella, kb9vqf, slavek.banko
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: Other   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 1687    
Attachments: tdepowersave : fix warning in getting charge level units
tdepowersave : more accurate reporting failure while acquire org.freedesktop.Policy.Power
Debugging patch for kpasswdserver message
tdepowersave : fix setting cpu frequence without sufficient privileges

Description Darrell 2013-09-07 14:35:19 CDT
Commit 5354555 (2013-08-26) fixed a problem where certain kdError and kdWarning messages did not display. As a result, those messages are now seen in the user's xsession-error log. The result is revealing various bugs that have long existed but never previously exposed. I'm starting this bug report as a collection portal for those new kdError and kdWarning messages to allow for debugging and resolution.

* tdepowersave: WARNING: Unknown error while acquire org.freedesktop.Policy.Power interface

* tdepowersave: WARNING: Couldn't request charge_level.unit for udi: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00 /PNP0C0A:00/power_supply/BAT0/

* tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver!

* tdeio (KIOConnection): ERROR: Header read failed, errno=104

* tdeio (KIOConnection): ERROR: Header has invalid size (-1)

* tdeio (KIOConnection): ERROR: Could not write data

* tdeio (TDELauncher): ERROR: SlavePool: No communication with slave.

* tdecore (TDEProcess): WARNING: _attachPty() 17

* tdecore (TDEProcess): WARNING: _attachPty() 13

* tdesu: WARNING: unknown super user command

* main(): initialising

* tdeparts: WARNING: StatusBarExtension::removeStatusBarItem. Widget not found : [KPushButton pointer (0x8b670c0) to widget CancelButton, geometry=100x30+0+0]

* TQColor::setRgb: RGB parameter(s) out of range

* TQClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

* found visual with alpha support

Note: I'm testing patches proposed in the dev mail list for "tdesu: WARNING: unknown super user command"
Comment 1 Darrell 2013-09-07 15:32:59 CDT
* creating: `uname -n`;1378584682;742270;16597_TIME0:
(where uname -n is actually the hostname of the machine)
Comment 2 Darrell 2013-09-07 16:17:53 CDT
Regarding "tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver!" that likely is resolved somewhere in tdeioslave, but I can repeatedly invoke the message by starting akregator. Perhaps that information will help with debugging.

Another new message:

* Xlib XKB extension major=1 minor=0

I'm preparing some patches to help identify from where some of these new messages are generated.
Comment 3 Darrell 2013-09-07 18:23:30 CDT
* tdecore (KLibLoader): WARNING: KLibrary: symbol not found

I can invoke that message by starting kmail.
Comment 4 Slávek Banko 2013-09-07 21:56:51 CDT
* tdesu: WARNING: unknown super user command

Fixed in GIT hash 11b5fd8f.
Comment 5 Darrell 2013-09-07 23:31:49 CDT
Patches mentioned in Comment 1 pushed to git in commits:

tdelibs:
7f26e9d0
e4f16abb

tdebase:
f123d99f
Comment 6 Darrell 2013-09-07 23:57:27 CDT
Updated message strings with module name:

* [tdecore-tdeapplication] Found visual with alpha support

* [kcontrol-access] Xlib XKB extension major=1 minor=0

* [tdecore-tdestartupinfo] creating: `uname -n`;1378603393;768750;15758_TIME0:


A new previously unseen message (I have no idea how to invoke):

* undecodable token: \001b(hex)[?1015h
* undecodable token: \001b(hex)[?1015l

Possible patch?:

https://bugs.kde.org/show_bug.cgi?id=138740


And another:

* [dcopserver] Corrupt data!
Comment 7 Darrell 2013-09-08 00:09:34 CDT
* tdecore (TDEConfigDialogManager): WARNING: A widget named 'kcfg_ConfirmArticleDelete' was found but there is no setting named 'ConfirmArticleDelete'

To cause this message:

1. Start akregator.
2. Read at least one article.
3. Delete all fetched articles.
4. Close akregator to the system tray.
5. Open akregator.

Notice the view pane still shows the last read article but the article no longer exists in the fetched feeds.
Comment 8 Darrell 2013-09-08 00:11:50 CDT
Regarding:

tdepowersave: WARNING: Couldn't request charge_level.unit for udi: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/

This message repeats about once per second and results in a seriouslylarge xsession-error log.
Comment 9 Darrell 2013-09-09 11:32:34 CDT
> * tdesu: WARNING: unknown super user command
> Fixed in GIT hash 11b5fd8f.
Yes, fixed. :-)
Comment 10 Darrell 2013-09-09 12:02:33 CDT
Regarding the following messages:

* [tdecore-tdeapplication] Found visual with alpha support
* [kcontrol-access] Xlib XKB extension major=1 minor=0
* [tdecore-tdestartupinfo] creating: `uname -n`;1378603393;768750;15758_TIME0:
* tdecore (TDEProcess): WARNING: _attachPty() XX

Possibly at one time these messages were useful to somebody for debugging, but these messages now seem like nothing more than noise. Either the kdebug redirect should be to a specific kdebug item number ( kdebug(xxx) rather than kdebug() ), which would allow users to disable in kdebugdialog, or the messages should be deleted or commented out.
Comment 11 Darrell 2013-09-30 14:29:07 CDT
Of the messages cited in this report, the following seem important for R14 RC1:

* tdepowersave: WARNING: Couldn't request charge_level.unit for udi: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00 /PNP0C0A:00/power_supply/BAT0/

* tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver!

* tdeio (TDEIOConnection): ERROR: Header read failed, errno=104

* tdeio (TDEIOConnection): ERROR: Header has invalid size (-1)

* tdeio (TDEIOConnection): ERROR: Could not write data

* tdeio (TDELauncher): ERROR: SlavePool: No communication with slave.

* [dcopserver] Corrupt data!

* tdecore (KLibLoader): WARNING: KLibrary: symbol not found

* tdeparts: WARNING: StatusBarExtension::removeStatusBarItem. Widget not found : [KPushButton pointer (0x8b670c0) to widget CancelButton, geometry=100x30+0+0]

* TQColor::setRgb: RGB parameter(s) out of range

* TQClipboard::setData: Cannot set X11 selection owner for CLIPBOARD


In comment 10 I proposed a fix for some of the messages. If the solution is redirecting to a specific kdebug item number, then those item numbers should be disabled by default.

Regarding comment 2:

* tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver!

I'm guessing, but I don't use tdewallet. Purely a wild guess.
Comment 12 Slávek Banko 2013-10-02 15:05:43 CDT
Created attachment 1531 [details]
tdepowersave : fix warning in getting charge level units

Power supply energy informations in sysfs are always in µWh.
https://www.kernel.org/doc/Documentation/power/power_supply_class.txt

TDE hardware library internally uses Wh.
Since charge level unit are always Wh.

I think that the warning is therefore unnecessary.
Comment 13 Slávek Banko 2013-10-02 16:57:57 CDT
Created attachment 1532 [details]
tdepowersave : more accurate reporting failure while acquire org.freedesktop.Policy.Power

The patch does not fix failure while acquire interface org.freedesktop.Policy.Power only extends the warning report.
Comment 14 Slávek Banko 2013-10-02 17:00:10 CDT
By the way, I get the following:

tdepowersave: WARNING: Acquire org.freedesktop.Policy.Power interface failed with error: Connection ":1.24" is not allowed to own the service "org.freedesktop.Policy.Power" due to security policies in the configuration file
Comment 15 Darrell 2013-10-02 20:16:45 CDT
With the patches I no longer see the "charge_level.unit" messages. That keeps the xsession-error log smaller rather than growing at a rate of one message every second. :-)

I see the following in the xsession-error log:

tdepowersave: WARNING: Acquire org.freedesktop.Policy.Power interface failed with error: Connection ":1.24" is not allowed to own the service "org.freedesktop.Policy.Power" due to security policies in the configuration file

The message seems to make sense, but what is the remedy to fix? Is there an option in TDEPowersave?

The following message appears, but I probably never noticed before:

tdepowersave: ERROR: Could not set CPU Freq, this not the needed privileges.

The English is awkward and why is TDEPowersave trying to change the CPU frequency? I believe that requires superuser privileges?
Comment 16 Darrell 2013-10-03 14:51:57 CDT
Created attachment 1534 [details]
Debugging patch for kpasswdserver message

I created a debugging patch for the message 'tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver!'.

In tdelibs/tdeio/tdeio/slavebase.cpp, there are two places that invoke that warning message. The patch isolates from which part of the code. The message now can be isolated:

tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver (checkCachedAuthentication)!

Thus the message is created from calling SlaveBase::checkCachedAuthentication.

Would seem the cause is either checkAuthInfo(TDEIO::AuthInfo) or dcopclient?
Comment 17 Darrell 2013-10-03 16:37:37 CDT
A wee bit embarrassing. :-)

The cause of the kpasswdserver messages was me and is related to bug report 1470. I had created my own respective kpasswdserver.desktop, stored in my TDEDIRS directory, and had set X-TDE-Kded-load-on-demand=false. The only role commit 5354555 had with this message is actually allowing the message to print.

That said, the debugging patch I created might prove useful in the long term. I'll push to git if somebody agrees.
Comment 18 Slávek Banko 2013-10-05 11:56:34 CDT
Created attachment 1535 [details]
tdepowersave : fix setting cpu frequence without sufficient privileges

I added a condition to not been adjusted frequency when changed schema or handling resume signal and user not have sufficient privileges.

Please, test it.
Comment 19 Slávek Banko 2013-10-05 13:17:20 CDT
(Odpověď na komentář #16)
> Vytvořena příloha 1534
> Debugging patch for kpasswdserver message
> 
> I created a debugging patch for the message 'tdeio (tdeioslave): WARNING: Can't
> communicate with kded_kpasswdserver!'.
> 
> In tdelibs/tdeio/tdeio/slavebase.cpp, there are two places that invoke that
> warning message. The patch isolates from which part of the code. The message
> now can be isolated:
> 
> tdeio (tdeioslave): WARNING: Can't communicate with kded_kpasswdserver
> (checkCachedAuthentication)!
> 
> Thus the message is created from calling SlaveBase::checkCachedAuthentication.
> 
> Would seem the cause is either checkAuthInfo(TDEIO::AuthInfo) or dcopclient?

I think it is a good idea to be able to recognize individual messages.
For me: go ahead and push it.
Comment 20 Darrell 2013-10-05 15:20:20 CDT
Debugging patch pushed to in commit c9e64428.

I rebuilt tdepowersave with the cpu frequency patch. I no longer see any messages in my xsession-errors log.
Comment 21 Slávek Banko 2013-10-05 19:11:59 CDT
Comment on attachment 1531 [details]
tdepowersave : fix warning in getting charge level units

Pushed to GIT in hash 10c13fde.
Comment 22 Slávek Banko 2013-10-05 19:13:55 CDT
Comment on attachment 1532 [details]
tdepowersave : more accurate reporting failure while acquire org.freedesktop.Policy.Power

Pushed to GIT in hash d36ef501 (tdepowersave) and 95b83ac2 (kpowersave).
Comment 23 Slávek Banko 2013-10-05 19:15:05 CDT
Comment on attachment 1535 [details]
tdepowersave : fix setting cpu frequence without sufficient privileges

Pushed to GIT in hash 03857a55 (tdepowersave) and 055857b2 (kpowersave).
Comment 24 Timothy Pearson 2013-11-08 12:03:57 CST
If I follow correctly, the following messages remain to be addressed for R14 RC1:

* tdeio (TDEIOConnection): ERROR: Header read failed, errno=104

* tdeio (TDEIOConnection): ERROR: Header has invalid size (-1)

* tdeio (TDEIOConnection): ERROR: Could not write data

* tdeio (TDELauncher): ERROR: SlavePool: No communication with slave.

* [dcopserver] Corrupt data!

* tdecore (KLibLoader): WARNING: KLibrary: symbol not found

* tdeparts: WARNING: StatusBarExtension::removeStatusBarItem. Widget not found
: [KPushButton pointer (0x8b670c0) to widget CancelButton, geometry=100x30+0+0]

* TQColor::setRgb: RGB parameter(s) out of range

* TQClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

Of these messages, the ones that concern me most are these, as they are likely indicative of a strange user-visible failure occurring somewhere:
* [dcopserver] Corrupt data!
* tdecore (KLibLoader): WARNING: KLibrary: symbol not found

I'd like to see that last message expanded to include at least the mangled C++ symbol name and library file name, and possibly the demangled symbol name instead.

Tim
Comment 25 Darrell 2013-11-08 13:06:23 CST
There probably are additional messages we have not added to this list but the messages you listed would seem to warrant concern. The messages themselves indicates something awry. I'm not seeing anything obvious in the way of crashes or lock-ups, but we have many paper cut bug reports that might be related to these now-visible messages.

When we resolve those messages I'll open individual reports for any remaining messages, which will help tracking and debugging.

> I'd like to see that last message expanded to include at least the mangled C++
> symbol name and library file name, and possibly the demangled symbol name instead.

If you push a patch to git I'll start testing. I have seen the message in xsession-errors from other causes too, although I have not taken time to note how the message is generated in those instances.
Comment 26 Timothy Pearson 2013-11-09 02:46:15 CST
(In reply to comment #25)
> There probably are additional messages we have not added to this list but the
> messages you listed would seem to warrant concern. The messages themselves
> indicates something awry. I'm not seeing anything obvious in the way of crashes
> or lock-ups, but we have many paper cut bug reports that might be related to
> these now-visible messages.
> 
> When we resolve those messages I'll open individual reports for any remaining
> messages, which will help tracking and debugging.
> 
> > I'd like to see that last message expanded to include at least the mangled C++
> > symbol name and library file name, and possibly the demangled symbol name instead.
> 
> If you push a patch to git I'll start testing. I have seen the message in
> xsession-errors from other causes too, although I have not taken time to note
> how the message is generated in those instances.

On further investigation it looks like the library loader prints detailed error information one line after the "symbol not found" message.  Can you post the line after the warning message so I can track down the problem?

Thanks!
Comment 27 Darrell 2013-11-09 11:59:04 CST
> Can you post the line after the warning message so I
> can track down the problem?
I don't see any such follow-up messages. :-( Here is what I did if you want to confirm:

* Open konsole
* tail -f ~/.xsession-errors
* Start KMail
* Watch the output of konsole
Comment 28 Timothy Pearson 2013-11-10 01:53:39 CST
(In reply to comment #27)
> > Can you post the line after the warning message so I
> > can track down the problem?
> I don't see any such follow-up messages. :-( Here is what I did if you want to
> confirm:
> 
> * Open konsole
> * tail -f ~/.xsession-errors
> * Start KMail
> * Watch the output of konsole

Thanks for the instructions; I easily replicated the problem and fixed both the vague error message and the WARNING spew.  The latter was related to the SSL library attempting to resolve symbols without first checking if the existed, and is fixed in GIT hash e757d3d.
Comment 29 Timothy Pearson 2013-11-10 01:57:02 CST
I can't seem to replicate this message:
[dcopserver] Corrupt data!

Can you give instructions on how to generate it?

Thanks!

Tim
Comment 30 Darrell 2013-11-10 09:41:35 CST
>Thanks for the instructions; I easily replicated the problem and fixed both
I'll test today.

>Can you give instructions on how to generate it?
Nope. :-( I see that message occasionally. Likewise with some of the other messages. They don't always appear. I will write a nominal watchdog script in the hope of capturing some of these messages.
Comment 31 Darrell 2013-11-10 10:32:09 CST
>Thanks for the instructions; I easily replicated the problem and fixed both
Yes, the error message is now gone when using KMail. :-)
Comment 32 Darrell 2013-11-11 12:21:27 CST
Tim, I am able to trigger two of the reported messages with repeatability.

========================================
main(): initialising

This is caused by starting KAlarm.

To view the message:

* If KAlarm is running, then terminate the app and kill the kalarmd process.

* Open Konsole and run: tail -f ~/.xsession-errors

* Open the mini-cli (Alt-F2) and run kalarm.

* Watch the Konsole output.

The message is generated from tdepim/kalarm/main.cpp:127.

This seems like a useless message. We can either delete the kdDebug output or change the message to something sane, such as "KAlarm: initialising."

Thoughts?

========================================
tdeio (TDEIOConnection): ERROR: Could not write data

This message could be generated by other triggers but here is one repeatable trigger.

This particular trigger could be related to bug 1382.

I can trigger the ERROR message only during the initial start of my Trinity session. Toggling the check box during the session has no effect on my system.

To view the message:

* "Right-click" on the desktop.

* From the popup menu select Configure Desktop.

* Select Behavior->Device Icons.

* Disable Show Device Icons.

* Restart the Trinity session.

* Open Konsole and run: tail -f ~/.xsession-errors

* Enable Show Device Icons.

* Watch the Konsole output.

Which device icons are enabled makes no difference on my system. I disabled all of them and saw the same result.
Comment 33 Darrell 2013-11-11 14:47:56 CST
Tim, I am able to repeatedly trigger a third message reported in this bug report.

This message could be generated by other triggers but here is one repeatable trigger.

========================================
tdeparts: WARNING: StatusBarExtension::removeStatusBarItem. Widget not found : [KPushButton pointer (0x87a7838) to widget CancelButton, geometry=100x30+0+0]

* Open a compressed archive with Ark.

Either start Ark and then open the archive or open an archive in Ark by double-clicking on the archive file in Konqueror.
Comment 34 Darrell 2013-11-11 16:56:17 CST
I found how to trigger another of the reported messages.

This message could be generated by other triggers but here is one repeatable trigger.

========================================
TQClipboard::setData: Cannot set X11 selection owner for CLIPBOARD

* Open Konsole and run: tail -f ~/.xsession-errors

* Open Konqueror

* Cut (not copy) a file from one directory to another.
Comment 35 Darrell 2013-11-11 18:25:48 CST
* undecodable token: \001b(hex)[?1015h

I don't know explicitly how to trigger these messages, but I've narrowed the source of the messages to konsole. The only time I might see the messages is when using konsole.

After determining konsole was the cause, a little digging revealed the messages are generated from within tdebase/konsole/konsole/TEmuVt102.cpp.

Browsing the code indicates a likely cause is an escape sequence that is not recognized in the code.

As mentioned in comment 6, a possible fix:

Bug report:
https://bugs.kde.org/show_bug.cgi?id=138740

The actual patch:
(https://projects.kde.org/projects/kde/applications/konsole/repository/revisions/35e9cd847a236e4b495cb1c03347ee8f59a4d8e8/diff/src/ColorSchemeManager.cpp)

Trinity does not have ColorSchemeManager.cpp, but the bug report indicates a possible cause: supporting 24-bit color specifications in escape sequences.

For future users mystified by not knowing the source of these messages, I would like to patch the printf statement:

AS IS:
printf("undecodable "); scan_buffer_report();

CHANGE TO:
printf("[konsole TEmuVt102] Undecodable/unrecognized "); scan_buffer_report();

Can we add additional debugging text to the printf statement or scan_buffer_report function?
Comment 36 Darrell 2013-11-14 10:52:28 CST
Regarding the "undecodable token: \001b(hex)[?1015h" messages:

I pushed a patch in commit 6409e490 to clarify the source of the message. The patch does not resolve the problem in any way.

Regarding the "main(): initialising" message:

I pushed a patch in commit 8289b3d2. This patch resolves the problem of revealing the source of the message.
Comment 37 Timothy Pearson 2013-11-14 13:17:21 CST
I have commented out the KAlarm initialization message as I see no use for it unless kalarm is actively being debugged by a developer.

"tdeio (TDEIOConnection): ERROR: Could not write data" might be related to this line in tdebase/kcontrol/konq/desktopbehavior_impl.cpp:
kapp->dcopClient()->send( "menuapplet*", "menuapplet", "configure()", data );
Comment 38 Darrell 2013-11-14 13:33:31 CST
>I have commented out the KAlarm initialization message as I see no use for it
Okeydokey!

>"tdeio (TDEIOConnection): ERROR: Could not write data" might be related to...
Does that mean you're thinking of a fix?
Comment 39 Timothy Pearson 2013-11-16 23:47:35 CST
I've spent quite a bit of time attempting to track down the Konsole undecodable token warning, and while I don't have a fix, the sequences are being sent by vim (in my testing only with the inkpot color scheme) and appear to be invalid.  See the following two pages for my queries to Stack Overflow and the inkpot color scheme author:

http://stackoverflow.com/questions/20024211/strange-escape-sequence-sent-by-vim-to-terminal

https://github.com/ciaranm/inkpot/issues/8

Furthermore, the warning is only printed when Konsole is not compiled in release mode (i.e. when NDEBUG is not set), and is not related to the linked KDE4 Konsole patch, therefore I don't think I will spend much more time on this particular message unless someone can give a clear description of the escape codes being sent by vim.
Comment 40 Darrell 2013-11-17 15:08:21 CST
I think the next thing to do is open new reports for each questionable message and close this bug report. That will allow easier tracking.
Comment 41 Darrell 2013-11-18 21:10:13 CST
To facilitate debugging I'm closing this bug report, which has become too long to follow. For unresolved messages reported here, refer to bug reports 1713 through 1722.