clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.73k stars 674 forks source link

Clementine 1.4 rc2 seg fault upon startup library scan on Kubuntu 22.04 LTS #7267

Closed tomachinz closed 1 year ago

tomachinz commented 1 year ago

Issue Resolved After Removing and Adding Back The Library Folder

update I was able to partly fix this my removing the library containing corrupt files. Quit and re-open, then add folder back, allows the library scan to complete now: 41,300 files or 130 days in size. This is one of those times where filing an issue forces one to deeply consider the possible issues and eventually, resolve them on ones own volition. I will now close the issue myself. Perhaps this will help somebody else one day.

Version

I was surprised to see my version* number seems newer than the latest build (which makes no sense). So I checked and it is installed via apt and apt thinks that it is rc1 but reports rc2 at the terminal with --version flag:

clementine/jammy,now 1.4.0~rc1+git347-gfc4cb6fc7+dfsg-2 amd64 [installed]
/usr/bin/clementine --version 
Clementine 1.4 rc2
17,158,024 bytes last mod Feb 13  2022

After posting this I will try the latest build if I can detect that it is newer (I don't think it is, although it is 2023 so perhaps).

System information

Operating System: Kubuntu 22.04 LTS freshly installed last month SNAPD REMOVED Clementine version: in the Discover app, under what's new I see 1.3.1 but lower down I see 1.4.0~rc1+git347-gfc4cb6fc7+dfsg-2

Multiple Music Libraries Added:

Expected / actual behavior

Upon launch, I expect the main window to appear, and for the library scan to take place then complete. What actually happens, is that I see the scan start lets say at 0% but it does not progress then the program crashes and disappears silently.

Terminal output

When started at the CLI, I see it is struggling with a particular track

$ clementine
18:49:38.165 ERROR GstEnginePipeline:718            1 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
18:49:38.165 ERROR GstEnginePipeline:718            1 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
18:49:38.165 ERROR GstEnginePipeline:718            1 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
18:49:38.165 ERROR GstEnginePipeline:718            1 "Failed to start"
18:49:38.165 ERROR GstEnginePipeline:718            1 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
18:49:38.165 ERROR GstEnginePipeline:718            1 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
18:49:38.165 ERROR GstEnginePipeline:718            1 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
18:49:38.165 ERROR GstEnginePipeline:718            1 "Failed to start"
18:49:38.170 WARN  unknown                          QTimeLine::start: already running 
18:49:38.171 WARN  unknown                          QTimeLine::start: already running 
Segmentation fault (core dumped)

Problematic track

Funk Affair Part 1 - High.wav is a WAV file actually named Funk Affair Part 2 - High.sfk so I would suggest it has to do with my lousy filename issue (wrong extension = my bad). Also my bad = file path contains an apostrophe: '. The app mediainfo is unable to identify the file format. Upon inspection with hexedit I see that I will need to remove the file:

00000000   53 46 50 4B  01 00 00 00  40 00 00 00  SFPK....@...
0000000C   22 35 A1 4C  10 00 00 00  02 00 00 00  "5.L........
00000018   00 04 00 00  28 5E FF 1F  00 00 00 00  ....(^......

Audacity can not open in .wav or .mp3 filename format.

After removing corrupt track

Now clementine will start and freeze but not seg fault. It has frozen at 12%, and the CLI shows:

$ clementine 
19:30:27.505 ERROR GstEnginePipeline:718            1 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
19:30:27.505 ERROR GstEnginePipeline:718            1 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
19:30:27.505 ERROR GstEnginePipeline:718            1 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
19:30:27.505 ERROR GstEnginePipeline:718            1 "Failed to start"
19:30:27.505 ERROR GstEnginePipeline:718            1 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
19:30:27.505 ERROR GstEnginePipeline:718            1 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
19:30:27.506 ERROR GstEnginePipeline:718            1 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-0/GstFileSrc:source:"
19:30:27.506 ERROR GstEnginePipeline:718            1 "Failed to start"
19:30:27.549 ERROR logging:66(GLib)                 Source ID 17 was not found when attempting to remove it
19:30:27.551 WARN  unknown                          QTimeLine::start: already running 
19:30:27.552 WARN  unknown                          QTimeLine::start: already running 
19:30:27.556 ERROR GstEnginePipeline:718            2 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-15/GstFileSrc:source:"
19:30:27.556 ERROR GstEnginePipeline:718            2 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
19:30:27.556 ERROR GstEnginePipeline:718            2 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-15/GstFileSrc:source:"
19:30:27.556 ERROR GstEnginePipeline:718            2 "Failed to start"
19:30:27.556 ERROR GstEnginePipeline:718            2 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-15/GstFileSrc:source:"
19:30:27.556 ERROR GstEnginePipeline:718            2 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
19:30:27.556 ERROR GstEnginePipeline:718            2 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-15/GstFileSrc:source:"
19:30:27.556 ERROR GstEnginePipeline:718            2 "Failed to start"
19:30:27.581 ERROR GstEnginePipeline:718            3 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-30/GstFileSrc:source:"
19:30:27.581 ERROR GstEnginePipeline:718            3 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
19:30:27.581 ERROR GstEnginePipeline:718            3 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-30/GstFileSrc:source:"
19:30:27.581 ERROR GstEnginePipeline:718            3 "Failed to start"
19:30:27.581 ERROR GstEnginePipeline:718            3 "../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-30/GstFileSrc:source:"
19:30:27.581 ERROR GstEnginePipeline:718            3 "No such file \"/media/tom/xfs500/MusicDrive/MusicQuarantineDIDNTMAKETHECUTYET/OTHERMUSICDIDNTMAKETHECUTYET/Bojan's Music/music90 gig/From_benn/DJ Mixes/Funk Affair - High Level/Funk Affair Part 1 - High.wav\""
19:30:27.581 ERROR GstEnginePipeline:718            3 "../libs/gst/base/gstbasesrc.c(3556): gst_base_src_start (): /GstPipeline:pipeline/GstURIDecodeBin:uridecodebin-30/GstFileSrc:source:"
19:30:27.581 ERROR GstEnginePipeline:718            3 "Failed to start"

Since it is still in this state, sitting at 12%, and no more text appearing at the CLI, the window is still visible and can manipulated I took the chance to open preferences and remove the library sitting on the faulty disc and click OK. When I click Remove folder button the UI freezes with the button in clicked down state and has been this way since I started typing this paragraph, thusly I will submit this issue and update if I can solve it or wait patiently if not hoping for resolution.

Thanks in advance. It is a great app apart from this.

tomachinz commented 1 year ago

Was about to close this issue but then I added ~/Music back into list of libraries and clementine is now doing a full library re-scan sitting at 3%. If it finishes I will close issue.

tomachinz commented 1 year ago

Just confirming I have fixed this myself... the cause was corrupt audio files that have been removed.