Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832505 - media-sound/ardour-6.9 segmentation fault during first recording of a new session when started through pw-jack media-video/pipewire-0.3.44-r1
Summary: media-sound/ardour-6.9 segmentation fault during first recording of a new ses...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2022-02-01 12:31 UTC by paulverone91
Modified: 2023-06-06 06:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gdb-debug (gdb-debug.txt,23.79 KB, text/plain)
2022-02-01 12:31 UTC, paulverone91
Details
emerge-info (emerge--info.txt,6.02 KB, text/plain)
2022-02-01 12:32 UTC, paulverone91
Details
dmesg (dmesg.txt,50.43 KB, text/plain)
2022-02-12 16:10 UTC, paulverone91
Details

Note You need to log in before you can comment on or make changes to this bug.
Description paulverone91 2022-02-01 12:31:38 UTC
Created attachment 764093 [details]
gdb-debug

The segmentation fault happens only when stopping the very first recording of a new session in ardour ran through pipewire's pw-jack command.

Steps to reproduce the bug:
- Turn on computer 
- Login on KDE via .xinitrc
- Start ardour: $ pw-jack ardour6
- Create a New session
- Add a mono audio track
- Start recording
- Stop recording
- Segfault

Next time the session is opened, it's possible to record without problems.

Starting the computer, opening an existing session and starting recording works fine.
Comment 1 paulverone91 2022-02-01 12:32:33 UTC
Created attachment 764094 [details]
emerge-info
Comment 2 Jonas Stein gentoo-dev 2022-02-10 19:47:00 UTC
Please test, if it is fixed in -9999 already. If not you should report it upstream and link the ticket here.
https://tracker.ardour.org/my_view_page.php

We can not fix this in the ebuild without a patch.
Comment 3 paulverone91 2022-02-12 10:40:11 UTC
Version 9999 doesn't crash when following the steps to reproduce the bug.

I'd say it's fixed
Comment 4 Niklāvs Koļesņikovs 2022-02-12 12:19:35 UTC
Since the bug is about 0.3.44-r1  and it's fixed in git master, it might already be fix in 0.3.45_p20220205, too. If not, it's probably worth just adding another snapshot, because there's definitely interesting fixes since February 5.
Comment 5 paulverone91 2022-02-12 14:59:00 UTC
(In reply to Niklāvs Koļesņikovs from comment #4)
> Since the bug is about 0.3.44-r1  and it's fixed in git master, it might
> already be fix in 0.3.45_p20220205, too. If not, it's probably worth just
> adding another snapshot, because there's definitely interesting fixes since
> February 5.

I emerged ardour-9999 and tested the steps to reproduce the bug starting ardour with $ pw-jack ardour6 (pipewire-0.3.44-r1)

It seems to work fine.

Since you mentioned I upgraded pipewire and wireplumber (media-video/pipewire-0.3.45_p20220205 media-video/wireplumber-0.4.8-r1), reboot, and tested the steps to reproduce the bug starting ardour with $ pw-jack ardour6

It seems to work fine as well.

Note: with pipewire-0.3.45_p20220205 and old version of wireplumber (can't remember which), ardour crashed when trying to reproduce the bug.
Comment 6 paulverone91 2022-02-12 15:29:04 UTC
(In reply to paulverone91 from comment #5)
> (In reply to Niklāvs Koļesņikovs from comment #4)
> > Since the bug is about 0.3.44-r1  and it's fixed in git master, it might
> > already be fix in 0.3.45_p20220205, too. If not, it's probably worth just
> > adding another snapshot, because there's definitely interesting fixes since
> > February 5.
> 
> I emerged ardour-9999 and tested the steps to reproduce the bug starting
> ardour with $ pw-jack ardour6 (pipewire-0.3.44-r1)
> 
> It seems to work fine.
> 
> Since you mentioned I upgraded pipewire and wireplumber
> (media-video/pipewire-0.3.45_p20220205 media-video/wireplumber-0.4.8-r1),
> reboot, and tested the steps to reproduce the bug starting ardour with $
> pw-jack ardour6
> 
> It seems to work fine as well.
> 
> Note: with pipewire-0.3.45_p20220205 and old version of wireplumber (can't
> remember which), ardour crashed when trying to reproduce the bug.

Sorry, didn't test enough probably. 
It's crashing again with pipewire-0.3.45_p20220205 and wireplumber-0.4.8-r1
Comment 7 Niklāvs Koļesņikovs 2022-02-12 15:31:57 UTC
I see. I was wrong in assuming that the bug was in PipeWire. ;)


WirePlumber has relatively tight coupling to PipeWire. For now the assumption is that it's only WirePlumber needing new enough PipeWire but, if updating PW while keeping the old WP is failing, then perhaps it's even stricter and we need to make PipeWire also require certain minimum version of WirePlumber (or maybe just bump the subslot on each PipeWire update).
Comment 8 paulverone91 2022-02-12 16:10:26 UTC
(In reply to Niklāvs Koļesņikovs from comment #7)
> I see. I was wrong in assuming that the bug was in PipeWire. ;)
> 
> 
> WirePlumber has relatively tight coupling to PipeWire. For now the
> assumption is that it's only WirePlumber needing new enough PipeWire but, if
> updating PW while keeping the old WP is failing, then perhaps it's even
> stricter and we need to make PipeWire also require certain minimum version
> of WirePlumber (or maybe just bump the subslot on each PipeWire update).

Found some clues.

Here the steps:

- Downgraded to wireplumber-0.4.7-r2 and pipewire-0.3.44-r1
- Reboot
- Follow steps to reproduce bug
- Ardour doesn't crash when stop recording.
- Reboot
- Follow steps to reproduce bug
- Ardour crashes when stop recording

Then I upgraded again to wireplumber-0.4.8-r1 and pipewire-0.3.45_p20220205

-Reboot
- Follow steps to reproduce bug
- Ardour doesn't crash when stop recording.
- Reboot
- Follow steps to reproduce bug
- Ardour crashes when stop recording
Comment 9 paulverone91 2022-02-12 16:10:55 UTC
Created attachment 764935 [details]
dmesg
Comment 10 Niklāvs Koļesņikovs 2022-05-14 16:55:10 UTC
Is this still happening with PipeWire 0.3.51? Ardour seemed to be working fine when I tested it with the git master shortly before 0.3.51 was released.
Comment 11 paulverone91 2022-05-14 17:08:05 UTC
(In reply to Niklāvs Koļesņikovs from comment #10)
> Is this still happening with PipeWire 0.3.51? Ardour seemed to be working
> fine when I tested it with the git master shortly before 0.3.51 was released.

Still happening on my system, following the described steps, with same error posted in last dmesg:

RT-main-(nil)[3057]: segfault at 17ffca00 ip 00007fc4b1ce407b sp 00007fc49a7fb670 error 6 in libardour.so.3.0.0[7fc4b1b98000+701000]

After the first crash, next sessions record properly.
Comment 12 paulverone91 2022-10-16 13:04:53 UTC
(In reply to Niklāvs Koļesņikovs from comment #10)
> Is this still happening with PipeWire 0.3.51? Ardour seemed to be working
> fine when I tested it with the git master shortly before 0.3.51 was released.

Tested today with Ardour-7 and pipewire-0.3.59 and it works! 

The segfault still happens if using Ardour-6.9-r2 and pipewire-0.3.59
Comment 13 Miroslav Šulc gentoo-dev 2023-06-06 06:50:23 UTC
ardour-6.9 is gone