Flac files cause Audacity to crash

Version 2.0.0
OSX 10.6.8

Audacity keeps crashing when I try to apply an “export WAV” chain to Flac files.

Has anyone else run into this problem?

Bleakley

I installed from DMG.

Bleakley

Do the FLAC files open OK in Audacity if you import them one at a time rather than using a Chain?

No, it crashes when I open the individually, too.

Here is the crash report from the chains -

Process: Audacity [82289]
Path: /Applications/Audacity (2.0.0)/Audacity.app/Contents/MacOS/Audacity
Identifier: net.sourceforge.audacity
Version: 2.0.0.0 (2.0.0.0)
Code Type: X86 (Native)
Parent Process: sh [82286]

Date/Time: 2012-04-17 20:22:52.304 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Interval Since Last Report: 5622095 sec
Crashes Since Last Report: 8
Per-App Interval Since Last Report: 296 sec
Per-App Crashes Since Last Report: 3
Anonymous UUID: B07EEF9D-678F-4515-87C5-7857579C2443

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000010e0ffe
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0xffff0f0e __memcpy + 1902
1 com.apple.HIToolbox 0x9aae7404 CArray::ReplaceElements(long, long, long, void const*) + 132
2 com.apple.HIToolbox 0x9ab0c052 CUnicodeTextension::UnicodeReplaceRange(long, long, TReplaceParams const&, unsigned char, unsigned char) + 1904
3 com.apple.HIToolbox 0x9ab0c509 CUnicodeTextension::ReplaceRange(long, long, TReplaceParams const&, unsigned char, unsigned char) + 101
4 com.apple.HIToolbox 0x9aafd5cd CReplaceTextCommand::DoMainAction() + 67
5 com.apple.HIToolbox 0x9aafd035 CTextensionEditCommand::DoIt(short*) + 29
6 com.apple.HIToolbox 0x9aafc920 CTextensionCommand::Execute(short*) + 54
7 com.apple.HIToolbox 0x9ab029c9 OpaqueTXNObject::ExecuteCurrCommand() + 113
8 com.apple.HIToolbox 0x9ab02f11 OpaqueTXNObject::NewCommand(short, AttrObjModifier const*, TKeyDownParams*, TReplaceParams*) + 1061
9 com.apple.HIToolbox 0x9aaf0030 DoSetDataCommand(OpaqueTXNObject*, unsigned long, unsigned long, TReplaceParams*) + 299
10 com.apple.HIToolbox 0x9aaf7fd3 TXNSetData + 683
11 Audacity 0x00418fa5 wxMacMLTEControl::SetTXNData(wxString const&, unsigned long, unsigned long) + 165
12 Audacity 0x004190b3 wxMacMLTEControl::WriteText(wxString const&) + 195
13 Audacity 0x00418c98 wxTextCtrl::WriteText(wxString const&) + 168
14 Audacity 0x004c5a99 wxLogWindow::DoLogString(wchar_t const*, long) + 137
15 Audacity 0x00531dc6 wxLog::DoLog(unsigned long, wchar_t const*, long) + 342
16 Audacity 0x004c8083 wxLogWindow::DoLog(unsigned long, wchar_t const*, long) + 99
17 Audacity 0x00037bbb wxLog::OnLog(unsigned long, wchar_t const*, long) + 235
18 Audacity 0x005315c1 wxVLogMessage(wchar_t const*, char*) + 113
19 Audacity 0x0053163b wxLogMessage(wchar_t const*, …) + 27
20 Audacity 0x001277a6 Importer::Import(wxString, TrackFactory*, Track***, Tags*, wxString&) + 1734

And here is the crash report from opening them individually -

Process: Audacity [82386]
Path: /Applications/Audacity (2.0.0)/Audacity.app/Contents/MacOS/Audacity
Identifier: net.sourceforge.audacity
Version: 2.0.0.0 (2.0.0.0)
Code Type: X86 (Native)
Parent Process: sh [82383]

Date/Time: 2012-04-17 20:25:33.823 -0400
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6

Interval Since Last Report: 5622248 sec
Crashes Since Last Report: 11
Per-App Interval Since Last Report: 339 sec
Per-App Crashes Since Last Report: 6
Anonymous UUID: B07EEF9D-678F-4515-87C5-7857579C2443

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000017ffff0
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0xffff0f32 __memcpy + 1938
1 com.apple.HIToolbox 0x9aae7404 CArray::ReplaceElements(long, long, long, void const*) + 132
2 com.apple.HIToolbox 0x9ab0c052 CUnicodeTextension::UnicodeReplaceRange(long, long, TReplaceParams const&, unsigned char, unsigned char) + 1904
3 com.apple.HIToolbox 0x9ab0c509 CUnicodeTextension::ReplaceRange(long, long, TReplaceParams const&, unsigned char, unsigned char) + 101
4 com.apple.HIToolbox 0x9aafd5cd CReplaceTextCommand::DoMainAction() + 67
5 com.apple.HIToolbox 0x9aafd035 CTextensionEditCommand::DoIt(short*) + 29
6 com.apple.HIToolbox 0x9aafc920 CTextensionCommand::Execute(short*) + 54
7 com.apple.HIToolbox 0x9ab029c9 OpaqueTXNObject::ExecuteCurrCommand() + 113
8 com.apple.HIToolbox 0x9ab02f11 OpaqueTXNObject::NewCommand(short, AttrObjModifier const*, TKeyDownParams*, TReplaceParams*) + 1061
9 com.apple.HIToolbox 0x9aaf0030 DoSetDataCommand(OpaqueTXNObject*, unsigned long, unsigned long, TReplaceParams*) + 299
10 com.apple.HIToolbox 0x9aaf7fd3 TXNSetData + 683
11 Audacity 0x00418fa5 wxMacMLTEControl::SetTXNData(wxString const&, unsigned long, unsigned long) + 165
12 Audacity 0x004190b3 wxMacMLTEControl::WriteText(wxString const&) + 195
13 Audacity 0x00418c98 wxTextCtrl::WriteText(wxString const&) + 168
14 Audacity 0x004c5a99 wxLogWindow::DoLogString(wchar_t const*, long) + 137
15 Audacity 0x00531dc6 wxLog::DoLog(unsigned long, wchar_t const*, long) + 342
16 Audacity 0x004c8083 wxLogWindow::DoLog(unsigned long, wchar_t const*, long) + 99
17 Audacity 0x00037bbb wxLog::OnLog(unsigned long, wchar_t const*, long) + 235
18 Audacity 0x005315c1 wxVLogMessage(wchar_t const*, char*) + 113
19 Audacity 0x0053163b wxLogMessage(wchar_t const*, …) + 27
20 Audacity 0x001273ea Importer::Import(wxString, TrackFactory*, Track***, Tags*, wxString&) + 778

Well, it’s not chains that’s the problem, it has something to do with importing a FLAC since the crash reports are identical. It seems the crash happens while Audacity is attempting to write a message to the Log window.

FLAC import does not rely on an external library (such as LAME or FFmpeg), so the problem is not in that area.

All I can think of is resetting your preferences.

Quit Audacity if it is running.

In /Library/Application Support/audacity

find the file audacity.cfg

Open it in TextEdit and replace the entire contents with this singe line:

NewPrefsInitialized=1

Save the file without changing the extension.

Start Audacity and see if you can import a FLAC file.

– Bill

Doesn’t work. Keeps crashing over and over. I tried chains, importing and opening, all to the same result. I guess I’ll try re-installing. This is one of the main things I use Audacity for, so I hope I can fix it!

Tried re-installing and restarting. Doesn’t work. Audacity just won’t accept FLAC from me anymore :stuck_out_tongue:

Any other ideas out there?

Bleakley

Do the names of these files have other than A - Z characters and numbers? If not, can you try renaming them like that?

If that does not help, are the files small enough that you can upload an example somewhere from where we could download it? Here are some sites you could upload to:
http://www.yousendit.com
http://www.sendspace.com
http://minus.com/
https://castle.so/



Gale

I don’t know how much this applies to current OS X versions, but on my old Mac (until OS X 10.3.9), there was a Mac system configuration file under:

  • [user]/Library/Preferences/net.sourceforge.audacity.plist

Whenever I had “mysterious” problems with Audacity, I deleted this file, and my problems disappeared. This file was not deleted by a new installation of Audacity, but it was automatically re-created (without the misfunctional behaviour) at the next start of Audacity. In case of doubt search for “audacity.plist” in the Mac Finder, but I dont’ know if and where this file still exists under current OS X versions.

  • edgar

Don’t bother re-installing, that doesn’t accomplish anything. If you have initialized the audacity.cfg file that’s equivalent to a re-install.

– Bill

I’ve renamed the topic to better match the actual problem.

Yes please - that will allow us to see if there is anything unusual with the Flac files.

So I presume that previously you did not have this problem?
What changed?
You upgraded from an earlier version of Audacity?
Are you using Flac files that worked ok in an earlier Audacity version or are these new Flac files?
What was the earlier version of Audacity?
Where do these Flac files come from? Do you encode them yourself? Are you using the same encoder that you have always used?
Is this on the same computer as you used previously?
Has anything else changed or been updated?

If all you are doing is converting the FLACs to WAVs, try Max http://sbooth.org/Max/

In fact, see if Max can open and convert even one of your FLAC files.

– Vill

No, they don’t. And its not just a specific set of FLAC files. Audacity keeps crashing if I try to open any FLAC file. :frowning:


I’m not sure what changed. Yes, some of these are files that I have used in Audacity before with no problem. I still have the folder labeled “cleaned” from applying the chains with some of files.
I dont’ know what the previous version was. 1.3.9???

It does for you, but not for most other people, which is why we asked for an example file.

Please download the two short 24-bit FLAC files from http://www.linnrecords.com/linn-downloads-testfiles.aspx . Do those crash Audacity 2.0.0 for you? They don’t for me (OS X 10.7.3).



Gale

Yes it still exists in 10.7 along with:

  • [user]/Library/Preferences/net.sourceforge.audacity.plist.lockfile
  • [user]/Library/Caches/net.sourceforge.audacity
  • [user]/Library/Saved Application State/net.sourceforge.audacity.savedState

Saved Application State is apparently part of a new feature to resume an application’s windows and data after relaunching the application (or reboot).

Unlike I presume was the case with 1.2, it still appears sufficient to initialise audacity.cfg (or delete it if you have never had a 1.2 version of Audacity) in order to reset Audacity Preferences.

I came across those extra files trying out AppCleaner to delete audacity.cfg on Mac. Possibly this would be easier for some users than typing out ~/Library/Application Support/audacity in Finder’s Go > Go to Folder.


Gale

Hi Gale,

Both of the files (recit24bit.flac and tone24bit.flac) crashed Audacity when I tried to open them with it.

Thanks,
Bleakley

And the don’t crash for me, Audacity 2.0.0. OS X 10.7.2.

– Bill

Thanks. Have you followed the steps to quit Audacity and initialise Preferences? These were the instructions: Flac files cause Audacity to crash . Re-installing Audacity is not sufficient.

Have you completely shut down the Mac and restarted?

Please do both those things.

Then drag recit24bit.flac or tone24bit.flac into Audacity. If it still crashes, please attach the log then we can see if the error is the same as before.


Gale