Bug 326273

Summary: When run from konsole, gwenview prints many useless logs
Product: [Applications] gwenview Reporter: Luca Carlon <carlon.luca>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: myriam, null
Priority: NOR    
Version First Reported In: 4.11.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luca Carlon 2013-10-19 17:12:58 UTC
This is the output I get when running gwenview from konsole and displaying some images:

gwenview(3994)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
gwenview(3994)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
gwenview(3994)/nepomuk (library): Could not find virtuoso to connect to. Aborting 
gwenview(3994)/kdeui (kdelibs): Attempt to use QAction "edit_redo" with KXMLGUIFactory! 
gwenview(3994)/kdeui (kdelibs): Attempt to use QAction "edit_undo" with KXMLGUIFactory! 
"/org/freedesktop/UDisks2/drives/VMware_Virtual_IDE_CDROM_Drive_10000000000000000001" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/Floppy_Drive" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/drives/VMware_2c_VMware_Virtual_S" : property "Drive" does not exist 
"/org/freedesktop/UDisks2/block_devices/fd0" : property "Name" does not exist 
"/org/freedesktop/UDisks2/drives/Floppy_Drive" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/Floppy_Drive" : property "Device" does not exist 
"/org/freedesktop/UDisks2/drives/VMware_2c_VMware_Virtual_S" : property "DeviceNumber" does not exist 
"/org/freedesktop/UDisks2/drives/VMware_2c_VMware_Virtual_S" : property "Device" does not exist 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed. 
gwenview(3994) Gwenview::ViewMainPage::url: Condition ' d->currentView() ' failed.

This is pretty bothering.

Reproducible: Always

Steps to Reproduce:
1. Run gwenview from a shell passing . as the first param in directory where some images are stored.
2. Open one of the images in the list.
3. Press the next button some times. Every time the next button is pressed, a new log is printed.
Actual Results:  
Useless logs are printed.

Expected Results:  
The application seems to be running normally, no need to inform me of anything. No log should be printed.

Part of these logs are printed by many other KDE applications.
Comment 1 Jekyll Wu 2013-10-19 21:18:10 UTC
run 'kdebugdialog' and uncheck as many components as you want
Comment 2 Luca Carlon 2013-10-20 00:27:22 UTC
All those debug messages results with "Disable all debug output" checked in kdebugdialog.
Comment 3 null 2018-07-25 19:15:02 UTC
I'm going to close this, because nowadays Gwenview runs pretty silently when started from a shell (there is still some output if you happen to run into an actual problem, but none of the warnings from above).

Feel free to open a new bug should you still encounter too much log spam, and add the specific situation that happens in.
Comment 4 Luca Carlon 2018-07-27 17:49:32 UTC
Much better now. But still I see this:

mCurrentMainPageId == 'StartMainPageId'

when running it without arguments and closing it.
Comment 5 null 2018-07-27 17:53:32 UTC
What version is that? I remember we recently touched exactly this, so perhaps in 18.04 or in 18.08 this should be fixed.

For me, current master and a clean config is absolutely silent on first startup.
Comment 6 Luca Carlon 2018-07-27 18:04:37 UTC
Version 17.12.3. Perfect then! Thanks.