Unable to open a pdf file from SMB mount (gvfs)

Bug #1507893 reported by MichaelB
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
qpdfview
Invalid
Medium
Unassigned

Bug Description

Hi,

With qpdfview 0.4.15 (0.4.14 was ok) i'm unable to open pdf files from a SMB share (gvfs).
I message appear and say that is not possible to open my files.

I use Ubuntu 15.10, Gnome 3.16.

Thanks in advance!

MichaelB (mrbou)
description: updated
Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello Michael,

thank you for taking the time to report this! While qpdfview does not support anything but files internally, GVFS should use FUSE to make the SMB files look like any other local file to qpdfview. Could you run qpdfview in a Terminal, open the file and post any error messages here so that we can better determine what exactly qpdfview is trying to open? Thanks.

Best regards, Adam.

Revision history for this message
MichaelB (mrbou) wrote :

Hi, if i run "qpdfview" in a terminal OR by the normal way, i cannot select my GVFS share in the menu, appear only "Computer" and "Michael". See attachment

Revision history for this message
MichaelB (mrbou) wrote :

And here in attach the message that appear when i try to open a file from a GVFS share (SMB)

description: updated
Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello Michael,

the error message would indicate that GVFS is indeed forwarding qpdfview to a FUSE mount which should usually work and I currently have no idea why it should not...

You should be able to view the terminal error messages the following way: In a terminal run "qpdfview --unique" which will make that version the unique instance of qpdfview, then you can open the document from your file manager which will forward this request to the instance you just started and any error messages should then be displayed in that terminal.

Best regards, Adam.

Revision history for this message
MichaelB (mrbou) wrote :

Hello,

Below the result of my terminal output when i open a file from a GVFS (samba share), from Nautilus File manager.

michael@michael-ubuntu:~$ qpdfview --unique

Unknown MIME type: "application/octet-stream"
"Correspondance impossible pour le type de fichier de « /run/user/1000/gvfs/smb-share:server=192.168.X.XX,share=xxxxx/xyz.pdf » !

Best regards,
Michael

Revision history for this message
Adam Reichold (adamreichold) wrote : Re: [Bug 1507893] Re: Unable to open a pdf file from SMB mount (gvfs)

Hello again,

sorry that we have to do this in such small steps, but could you check
what running

file /run/user/1000/gvfs/smb-share:server=ABC,share=x/yz.pdf

produces? Does the name of the share or the file contain any special,
e.g. not latin1, characters?

Best regards, Adam.

Am 27.10.2015 um 11:09 schrieb MichaelB:
> Hello,
>
> Below the result of my terminal output when i open a file from a GVFS
> (samba share), from Nautilus File manager.
>
> michael@michael-ubuntu:~$ qpdfview --unique
>
> Unknown MIME type: "application/octet-stream"
> "Correspondance impossible pour le type de fichier de « /run/user/1000/gvfs/smb-share:server=192.168.X.XX,share=xxxxx/xyz.pdf » !
>
>
> Best regards,
> Michael
>

Revision history for this message
MichaelB (mrbou) wrote :

Hi Adam,

Result of your command are: No such file or directory
It was a space in the filename, i renamed but is the same result.

Best regards,
Michael

Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello again,

so that is at least consistent, if "file" cannot find the document, so
can't qpdfview.

Are you sure the share is actually mounted? I mean it could be that it
is mounted on demand and when one for example tries to open it via some
bookmark mechanism, the share might not be available until GVFS actually
mounts it. I admit that this is is a pure guess, but if "file" cannot
find it, qpdfview will not as well.

Best regards, Adam.

Am 27.10.2015 um 16:44 schrieb MichaelB:
> Hi Adam,
>
> Result of your command are: No such file or directory
> It was a space in the filename, i renamed but is the same result.
>
> Best regards,
> Michael
>

Revision history for this message
MichaelB (mrbou) wrote :

Share is mounted by nautilus and my mount is on the bookmark (not fstab). And if i right click on pdf file and choose another program (evince, ..) it open. But sadly when i choose qpdfview i got an error and i don't know why.

Best regards,
Michael

Revision history for this message
Adam Reichold (adamreichold) wrote :

Hello again,

let's take it from the top again. So I installed Samba here and used
gvfs-smb to mount a share via Thunar. What happens is that the document
is opened in exactly such a path as you posted here and there are no
errors. I also tried using an IP address instead of host name and spaces
in the share name and the file name. But also "file" is able to open the
document when using the full path from the command line.

So we have to find out where the difference lies and how that affects
qpdfview (and file). Could you try to paste the relevant part of output
of "gvfs-mount --list" and "gvfs-info
/run/user/1000/gvfs/smb-share:server=XYZ,share=ABC/"? Thanks

Best regards, Adam.

Am 27.10.2015 um 17:37 schrieb MichaelB:
> Share is mounted by nautilus and my mount is on the bookmark (not
> fstab). And if i right click on pdf file and choose another program
> (evince, ..) it open. But sadly when i choose qpdfview i got an error
> and i don't know why.
>
> Best regards,
> Michael
>

Revision history for this message
MichaelB (mrbou) wrote :

Hello Adam,

I don't know why but from today i can access pdf files with no more error from GVFS.. :)
I'll check in the next days if is still fine and will tell you.

Best regards,
Michael

Changed in qpdfview:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
chicoff (chicoff) wrote :

maybe is your problem related with this bug: https://bugzilla.gnome.org/show_bug.cgi?id=753561

Revision history for this message
Adam Reichold (adamreichold) wrote :

Marking as invalid as the upstream bug sounds like reasonable explanation and there were no reports of this resurfacing.

Changed in qpdfview:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.