0.83 Linux: NFSv4 "setNativeLocks failed"

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
RM2016
Posts: 4
Joined: Sun Nov 27, 2016 5:28 am

0.83 Linux: NFSv4 "setNativeLocks failed"

Post by RM2016 »

Hello,

System:

Code: Select all

Linux myHostname 4.8.0-1-amd64 #1 SMP Debian 4.8.5-1 (2016-10-28) x86_64 GNU/Linux
NFSv4-mount options:

Code: Select all

#mount -a
192.168.0.4:/home/test on /home/test type nfs4 (rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.10,local_lock=none,addr=192.168.0.4)
xnview command:

Code: Select all

xnview picture.jpg
problem/error:
xnview opens the file and shows the picture, but if i try to close xnview it hung up with the repeating message "setNativeLocks failed"

Code: Select all

########################################
############### UPDATE MENU ############
########################################
## BaseViewWindow :: ~BaseViewWindow()
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: stop() ok
######ThumbLoaderThread :: run : 2aa1ca0 OK
QMutex: destroying locked mutex
## BaseViewWindow :: ~BaseViewWindow() ok
AbstractViewWindow :: ~AbstractViewWindow()
BitmapLoadThread :: stop()
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
^C

Any idea's?

[edit] the "local_lock" mount-Option ist not used in NFSv4, because NFSv4 includes serverside filelocking.
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.83 NFSv4 "setNativeLocks failed"

Post by xnview »

you have that only when you start xnview with an image file?
Pierre.
RM2016
Posts: 4
Joined: Sun Nov 27, 2016 5:28 am

Re: 0.83 NFSv4 "setNativeLocks failed"

Post by RM2016 »

same error.

Code: Select all

#/bin/bash
xnview test.pdf
output:

Code: Select all

## OPEN FOLDER done
setCurrentFilename </home/foo/test.pdf>
ThumbLoaderThread - ADD into DB (2174)
ItemData :: update ==> test.pdf 
ItemData :: update ==> test.pdf OK 
SIZE : 0 253  (-1)
SIZE : 0 117  (-1)
### ThumbLoaderThread :: setFirstItemToLoad
### ThumbLoaderThread :: setFirstItemToLoad ok
######ThumbLoaderThread :: forever 2 : 19a9080 
CHECK <0> 
######ThumbLoaderThread :: forever : 19a9080 
SIZE : 0 253  (-1)
SIZE : 0 117  (-1)
########################################
############### UPDATE MENU ############
########################################
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
^C

edit: the error occurs everytime if i close xnview. the program hungs up till i press CTRL+C to abort manually.

edit: the error occurs with NFSv4 and with NFSv4.1
RM2016
Posts: 4
Joined: Sun Nov 27, 2016 5:28 am

Re: 0.83 NFSv4 "setNativeLocks failed"

Post by RM2016 »

new info: it's possible, that it isn't an NFS related issue.

filesystem:

Code: Select all

#mount -l /
/dev/sda1 on / type ext4 (rw,relatime,data=ordered)
command:

Code: Select all

xnview /test.pdf
error:

Code: Select all

########################################
############### UPDATE MENU ############
########################################
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
setNativeLocks failed: Die Ressource ist zur Zeit nicht verfügbar
^C

same error from local ext4-filesystem.

Is there a possibilty to check xnview deeper?
User avatar
xnview
Author of XnView
Posts: 46257
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.83 NFSv4 "setNativeLocks failed"

Post by xnview »

It seems that the problem is known on the Qt API side, when settings are saved
https://bugreports.qt.io/browse/QTBUG-46762
Pierre.
RM2016
Posts: 4
Joined: Sun Nov 27, 2016 5:28 am

Re: 0.83: NFSv4 "setNativeLocks failed"

Post by RM2016 »

I will check it.
Post Reply