(In reply to flat from comment #34)
> Created attachment 129184 [details]
> pulse verbose log with 0001-card-log-the-reason-for-profile-changes.patch
>
> So interestingly enough I can't reproduce the issue using git master.
The first log with the crash shows a switch to the digital profile. Unfortunately, the crash happens before the log message I added is printed.
The first log shows four "audio-volume-change" sounds being played in quick succession during the crash. The volume changes are initiated by gnome-settings-daemon. Did you change the volume manually while disconnecting the headphones, or is this something that gnome-settings-daemon does automatically?
> Attached are two logs as one attachment. The second log starts at line 5308
> (Didn't want to spam attachments). The first log shows pulse crashing upon
> disconnecting the headphones. The second log shows pulse switching between
> 5.1-stereo and Analog Stereo working fine. If you rebase the patch on 10.0 I
> can try it again to see what was going on. Version 10.0 is the current
> version from Arch Linux's repos. I assume a commit since then must have
> fixed something either intentionally or unintentionally.
I don't think it's fixed in master, but I can anyway make a patch for 10.0. I'll change it so that the profile change reason is printed in an earlier phase. I'll also add some logging in an attempt to make it easier to track down the reason for the crash if it happens again.
(In reply to flat from comment #34) log-the- reason- for-profile- changes. patch
> Created attachment 129184 [details]
> pulse verbose log with 0001-card-
>
> So interestingly enough I can't reproduce the issue using git master.
The first log with the crash shows a switch to the digital profile. Unfortunately, the crash happens before the log message I added is printed.
The first log shows four "audio- volume- change" sounds being played in quick succession during the crash. The volume changes are initiated by gnome-settings- daemon. Did you change the volume manually while disconnecting the headphones, or is this something that gnome-settings- daemon does automatically?
> Attached are two logs as one attachment. The second log starts at line 5308
> (Didn't want to spam attachments). The first log shows pulse crashing upon
> disconnecting the headphones. The second log shows pulse switching between
> 5.1-stereo and Analog Stereo working fine. If you rebase the patch on 10.0 I
> can try it again to see what was going on. Version 10.0 is the current
> version from Arch Linux's repos. I assume a commit since then must have
> fixed something either intentionally or unintentionally.
I don't think it's fixed in master, but I can anyway make a patch for 10.0. I'll change it so that the profile change reason is printed in an earlier phase. I'll also add some logging in an attempt to make it easier to track down the reason for the crash if it happens again.