Summary: | KDEBugDialog doesn't disable all debugging output. | ||
---|---|---|---|
Product: | [I don't know] kde | Reporter: | Peter Lewis <pete> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | antonio, cubranic, faure, psychonaut |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Peter Lewis
2008-10-28 15:23:12 UTC
Hmmm... I also just noticed that this got added to the kst ui category, even though I only selected ui in the menu of categories... This looks a kde bug rather than anything to do with kst. (In reply to comment #0) > This is quite annoying, since I can't really start KDE applications from the > terminal without generating lots of output. Not entirely true, you can suppress the output by redirecting it to /dev/null. For example: $ systemsettings &>/dev/null (note: this is general for any UNIX application.) (In reply to comment #3) > you can suppress the output by redirecting it to /dev/null. > For example: > $ systemsettings &>/dev/null > (note: this is general for any UNIX application.) Well yes that's true as a sort of workaround, but I'm then also suppressing any desired output from the program proper that I might be interested in (i.e. stuff in channel 0, if I understand the system properly?) Anyway, it strikes me that this is still a bug, as the behaviour is not as expected, and doesn't make launching programs from the terminal very functional. I have the same problem with KDE 4.6.2 (KUbuntu Natty). Tons of debugging output to the console, despite the settings in kdebugdialog not to print it. Does this still happen with KDE 4.7? If yes, can you post an updated example of debug output being printed out? I'm still getting some output (but less) in KDE 4.7.4 with Qt 4.8.0. But, it seems only related to Qt now. E.g. % konqueror Pattern: ^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$ was rewritten to: ^[^<]*(<[\w\W]*([\w\W])>)[^>]*$|^#(\w+)$ QPainter::begin: Widget painting can only begin as a result of a paintEvent QPainter::translate: Painter not active QPainter::setClipRect: Painter not active QPainter::hasClipping: Painter not active QPainter::setPen: Painter not active QPainter::setBrush: Painter not active QPainter::drawRects: Painter not active % systemsettings QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. Thanks. Yep, these are Qt warnings. [if you're compiling your own Qt, you could pass it -DQT_NO_WARNING_OUTPUT] The QDBus one is under discussion, the other one could come from plasma or KHTML... (I'll make qDebug/qWarning print the process information in Qt 5...) If you want this fixed, please find out which application is outputting these warnings, so we can at least reassign this bug correctly. After finding about the kdebugdialog command, I'm still getting this in okular (KDE 4.8.4 with Qt 4.8.2): okular(7913)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x1174930 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes. Related to this: wouldn't be "cleaner" for a final user to just have the output suppressed by default? I don't see why a basic user would want to see all this debug information since it might get confused as errors. Thanks, Antonio Antonio, this warning is fixed in KDE 4.9.1, see bug 261538. Hi Chris, Thanks for the update :) By the way, are there any plans on putting debug messages silent by default? Should I open a new ticket to request that feature as a nice-to-have? Cheers, Antonio Still reproducible for me on KDE 4.14.9. In kdebugdialog I have "Disable all debug output" checked, but some KDE applications continue to log messages to the console. For example: $ kwrite foo.md kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.sheet.binary.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.addin.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.sheet.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.presentation.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-word.template.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-excel.template.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.template.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-word.document.macroEnabled.12" kwrite(27279) KMimeTypeRepository::parents: "/usr/share/mime/subclasses" refers to unknown mimetype "application/vnd.ms-powerpoint.slide.macroEnabled.12" Tristan: this is because these are warnings, not debug messages. With kdebugdialog --fullmode you can turn off individual warnings .... oh except that this particular one uses a debug area (7012) which isn't listed, oops. That's kdelibs4 though, I'm not sure it's still released. Well, I can still fix it in git, just in case ;) Long term (KF5/Qt5), we're adopting what Qt does. Warn for API misuse (programmer errors), but not for things that can happen like bad data. And debug output is off by default in frameworks. In theory, that should mean silence ;) I'll mark this bug as fixed, please open *separate* issues for any new warning, otherwise this bug becomes a bit of a catch-all. Git commit ca98e574c445d8b8483d4130cab438993a8e5add by David Faure. Committed on 28/09/2015 at 21:05. Pushed by dfaure into branch 'KDE/4.14'. Remove usage of undefined debug area 7012; turn noisy warning into a debug. M +1 -1 kdecore/services/kmimetyperepository.cpp M +1 -1 kded/kbuildservicefactory.cpp M +3 -3 kded/kbuildservicetypefactory.cpp http://commits.kde.org/kdelibs/ca98e574c445d8b8483d4130cab438993a8e5add |