Crashing when adding my music to library. Rpi2

OSMC seems to crash when i add my music collection to the library. Running for a while, then crashes with a sad Smiley, and restarts
My music collection is located on my Synology NAS, and it crashes on both Samba or NFS.

I have made a fresh install (Alpha 4), fully updated through OSMC settings. OSMC skin. LAN with Fixed IP.

Just tried the same with Openelec and everything went fine.

Link to Kodi Old Log kodi.old.log

Link to kodi.log kodi.log

Set the “insecure” flag server side on the NFS shares and try again.

And, check the syslog on your server for error messages.

Thank you for your reply.

Insecure flag already set.

/volume1/SqueezeBox     192.168.1.151(rw,async,no_wdelay,insecure,no_root_squash,insecure_locks,sec=sys,anonuid=102 

No errors in syslog. Happens with both Samba and NFS.

This is a long shot but.delete the existing musicdb, reboot and try again

Narrowed it down to a single album that OSMC don’t like.
I have tried adding it to the library on the following systems, Openelec, Raspmc (Rpi), Android Kodi 14.1, Windows Kodi 14.1.
it only crashes on OSMC

Here is the Flac file info.

Sample Rate: 44KHz
Channels: 2
Bits Per Sample: 16
Size: 31,8MB (70% of original)
Original Size: 44,85MB
Average Bitrate: 1.001kbps
Compressor: libFLAC 1.2.1 20070917 (reference)

EDIT:
The debug log shows nothing, here are the last couple of lines, from where i start adding the files to the library
As soon as the file is opened it crashes

08:45:11 T:3024740352   DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
08:45:11 T:2759844896  NOTICE: Thread MusicInfoScanner start, auto delete: false
08:45:11 T:2759844896   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
08:45:11 T:2759844896   DEBUG: GOT ANNOUNCEMENT, type: 32, from xbmc, message OnScanStarted
08:45:11 T:3024740352   DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
08:45:11 T:2759844896   DEBUG: Process - Starting scan
08:45:11 T:2751456288  NOTICE: Thread MusicFileCounter start, auto delete: false
08:45:11 T:2751456288   DEBUG: Thread MusicFileCounter 2751456288 terminating
08:45:11 T:2759844896   DEBUG: DoScan Scanning dir 'smb://DISKSTATION/SqueezeBox/ny test/Rascal Flatts - Still Feels Good/' as not in the database
08:45:11 T:2759844896   DEBUG: CSMBFile::Open - opened SqueezeBox/ny test/Rascal Flatts - Still Feels Good/01 - Rascal Flatts - Take Me There.flac, fd=10001

That is odd.
Any chance you could upload the offending file somewhere so the devs can use it for testing?
If you haven’t got any online storage, dropbox or http://mega.co.nz are decent.

1 Like

I’m not sure about uploading the files, due to copyright issues. But I will be happy to provide the file/files for test only, if a developer contacts me in a pm.

Samples for use in software troubleshooting are covered under fair-use. There is no infringement issue here.

1 Like

You can get the file Here.

Place the file in a folder on a NFS or Samba share
Add the file to your music collection. Music → File → Add Music…
Then Scan folder to library. Context menu → Scan item to Library

Hope this is clear, if not please ask :smile:

I’ve grabbed it, I’ll test it tonight.

1 Like

Kodi - Win8.1 - NFS from a Debian box.
Browsing using the file manager to the Music directory where the problematic file resides in /Music/
Crashes out straight away.

22:30:16 T:4788 DEBUG: NFS: Refreshing context for 192.168.1.10/export/Music, old: 45638, new: 46240 22:30:16 T:4788 DEBUG: NFS: Using cached context. 22:30:16 T:4788 DEBUG: CNFSFile::Open - opened export/Music/06 - Rascal Flatts - Winner at a Losing Game.flac

Windows error report

Problem signature: Problem Event Name: APPCRASH Application Name: Kodi.exe Application Version: 14.0.0.0 Application Timestamp: 54990369 Fault Module Name: StackHash_52c3 Fault Module Version: 6.3.9600.17415 Fault Module Timestamp: 545041a0 Exception Code: c0000374 Exception Offset: PCH_B3_FROM_ntdll+0x0003CC2C OS Version: 6.3.9600.2.0.0.256.27 Locale ID: 2057 Additional Information 1: 52c3 Additional Information 2: 52c3b43b02c2ed819a587057b05769f8 Additional Information 3: 5535 Additional Information 4: 5535b4c8dd4194fca823bc8e7dc1c0b5

It is crashing my Qmmp on Ubuntu so it may be something wrong with this file after all. I cannot ever add it to playlist.

EDIT: I use libflac8 1.3.0-2ubuntu0.14.04.1

It works fine on Rythmbox though. Weird.

I pulled all the tag info from the file and it seems to be fine.

Using MP3Tag I pulled the tag info from Amazon,com and Kodi handled it correctly.
I think there maybe a limit to the number of characters allowed in the tag comments.r

Here is the “fixed” file.

Also ok on qmmp. I think that qmmp uses its own flac decoder which may be older that the one installed in the OS.

It may be similar with OSMC. Can anyone confirm which version of flac / libflac does osmc use? Maybe it can be upgraded?

EDIT: It wasn’t a problem with the comment. I edited the tag with easytag, changed nothing really, just added a char and then removed it. After changes are saved everything work correctly.
My guess is, that there was a problem with the file after all - of course tag related. After rewriting the tag the file should be playable everywhere.

Agreed, seems the comment isn’t the issue.
Well it’s going to bug me for a while, not knowing what the cause is.

My first thought was also the tags in the file, I then removed all the tags with Tag&Rename for Windows
I also tried renaming the files to 1.flac - 2.flac and so on

Here is part of EAC log

Good *.flac

Exact Audio Copy V0.99 prebeta 1 from 25. May 2007
EAC extraction logfile from 1. November 2007, 17:36

Poul Krebs / Kosmorama

Used drive  : HL-DT-STDVDRAM GSA-4081B   Adapter: 1  ID: 0

Read mode               : Secure
Utilize accurate stream : Yes
Defeat audio cache      : No
Make use of C2 pointers : Yes

Read offset correction                      : 667
Overread into Lead-In and Lead-Out          : No
Fill up missing offset samples with silence : Yes
Delete leading and trailing silent blocks   : No
Used interface                              : Native Win32 interface for Win NT & 2000
Gap handling                                : Not detected, thus appended to previous track

Used output format              : User Defined Encoder
Selected bitrate                : 1024 kBit/s
Quality                         : High
Add ID3 tag                     : No
Command line compressor         : C:\Programmer\Exact Audio Copy\FLAC\FLAC.EXE
Additional command line options : -6 -V -T "ARTIST=%a" -T "TITLE=%t" -T "ALBUM=%g" -T "DATE=%y" -T                 "TRACKNUMBER=%n" -T "GENRE=%m" -T "COMMENT=%e" %s -o %d

Bad *.flac

Exact Audio Copy V0.99 prebeta 4 from 23. January 2008

EAC extraction logfile from 6. February 2008, 23:51

Rascal Flatts / Still Feels Good

Used drive  : HL-DT-STDVDRAM GSA-4081B   Adapter: 1  ID: 0

Read mode               : Secure
Utilize accurate stream : Yes
Defeat audio cache      : No
Make use of C2 pointers : Yes

Read offset correction                      : 12
Overread into Lead-In and Lead-Out          : Yes
Fill up missing offset samples with silence : Yes
Delete leading and trailing silent blocks   : No
Null samples used in CRC calculations       : No
Used interface                              : Native Win32 interface for Win NT & 2000
Gap handling                                : Appended to previous track

Used output format              : User Defined Encoder
Selected bitrate                : 768 kBit/s
Quality                         : High
Add ID3 tag                     : Yes
Command line compressor         : C:\Programmer\Exact Audio Copy\FLAC\FLAC.EXE
Additional command line options : -6 -V -T "ARTIST=%a" -T "TITLE=%t" -T "ALBUM=%g" -T "DATE=%y" -T "TRACKNUMBER=%n" -T "GENRE=%m" -T "COMMENT=%e" %s -o %d