Bug 1873051

Summary: audacity crashing randomly at start, seemingly always at exit
Product: [Fedora] Fedora EPEL Reporter: bugreports2005
Component: audacityAssignee: Jonathan Wright <jonathan>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: dtimms, gemi, ian.s.mcinerney, jorge.fabregas, manpaz, moez.roy, wadehamptoniv
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-09 03:17:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bugreports2005 2020-08-27 09:17:21 UTC
Description of problem:

Sometimes it launches, often not. I'm not sure how stable it runs when it does launch. The errors vary but hint of memory corruption, here's a few:

*** Error in `audacity': free(): invalid pointer: 0x0000000001f89af0 ***
*** Error in `audacity': corrupted size vs. prev_size: 0x00000000034bb4b0 ***
*** Error in `audacity': malloc(): memory corruption: 0x00000000029c23e0 ***



Version-Release number of selected component (if applicable):
audacity-2.3.3-2.el7.x86_64


How reproducible:
Doesn't happen every time when started, but often enough. Does seem to consistently crash at exit, though.


Steps to Reproduce:
1. run it
2.
3.

Actual results:
It often crashes. If it doesn't crash, exit it and it does.


Expected results:
Runs without crashing


Additional info:

The previous one, audacity-2.1.1-1.el7 doesn't crash like that. I suspect it helps that it was using wxGTK instead of wxGTK3. This warning printed at start may be relevant:

Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8).

Comment 1 Wade Hampton 2020-12-02 21:35:18 UTC
On Fedora 33, Audacity is crashing frequently.  It sometimes crashes at startup.  
Usually it crashes after clicking record (see log below).

From the command line, I ran audacity --test and captured the following:

$ audacity &
(Audacity:225852): GLib-GObject-WARNING **: 16:30:36.953: cannot register existing type 'GdkDisplayManager'
(Audacity:225852): GLib-CRITICAL **: 16:30:36.953: g_once_init_leave: assertion 'result != 0' failed
(Audacity:225852): GLib-GObject-CRITICAL **: 16:30:36.953: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(Audacity:225852): Gtk-WARNING **: 16:30:36.954: gtk_disable_setlocale() must be called before gtk_init()
...
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
...
16:30:38: Debug: ScreenToClient cannot work when toplevel window is not shown
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904
Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2839
Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4611
...
ALSA lib pcm.c:8545:(snd_pcm_recover) underrun occurred
Expression 'err' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3355
Expression 'ContinuePoll( self, StreamDirection_In, &pollTimeout, &pollCapture )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3881
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4253
audacity: src/hostapi/alsa/pa_linux_alsa.c:3387: OnExit: Assertion `data' failed.

I am using an external USB microphone and am connected via Alsa, not Jack.  The computer is up-to-date Fedora 33 on an HP I7 laptop with 8G RAM.

  audacity-2.3.3-7.fc33.x86_64
  kernel-5.9.11-200.fc33.x86_64
  compat-wxGTK3-gtk2-3.0.5.1-2.fc33.x86_64
  wxGTK3-3.0.5.1-2.fc33.x86_64

Comment 2 Fedora Admin user for bugzilla script actions 2022-08-15 00:08:30 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Troy Dawson 2024-07-09 03:17:28 UTC
EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug.