Bug 421626 - Streaming from samba shares is broken since apps 20.04
Summary: Streaming from samba shares is broken since apps 20.04
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.04.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-16 16:04 UTC by Vladimir Yerilov
Modified: 2020-06-02 10:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yerilov 2020-05-16 16:04:05 UTC
SUMMARY
Since KDE apps 20.04 streaming videos (mp3 music is fine though) from samba shares is impossible. Here's what VLC throws at me when I try to open a video file:
```
Your input can't be opened:
VLC is unable to open the MRL 'smb://10.0.0.1/Video (at ASMT)/YI000201.MP4'. Check the log for details.
```
Here is what's going on in terminal where Dolphin is launched from:
```
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
VLC media player 3.0.10 Vetinari (revision 3.0.10-0-g7f145afa84)
[000055e82296a620] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QFSFileEngine::open: No file name specified
[00007f4800001620] smb stream error: open failed for '10.0.0.1/Video (at ASMT)/YI000201.MP4' (Invalid argument)
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty
QObject::~QObject: Timers cannot be stopped from another thread
```

STEPS TO REPRODUCE
1. Open SMB v1 or v2 only share
2. Click on video to open it in your media player
3. Observe the fail

OBSERVED RESULT
Described above.

EXPECTED RESULT
I wish it could be at least as it was before the update to 20.04 apps.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Manjaro Linux 20.0
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 15.4.2

ADDITIONAL INFORMATION
No changes in smb.conf were done, it's still the same as it was before updates for KDE apps and frameworks. Tried with Dolphin 20.07.70, the result is the same.
Comment 1 Vladimir Yerilov 2020-05-16 16:11:58 UTC
Sorry I'm not that into KDE development to recognize what to blame for this bug -- Dolphin or KIO. I just know I should report it (should have reported it as soon as I faced it almost a month ago).

Fun fact: streaming of the video in Dolphin's preview pane works!
Comment 2 Nate Graham 2020-05-16 17:42:42 UTC
What happens if you open VLC directly with that URL? e.g. `vlc 'smb://10.0.0.1/Video (at ASMT)/YI000201.MP4'`?

Do you have the kio-fuse package installed?
Comment 3 Patrick Silva 2020-05-16 23:20:11 UTC
I can confrm an error message with VLC installed via flatpak/flathub.
VLC from ubuntu bionic repos downloads the video and plays it.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Comment 4 Vladimir Yerilov 2020-05-17 04:27:59 UTC
(In reply to Nate Graham from comment #2)
> What happens if you open VLC directly with that URL? e.g. `vlc
> 'smb://10.0.0.1/Video (at ASMT)/YI000201.MP4'`?
> 
> Do you have the kio-fuse package installed?

Hi Nate. Here is the output:

```
$ vlc 'smb://10.0.0.1/Video (at ASMT)/YI000201.MP4'
VLC media player 3.0.10 Vetinari (revision 3.0.10-0-g7f145afa84)
[00005600b472e620] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f2f48001620] smb stream error: read failed (Software caused connection abort)
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f2f48066070] smb stream error: read failed (Software caused connection abort)
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f2f48077c40] smb stream error: read failed (Software caused connection abort)
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f2f40001cc0] smb stream error: read failed (Software caused connection abort)
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
[00007f2f4c001100] smb stream error: read failed (Software caused connection abort)
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
QFileSystemWatcher::removePaths: list is empty
QFileSystemWatcher::removePaths: list is empty
QObject::~QObject: Timers cannot be stopped from another thread
```
Comment 5 Harald Sitter 2020-05-18 10:56:03 UTC
Seems like the VLC build itself is broken seeing as it cannot stream from smb at all.
Comment 6 Vladimir Yerilov 2020-05-18 11:43:16 UTC
At first I thought it might be a VLC issue, but SMPlayer cannot play too:
```
...
QFSFileEngine::open: No file name specified
libpng warning: iCCP: known incorrect sRGB profile
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
QFSFileEngine::open: No file name specified
This is SMPlayer v. 20.4.2 (revision 9306) running on Linux
...
Using netbios name REIWA.
Using workgroup WORKGROUP.
gensec_spnego_client_negTokenTarg_step: SPNEGO(ntlmssp) login failed: NT_STATUS_WRONG_CREDENTIAL_HANDLE
[smb] Could not open from LAN: 'smb://10.0.0.1/Video (at ASMT)/YI000201.MP4'
Failed to open smb://10.0.0.1/Video (at ASMT)/YI000201.MP4.
Exiting... (Errors when loading file)
```
Comment 7 Harald Sitter 2020-05-18 11:56:13 UTC
My point is: it's not a dolphin issue if vlc fails to play the smb URL without dolphin involvement. It may however still be underneath VLC... e.g. if both players use libsmbclient then libsmbclient may well be broken. I don't know what they use under the hood though :)
Comment 8 Vladimir Yerilov 2020-05-18 15:18:48 UTC
(In reply to Harald Sitter from comment #7)
> My point is: it's not a dolphin issue if vlc fails to play the smb URL
> without dolphin involvement. It may however still be underneath VLC... e.g.
> if both players use libsmbclient then libsmbclient may well be broken. I
> don't know what they use under the hood though :)

Yeah, me too. I'm just puzzled by this happened only right after the update to Dolphin 20.04, I had read Nate's blog about Dolphin's samba-related improvements and decided to give it a try. First it made me laugh but soon it got forgotten since I use NFS as a main way to access my network stuff.
Comment 9 Bug Janitor Service 2020-06-02 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Harald Sitter 2020-06-02 08:25:40 UTC
Best take this to vlc and/or the samba bug tracker. Seeing as streaming isn't working when dolphin isn't involved either this isn't a problem in Dolphin (there still may be one but currently there is no evidence of that).
Comment 11 Vladimir Yerilov 2020-06-02 10:32:01 UTC
Oops, totally forgot about this issue.
Yes, it is upstream related, either vlc and/or smplayer or smb(client?).
I tested in Ubuntu Gnome, errors are the same, but no problem with Ububntu's default video player (Totem?).