Version: (using KDE 4.1.2) Installed from: Unspecified Linux This is going to be a rather annoying bug report I'm afraid :-( I don't seem to be able to disable debugging output from KDE applications with kdebugdialog. Even with all items unchecked (including item 0), applications / libraries still produce some debugging output. Examples include: $ konqueror konqueror(23872) KonqViewManager::setCurrentProfile: "webbrowsing" localPath= "/home/pete/.kde4/share/apps/konqueror/profiles/webbrowsing" konqueror(23872) KonqClosedWindowsManager::removeClosedItemsConfigFiles: "/tmp/kde-pete/closeditems/" $ systemsettings systemsettings(23948) MainWindow::readMenu: "" Looking for children in ' "" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "advanced" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "advanced-user-settings" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "File Associations" ' "filetypes.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "filetypes.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Session Manager" ' "kcmsmserver.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmsmserver.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Nepomuk" ' "kcm_nepomuk.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcm_nepomuk.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Audio CDs" ' "audiocd.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "audiocd.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Solid" ' "kcm_solid.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcm_solid.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Input Actions" ' "khotkeys.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "khotkeys.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Autostart" ' "autostart.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "autostart.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "CDDB Retrieval" ' "libkcddb.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "libkcddb.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Service Manager" ' "kcmkded.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmkded.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Digital Camera" ' "kamera.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kamera.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "KDE Wallet" ' "kwalletconfig.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kwalletconfig.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "KDE Resources" ' "kresources.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kresources.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "system" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Login Manager" ' "kdm.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kdm.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Samba" ' "kcmsambaconf.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmsambaconf.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Task Scheduler" ' "kcm_cron.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcm_cron.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Power Management" ' "powerdevilconfig.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "powerdevilconfig.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "GRUB Editor" ' "kgrubeditor.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kgrubeditor.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "general" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "network-and-connectivity" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "bluetooth" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "sharing" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Local Network Browsing" ' "lanbrowser.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "lanbrowser.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "network-settings" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Proxy" ' "proxy.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "proxy.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Service Discovery" ' "kcm_kdnssd.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcm_kdnssd.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Connection Preferences" ' "netpref.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "netpref.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "computer-administration" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "keyboard-and-mouse" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Keyboard Shortcuts" ' "keys.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "keys.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Keyboard" ' "keyboard.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "keyboard.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Mouse" ' "mouse.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "mouse.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "display" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Size & Orientation" ' "randr.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "randr.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Power Control" ' "energy.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "energy.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Joystick" ' "joystick.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "joystick.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Date & Time" ' "clock.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "clock.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Font Installer" ' "fontinst.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "fontinst.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Sound" ' "kcm_phonon.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcm_phonon.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "personal" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "regional-and-language" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Spell Checker" ' "spellchecking.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "spellchecking.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Keyboard Layout" ' "keyboard_layout.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "keyboard_layout.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Country/Region & Language" ' "language.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "language.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "accessibility" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Text-to-Speech" ' "kcmkttsd.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmkttsd.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Accessibility" ' "kcmaccess.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmaccess.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "about-me" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Paths" ' "desktoppath.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "desktoppath.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Password & User Account" ' "kcm_useraccount.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcm_useraccount.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Default Applications" ' "componentchooser.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "componentchooser.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "look-and-feel" ' systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "desktop" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Multiple Desktops" ' "desktop.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "desktop.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Desktop Effects" ' "kwincompositing.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kwincompositing.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Screen Saver" ' "screensaver.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "screensaver.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Launch Feedback" ' "kcmlaunch.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmlaunch.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "window-behaviour" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Window-Specific" ' "kwinrules.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kwinrules.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Window Behaviour" ' "kwinoptions.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kwinoptions.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "notifications" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "System Bell" ' "bell.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "bell.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "System Notifications" ' "kcmnotify.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kcmnotify.desktop" systemsettings(23948) MainWindow::readMenu: " " Looking for children in ' "appearance" ' systemsettings(23948) MainWindow::readMenu: " " found module ' "Windows" ' "kwindecoration.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "kwindecoration.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Colours" ' "colors.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "colors.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Splash Screen" ' "ksplashthememgr.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "ksplashthememgr.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Emoticons" ' "emoticons.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "emoticons.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Icons" ' "icons.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "icons.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "GTK Styles and Fonts" ' "/usr/share/applications/kde4/kcmgtk4.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "/usr/share/applications/kde4/kcmgtk4.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Fonts" ' "fonts.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "fonts.desktop" systemsettings(23948) MainWindow::readMenu: " " found module ' "Style" ' "style.desktop" systemsettings(23948) MainWindow::readMenu: " " filename is "style.desktop" And many others. Sorry - wasn't really sure where to file this bug report either! This is quite annoying, since I can't really start KDE applications from the terminal without generating lots of output. Thanks!
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