When I try to play certain audio files from a NAS over SMB protocol, I get the “sad face” and Kodi restarts. Looking into journal, I have found the following:
Feb 25 12:02:03 Vero mediacenter[394]: /usr/bin/mediacenter: line 185: 534 Segmentation fault sudo -u osmc $KODI --standalone
I did a small research with the following results:
The playback even does not start
I can play mp3 files but not wma or flac
I can play all kinds of audio files from a local storage
I was able to play files over SMB before the January update of OSMC (not 100% sure)
So at the moment not much to go on. I can see you are using kodi smb mounts, rather than kernal mounts; which is fine, but you should get better throughput using kernal mounts.
it may be worth try changing to kernel/fstab mounts and see if you are still getting the segmentation faults:
please, let us know NAS this is, model, brand , firmware version, etc.
I strongly support Tom’s suggestion to use kernel smb code with the fstab configuration instead of the smb implementation of the kodi mediacenter.
In addition I’ve to further ideas:
If you’re still using the mediacenter smb access, you can influence the maximum SMB protocol to use namely SMB1, SMB2 and SMB 3 at Settings → Services → SMB Client → Maximum protocol version. Please, try all these whether it makes a difference with your NAS.
Edit the file /home/osmc/.kodi/userdata/advancedsettings.xml and insert the xml tags <advancedsettings> ... <loglevel>3</loglevel> <debug> <extralogging>true</extralogging> <setextraloglevel>32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536 </setextraloglevel> <showloginfo>true\</showloginfo> </debug> ... </advancedsettings>
reboot
reproduce the issue
upload the log set using grab-logs -A or the MyOSMC method in the GUI and provide the URL, here
remove the added code from /home/osmc/.kodi/userdata/advancedsettings.xml
go to Settings → System → Logging and Reset to Defaults at the bottom