Can XnViewMP run without huge amount of logging data?

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

Post Reply
bin
Posts: 10
Joined: Tue Jan 22, 2019 8:53 am

Can XnViewMP run without huge amount of logging data?

Post by bin » Fri Jan 25, 2019 9:43 am

Using XnViewMP on linux

All actions result in vast amount of logging - is there a command switch to disable this please?

I know it's supposed to be useful and there have been cases where it is - but most of the time it's just loads of writes to my SSD.

Thanks

User avatar
m.Th.
XnThusiast
Posts: 1547
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Can XnViewMP run without huge amount of logging data?

Post by m.Th. » Fri Jan 25, 2019 4:55 pm

1. What logging do you see?
2. How (with what tool) do you see it?
m. Th.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

User avatar
xnview
Author of XnView
Posts: 31607
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Can XnViewMP run without huge amount of logging data?

Post by xnview » Sun Jan 27, 2019 3:38 pm

if you start XnViewMP from a terminal?
Pierre.

bin
Posts: 10
Joined: Tue Jan 22, 2019 8:53 am

Re: Can XnViewMP run without huge amount of logging data?

Post by bin » Wed Jan 30, 2019 7:13 am

The logging data produced is the same whether you run from cli or from the menu.

This is from my session run.log file as defined by LXDE

** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
** Message: main.vala:131: log directory: /home/robin/.cache/lxsession/Lubuntu
** Message: main.vala:132: log path: /home/robin/.cache/lxsession/Lubuntu/run.log


libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
==> 1.000000 101.600000 96.126316 (0)
XNVIEW restoreGeometry before : 640 480
XNVIEW restoreGeometry after : 850 620
w.init
XNVIEW SIZE 850 620


########### BrowserWindow :: BrowserWindow

MENU install : 34b13f0
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
########### BrowserWindow :: ok create (640 480)
BrowserWindow :: changeVisibility()
BrowserWindow :: changeVisibility()
BrowserWindow :: changeVisibility()
########### BrowserWindow :: restoreState (850 620)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
BrowserWindow :: restoreState => 850 620
=> 588 410
BrowserWindow :: restoreState ok => 588 410
XNVIEW SIZE ok
w.start
### BrowserWindow :: onStart go
#### onFavoriteDockVisible (1)
BookmarkNode::BookmarkNode : 0x377ae30
#### onCategoryDockVisible (1)
########### BrowserWindow :: restoreState (1920 999)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
BrowserWindow :: restoreState => 1920 999
=> 1658 644
BrowserWindow :: restoreState ok => 1658 644
### BrowserWindow :: onStart
BrowserWindow :: onStart 2
setPathname </home/robin/Pictures/iPhone/>
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(0)
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 3598ac0
######ThumbLoaderThread :: forever : 3598ac0
** start condition wait
### ThumbLoaderThread :: setFileList() after wait
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
## OPEN FOLDER
######ThumbLoaderThread :: forever 2 : 3598ac0
CHECK <0>
######ThumbLoaderThread :: forever : 3598ac0
** start condition wait
## OPEN DB FOLDER ok
## UPDATE DB FOLDER ok
## OPEN FOLDER ok
## updateLabels
## updateLabels ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
######### CategoryModel :: checkAndSave()
TIME 0
BitmapLoadThread :: stop()
Create children /home/robin/
Create children /home/robin/Pictures/
MyDirModelThread :: run
Create children /home/robin/Pictures/iPhone/
## OPEN FOLDER done
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(21)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 3598ac0
CHECK <20>
### START 21
######ThumbLoaderThread :: start : 20
### BrowserWindow :: finish
sizeHints : 128
###### onChildrenChecked 8 <Videos>
###### onChildrenChecked 1 <wallpapers-2018>
###### onChildrenChecked 0 <iPhone>
###### onChildrenChecked 7 <Templates>
###### onChildrenChecked 5 <Public>
###### onChildrenChecked 0 <Desktop>
ItemData :: update ==> IMG_0327.JPG OK
ItemData :: update ==> IMG_0328.JPG OK
ItemData :: update ==> IMG_0329.JPG OK
101 Unregistered schema namespace URI
101 Unregistered schema namespace URI
101 Unregistered schema namespace URI
ItemData :: update ==> IMG_0330.JPG OK
ItemData :: update ==> IMG_0331.JPG OK
ItemData :: update ==> IMG_0332.JPG OK
ItemData :: update ==> IMG_0333.JPG OK
ItemData :: update ==> IMG_0334.JPG OK
ItemData :: update ==> IMG_0335.JPG OK
ItemData :: update ==> IMG_0336.JPG OK
ItemData :: update ==> IMG_0337.JPG OK
ItemData :: update ==> IMG_0338.JPG OK
ItemData :: update ==> IMG_0339.JPG OK
ItemData :: update ==> IMG_0340.JPG OK
ItemData :: update ==> IMG_0341.JPG OK
ItemData :: update ==> IMG_0342.JPG OK
ItemData :: update ==> IMG_0343.JPG OK
ItemData :: update ==> IMG_E0053.JPG OK
ItemData :: update ==> IMG_E0218.JPG OK
ItemData :: update ==> IMG_E0257.JPG OK
######ThumbLoaderThread :: forever : 3598ac0
** start condition wait
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(21)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 3598ac0
CHECK <20>
### START 21
######ThumbLoaderThread :: start : 20
ItemData :: update ==> IMG_0327.JPG OK
ItemData :: update ==> IMG_0328.JPG OK
ItemData :: update ==> IMG_0329.JPG OK
ItemData :: update ==> IMG_0330.JPG OK
ItemData :: update ==> IMG_0331.JPG OK
ItemData :: update ==> IMG_0332.JPG OK
ItemData :: update ==> IMG_0333.JPG OK
ItemData :: update ==> IMG_0334.JPG OK
ItemData :: update ==> IMG_0335.JPG OK
ItemData :: update ==> IMG_0336.JPG OK
ItemData :: update ==> IMG_0337.JPG OK
101 Unregistered schema namespace URI
101 Unregistered schema namespace URI
101 Unregistered schema namespace URI
ItemData :: update ==> IMG_0338.JPG OK
ItemData :: update ==> IMG_0339.JPG OK
ItemData :: update ==> IMG_0340.JPG OK
ItemData :: update ==> IMG_0341.JPG OK
ItemData :: update ==> IMG_0342.JPG OK
ItemData :: update ==> IMG_0343.JPG OK
ItemData :: update ==> IMG_E0053.JPG OK
ItemData :: update ==> IMG_E0218.JPG OK
ItemData :: update ==> IMG_E0257.JPG OK
######ThumbLoaderThread :: forever : 3598ac0
** start condition wait
CategoryThread :: run
setPathname </home/robin/Pictures/wallpapers-2018/>
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(0)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 3598ac0
CHECK <0>
######ThumbLoaderThread :: forever : 3598ac0
** start condition wait
## OPEN FOLDER
## OPEN DB FOLDER ok
## UPDATE DB FOLDER ok
## OPEN FOLDER ok
## updateLabels
## updateLabels ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
######### CategoryModel :: checkAndSave()
TIME 0
BitmapLoadThread :: stop()
## OPEN FOLDER done
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(24)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 3598ac0
CHECK <23>
### START 24
######ThumbLoaderThread :: start : 23
sizeHints : 128
101 Unregistered schema namespace URI
101 Unregistered schema namespace URI
ItemData :: update ==> abstract-1779631.jpg OK
ItemData :: update ==> abstract-1780241.jpg OK
ItemData :: update ==> antelope-canyon-984055.jpg OK
ItemData :: update ==> city-sleeps.jpg OK
ItemData :: update ==> dreams.jpg OK
ItemData :: update ==> manhattan-336708.jpg OK
101 Unregistered schema namespace URI
ItemData :: update ==> Manjaro_organic_1920x1080.jpg OK
101 Unregistered schema namespace URI
101 Unregistered schema namespace URI
ItemData :: update ==> manjaro-vcr.jpg OK
ItemData :: update ==> matrix-manjaro.jpg OK
ItemData :: update ==> mountains-1412683.jpg OK
ItemData :: update ==> nature-3058859.jpg OK
ItemData :: update ==> nature-3181144.jpg OK
ItemData :: update ==> palm-beach.jpg OK
ItemData :: update ==> palm-wave.jpg OK
ItemData :: update ==> panorama-3629120.jpg OK
101 Unregistered schema namespace URI
ItemData :: update ==> reflection-3095708.jpg OK
ItemData :: update ==> sky-3189347.jpg OK
ItemData :: update ==> snow-3404534.jpg OK
ItemData :: update ==> summer-time.jpg OK
ItemData :: update ==> sun-ye0s2oy.jpg OK
ItemData :: update ==> sunset-3095689.jpg OK
ItemData :: update ==> texture-2666357.jpg OK
ItemData :: update ==> tree-736875.jpg OK
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such slot AbstractViewWindow::onPagePrevious()
QObject::connect: No such slot AbstractViewWindow::onPageNext()
QObject::connect: No such slot AbstractViewWindow::onPageFirst()
QObject::connect: No such slot AbstractViewWindow::onPageLast()
QObject::connect: No such slot AbstractViewWindow::onNormalize2()
QObject::connect: No such slot AbstractViewWindow::onAlign()
######ThumbLoaderThread :: forever : 3598ac0
** start condition wait
######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL /home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg
BitmapLoadThread :: stop()
LOAD INFO </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg>
######### CategoryModel :: checkAndSave()
BitmapLoadThread: load preview 160 120 (0)
## BitmapLoadThread :: load 160 120
## Bitmap :: load 2048
###### LOAD BITMAP </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg>
## onItemPressed
## BitmapLoadThread :: loaded 480 270
BitmapLoadThread: load full
## BitmapLoadThread :: load -1 -1
## Bitmap :: load 0
###### LOAD BITMAP </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg>
##PB connect <1onPagePrevious()>
##PB connect <1onPageNext()>
##PB connect <1onPageFirst()>
##PB connect <1onPageLast()>
##PB connect <1onNormalize2()>
##PB connect <1onAlign()>
MENU install : 388fc50
@@@@@@@@@@
Create window finished
==> 1920
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
MyView::change /home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg
## Bitmap :: load 0
###### LOAD BITMAP </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg>
## BitmapLoadThread :: loaded 3840 2160
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
TIME 0
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(23)
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 39474c0
######ThumbLoaderThread :: forever : 39474c0
** start condition wait
### ThumbLoaderThread :: setFileList() after wait
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
setCurrentFilename </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg>
######ThumbLoaderThread :: forever 2 : 39474c0
CHECK <0>
######ThumbLoaderThread :: forever : 39474c0
** start condition wait
### ThumbLoaderThread :: setFirstItemToLoad
** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######ThumbLoaderThread :: forever 2 : 39474c0
CHECK <0>
######ThumbLoaderThread :: forever : 39474c0
** start condition wait
## MyView::onLoaded </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg> </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg> </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg> (0)
## MyView::onLoaded ok
### resetViewport (36645b0) ==> 680 246 (437 246) 0 0


############################################ InfoPropertiesView

Create Tree : File
Create Tree : Image
## MyView::onLoaded </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg> <> </home/robin/Pictures/wallpapers-2018/abstract-1780241.jpg> (1)
########################################
############### UPDATE MENU ############
########################################
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
### ThumbLoaderThread :: setFileList(23)
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 39474c0
CHECK <0>
######ThumbLoaderThread :: forever : 39474c0
** start condition wait
#### 39ad6a0 : 127
### resetViewport (39b1180) ==> 195 28 (49 28) 0 0
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
### resetViewport (39b1180) ==> 195 28 (49 28) 0 0
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
########################################
############### UPDATE MENU ############
####QMutex: destroying locked mutex
QMutex: destroying locked mutex
####################################
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
########################################
############### UPDATE MENU ############
########################################
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
########################################
############### UPDATE MENU ############
########################################
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
########################################
############### UPDATE MENU ############
########################################
BITAMP VIEW 1 3840 2160 48 27 1.270000 1.250000
### resetViewport (39ad6a0) ==> 194 28 (48 27) 0 0
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
########################################
############### UPDATE MENU ############
########################################
### resetViewport (387d2d0) ==> 1920 913 (1623 913) 0 0
########################################
############### UPDATE MENU ############
########################################
BrowserWindow :: changeVisibility()
## BaseViewWindow :: ~BaseViewWindow()
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
######ThumbLoaderThread :: run : 39474c0 OK
## BaseViewWindow :: ~BaseViewWindow() ok
AbstractViewWindow :: ~AbstractViewWindow()
BitmapLoadThread :: stop()
######### CategoryModel :: checkAndSave()
BitmapLoadThread :: stop()
######### CategoryModel :: checkAndSave()
SAVE : 1920 999
BrowserWindow :: saveState => 1920 999
=> 1658 644
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
######ThumbLoaderThread :: run : 3598ac0 OK
AFTER WAIT
BitmapLoadThread :: stop()
BookmarkNode::~BookmarkNode : 0x377ae30

bin
Posts: 10
Joined: Tue Jan 22, 2019 8:53 am

Re: Can XnViewMP run without huge amount of logging data?

Post by bin » Wed Jan 30, 2019 9:28 am

As an update to this - so far the simple solution is to run xnview from a terminal session using

Code: Select all

nohup xnview > /dev/null 2>&1
this redirects all the cruft to /dev/null and also allows the terminal session to be close while leaving the program running.

Probably do some fiddling around to create a launcher for this -

UPDATE
1. Created text file

Code: Select all

#!/bin/sh
nohup xnview > /dev/null 2>&1
Saved to ~/.local/share/applications as goxnview.sh
Need to make that executable using chmod +x or by amending Properties>Permissions and check executable box.

2. In ~/.local/share/applications create desktop file

Code: Select all

[Desktop Entry]
Type=Application
Name=XnView Multi Platform
GenericName=XnViewMP
Comment=Graphic viewer, browser, converter
Exec=/home/YOURUSERNAME/.local/share/applications/goxnview.sh
Terminal=false
Icon=/opt/XnView/xnview.png
Categories=Graphics;
StartupNotify=true
MimeType=image/bmp;image/jpeg;image/png;image/tiff;image/gif;
Amend user name to fit and save as XnView.desktop
Last edited by bin on Fri Feb 01, 2019 9:15 am, edited 1 time in total.

lucmv
Posts: 14
Joined: Sun Dec 06, 2015 7:42 pm

Re: Can XnViewMP run without huge amount of logging data?

Post by lucmv » Fri Feb 01, 2019 12:59 am

The only file that seems affected in my machine is ~/.cache/lxsession/LXDE/run.log
Which is actually a symlink to /boot/run.log
Is it the same to you?

I don't like it because my /boot partition is not encrypted so I see this as a possible privacy or security breach.

I'll have to keep a watch on that file for some time to see if it contains anything useful ever. If not, I will probably replace it with a symlink to /dev/null or maybe some file in /tmp since /tmp is mounted on RAM. It's an idea.

bin
Posts: 10
Joined: Tue Jan 22, 2019 8:53 am

Re: Can XnViewMP run without huge amount of logging data?

Post by bin » Fri Feb 01, 2019 9:41 am

Hi

See above for details of workaround for all that logging.

Intrinsically there's nothing wrong with it - it is just not efficient.

As regards your run.log - that is puzzling.

My .xsession-errors file shows this

** Message: main.vala:99: Session is Lubuntu
** Message: main.vala:100: DE is LXDE
** Message: main.vala:131: log directory: /home/robin/.cache/lxsession/Lubuntu
** Message: main.vala:132: log path: /home/robin/.cache/lxsession/Lubuntu/run.log

Which means the file lives in the right place. I'm guessing this is defined in the lxsession but haven't looked in detail.

IF on your system it lives in /boot/run.log which is then symlinked to create a linked version in your ~/.cache/lxsession/LXDE/ then that's probably OK but very odd as it's a user session file and it makes no sense that it would be arranged that way. It would mean user session data being written to a file in /boot which just seems wrong. I'm guessing you installed from the Debian 9.x lxde iso? I haven't looked at that but may download and try it live to see what it does.

In the last couple of days I've switched back from Lubuntu to my old favourite Q4OS which runs the old KDE 3.5 DE on Debian (Stretch)

That's why I wanted to find a dev null solution as most DE's put all the logging through .xsession-errors and I've not found a way to mount that in tmpfs yet!!!

Post Reply