Page 1 of 1

0.95 Refresh not working

Posted: Fri Feb 07, 2020 12:03 am
by Akovia
XnView: MP 0.95 - 64 bit
Arch Linux 64bit

Refresh does not find newly created files

Effect:
Files are not updated or shown in the GUI

To reproduce:
1. Browse to a folder with a gimp xcf file and open it.
2. Export an image from that xcf file to the existing folder. (png in this case)

Actual behaviour (bug):
File does not appear automatically after being created. Using F5, or the menu button View > Refresh does not have any effect.
The only way to update the folder and show the missing files is to browse to another folder and then back.

Expected behaviour:
Files show up when created, or at least when view is refreshed.

This log shows that the program does see the files as they were created, but they do not appear in the GUI.
Ar Tonelico - Render.png
Ar Tonelico - Render3.png

Code: Select all

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

Create Tree : File
Create Tree : Image
######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL /mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.xcf 
BitmapLoadThread :: stop()
## BitmapLoadThread :: load -1 -1 
## Bitmap :: load 0 
###### LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.xcf>
######### CategoryModel :: checkAndSave()
  ## BitmapLoadThread :: loaded 2000 4000 
## MyView::onLoaded </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.xcf> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.xcf> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.xcf> (1) 
## MyView::onLoaded ok 
### resetViewport (0x2012630)  ==> 795 597  (298 597) 0 0
######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL /mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.xcf 
BitmapLoadThread :: stop()
## BitmapLoadThread :: load -1 -1 
## Bitmap :: load 0 
###### LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.xcf>
######### CategoryModel :: checkAndSave()
  ## BitmapLoadThread :: loaded 1278 2409 
## MyView::onLoaded </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.xcf> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.xcf> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.xcf> (1) 
## MyView::onLoaded ok 
### resetViewport (0x2012630)  ==> 795 597  (316 597) 0 0
######### CategoryModel :: checkAndSave()
CheckContent...
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(19)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 1eeb9f0 
CHECK <1> 
sizeHints : 158 
### START 19 
######ThumbLoaderThread :: start : 1     -1 -1
LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png>
######### CategoryModel :: checkAndSave()
BitmapLoadThread :: stop()
### ThumbLoaderThread :: setFirstItemToLoad
 ** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL /mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png 
BitmapLoadThread :: stop()
## BitmapLoadThread :: load -1 -1 
## Bitmap :: load 0 
###### LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png>
######### CategoryModel :: checkAndSave()
## MyView::onLoaded </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png> (0) 
## MyView::onLoaded ok 
MyView::change /mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png 
## Bitmap :: load 0 
###### LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.png>
GFF :: LoadThumbnail : 71 135  (4) 
ThumbLoaderThread - ADD into DB (-1)


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

Create Tree : File
######ThumbLoaderThread :: forever : 1eeb9f0 
 ** start condition wait
######### CategoryModel :: checkAndSave()
BitmapLoadThread :: stop()
SORT the list...
TIME  0  
### ThumbLoaderThread :: updateFileList
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: updateFileList ok
sizeHints : 158 
CheckContent...
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(18)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 1eeb9f0 
CHECK <1> 
### START 18 
######ThumbLoaderThread :: start : 1     -1 -1
LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render3.xcf>
GFF :: LoadThumbnail : 72 135  (0) 
LOADED & CREATED
######ThumbLoaderThread :: forever : 1eeb9f0 
 ** start condition wait
SORT the list...
TIME  0  
### ThumbLoaderThread :: updateFileList
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: updateFileList ok
sizeHints : 158 
CheckContent...
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(19)
ThumbLoaderThread :: stop()
 ** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 1eeb9f0 
CHECK <1> 
sizeHints : 158 
### START 19 
######ThumbLoaderThread :: start : 1     -1 -1
LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png>
### ThumbLoaderThread :: setFirstItemToLoad
 ** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL /mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png 
BitmapLoadThread :: stop()
## BitmapLoadThread :: load -1 -1 
## Bitmap :: load 0 
###### LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png>
######### CategoryModel :: checkAndSave()
## MyView::onLoaded </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png> </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png> (0) 
## MyView::onLoaded ok 
MyView::change /mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png 
## Bitmap :: load 0 
###### LOAD BITMAP </mnt/odroid/Anime/Ar Tonelico (2006)/myart/Ar Tonelico - Render.png>
GFF :: LoadThumbnail : 67 135  (4) 
ThumbLoaderThread - ADD into DB (-1)
EDIT: Not sure if it's related, but sometimes I will browse to a folder and no thumbnails will show until I click on one of the file icons. Then all of the image thumbs will load. I haven't been able to determine a common factor as to when it happens, but it is quite frequent.

EDIT2: Attaching 30 second video showing it in action.
xnview-refresh.mkv.zip
(1.7 MiB) Downloaded 51 times

Re: 0.95 Refresh not working

Posted: Sat Feb 08, 2020 4:40 pm
by xnview
i've just tried and it works. Is it a big image?

Re: 0.95 Refresh not working

Posted: Sat Feb 08, 2020 11:10 pm
by Akovia
I wouldn't consider it big. It's 876x1280.

All I did was open the xcf and export a transparent png. Maybe you can see something with the files.

Here's the xcf
https://mega.nz/#!0E4TiYQY!UcQfo_MXwJDj ... kcddB_dGUI

and the exported png that wouldn't show.
https://mega.nz/#!od4lRAjB!6oqtlDPXxXfl ... xGtuw514UE

Re: 0.95 Refresh not working

Posted: Sat Feb 08, 2020 11:29 pm
by Akovia
After some more testing, it seems it might be size related. I tried a file just slightly smaller than the one I linked and it worked, as well as some other smaller images.

Is this a limitation of the software? I would think a manual refresh should still force a refresh the same as changing to a different folder and back.

Re: 0.95 Refresh not working

Posted: Sun Feb 09, 2020 2:17 pm
by xnview
Akovia wrote: Sat Feb 08, 2020 11:29 pm After some more testing, it seems it might be size related. I tried a file just slightly smaller than the one I linked and it worked, as well as some other smaller images.

Is this a limitation of the software? I would think a manual refresh should still force a refresh the same as changing to a different folder and back.
If you save the png in another folder, and copy it with file explorer in the folder watched by XnView?

Re: 0.95 Refresh not working

Posted: Sun Feb 09, 2020 6:59 pm
by Akovia
I think I understand the question.

I opened xnviewmp to a particular folder.
I used my file browser (Thunar) to copy a large file into that folder.

If that was right, then it did work as expected. The file showed up immediately and I didn't need to do a refresh.

Re: 0.95 Refresh not working

Posted: Mon Feb 10, 2020 6:59 am
by xnview
so it seems that the problem comes only if the file is currently written?

Re: 0.95 Refresh not working

Posted: Mon Feb 10, 2020 10:01 pm
by Akovia
xnview wrote: Mon Feb 10, 2020 6:59 am so it seems that the problem comes only if the file is currently written?
...and is of a certain size.
  • You CAN directly write a smaller file to a directory displayed by xnview and it will show up.
    You CAN NOT directly write a larger file to a directory displayed by xnview and have it show up. (Refresh doesn't help)
    You CAN copy a file of any size into a directory displayed by xnview and it will show up.