<table><tr><td style="">feverfew added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23384">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D23384#569926" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D23384#569926</a>, <a href="https://phabricator.kde.org/p/ngraham/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@ngraham</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D23384#569645" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D23384#569645</a>, <a href="https://phabricator.kde.org/p/fvogt/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@fvogt</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><p><strong>Issue #1:</strong></p>

<p>That happens because the .desktop file sets <tt style="background: #ebebeb; font-size: 13px;">X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb</tt>:<br />
 <a href="https://code.videolan.org/videolan/vlc/blob/master/share/vlc.desktop.in#L124" class="remarkup-link" target="_blank" rel="noreferrer">https://code.videolan.org/videolan/vlc/blob/master/share/vlc.desktop.in#L124</a></p></div>
</blockquote>

<p>I'm not sure about that. If I remove that line from VLC's installed desktop file, the problem still happens. And SMPlayer exhibits the same problem yet its desktop file doesn't define <tt style="background: #ebebeb; font-size: 13px;">X-KDE-Protocols</tt> at all: <a href="https://sourceforge.net/p/smplayer/code/HEAD/tree/smplayer/trunk/smplayer.desktop" class="remarkup-link" target="_blank" rel="noreferrer">https://sourceforge.net/p/smplayer/code/HEAD/tree/smplayer/trunk/smplayer.desktop</a></p></div>
</blockquote>

<p>This isn't reaching KIOFuse at all. I believe this is related to this bug and that you've also blogged about:<br />
<a href="https://bugs.kde.org/show_bug.cgi?id=330192" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=330192</a><br />
<a href="https://pointieststick.com/2018/01/17/videos-on-samba-shares/" class="remarkup-link" target="_blank" rel="noreferrer">https://pointieststick.com/2018/01/17/videos-on-samba-shares/</a></p>

<p>This can be solved in this patch (and I did, although I removed it at Harald's request). I think I'll move it back in, and will leave it if it does solve this issue for you.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p><strong>Issue #2:</strong></p>

<p>The only explanation I have for that is that totem for some reason starts reading the file from the end.<br />
 If you start <tt style="background: #ebebeb; font-size: 13px;">kio-fuse -d</tt> manually (kill the other kio-fuse process first) and then use totem again, what's the debug output</p></blockquote>

<p>There is no debug output, and the whole file is downloaded locally as with the other apps. It seems like Totem is not getting the FUSE mount path; it gets an <tt style="background: #ebebeb; font-size: 13px;">smb://</tt> URL and it or KIO downloads the file normally. Again, this happens even if I open the file from the FUSE mount path itself.</p>

<p>I can confirm that the FUSE path handoff is working properly. For example if I open <tt style="background: #ebebeb; font-size: 13px;">smb://gaston@living-room-pc/Users/Gaston/Desktop/Shep Face Code.txt</tt> in Gedit, Gedit displays the file's path as follows: <a href="https://phabricator.kde.org/F7791491" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F7791491: Screenshot_20191130_133857.png</a></p></blockquote>

<p>You must be doing something wrong. FUSE provides output of all calls that it receives (and how kio-fuse responds). Let me write the instructions more verbosely for CLI to make sure no steps are missed:<br />
<tt style="background: #ebebeb; font-size: 13px;">$ killall kio-fuse</tt><br />
`$ export QT_LOGGING_RULES="*.debug=true"<br />
<tt style="background: #ebebeb; font-size: 13px;">$ kio-fuse $myFavLocation -d &> ~/kio-fuse-debug.txt</tt> (I recommend <tt style="background: #ebebeb; font-size: 13px;">$myFabLocation</tt> isn't empty if you haven't installed the <tt style="background: #ebebeb; font-size: 13px;">kio-fuse-tmpfiles.conf</tt> exclusion file at the system level.)</p>

<p>Then open the file in the media player. Once your done simply attach <tt style="background: #ebebeb; font-size: 13px;">~/kio-fuse-debug.txt</tt> here.<br />
It's really important for us to know what kind of read requests are being called to help us diagnose the issue.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p><strong>Issue #3:</strong></p>

<p>Everything is in a separate process and async already. When/how does it happen?</p></blockquote>

<p>When I open a large video file from the hidden mount path in any of the media player apps. KIO (or something) downloads the entire file, during which time Dolphin freezes. The moment the network activity ends because the file is finished downloading, Dolphin becomes responsive again. It's 100% reproducible for me.</p></blockquote>

<p>I'm a bit confused. Which one of the three are you doing:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">Opening a KIO Url via Dolphin.</li>
<li class="remarkup-list-item">Opening a KIOFuse mount local URL via Dolphin.</li>
<li class="remarkup-list-item">Opening a KIOFuse URL via the media players file picker.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23384">https://phabricator.kde.org/D23384</a></div></div><br /><div><strong>To: </strong>feverfew, fvogt, davidedmundson, dfaure, ngraham<br /><strong>Cc: </strong>sitter, davidedmundson, kde-frameworks-devel, ngraham, LeGast00n, GB_2, michaelh, bruns<br /></div>