Bugzilla – Bug 4203
alac crashes
Last modified: 2008-12-18 11:12:53 UTC
This is a bug with the official 6.5 as of yesterday. Presumably that's 6.5b3 ? My music is in apple lossless m4a files. On some files alac crashes (reliably), as reported by console.log, and nothing but the track title is sent to the squeezebox. Other files are (reliably) played. The files play without problem with 6.3.1. Here are a couple of crash reports for alac: Host Name: Laptop-2 Date/Time: 2006-09-23 00:25:53.743 -0500 OS Version: 10.4.7 (Build 8J135) Report Version: 4 Command: alac Path: /Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac Parent: launchd [1] Version: ??? (???) PID: 19649 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000018 Thread 0 Crashed: 0 alac 0x00001ce0 alac_set_info + 32 1 alac 0x000017b0 _start + 392 2 dyld 0x8fe01048 _dyld_start + 60 Thread 0 crashed with PPC Thread State 64: srr0: 0x0000000000001ce0 srr1: 0x000000000000d030 vrsave: 0x0000000000000000 cr: 0x24000024 xer: 0x0000000000000004 lr: 0x0000000000001cc8 ctr: 0x0000000090003e48 r0: 0x00000000000034f8 r1: 0x00000000bffff870 r2: 0x0000000000004678 r3: 0x0000000000300150 r4: 0x0000000000000014 r5: 0x0000000000004684 r6: 0x0000000000000006 r7: 0x0000000000000009 r8: 0x0000000000402006 r9: 0x0000000000000006 r10: 0x0000000000400002 r11: 0x0000000044000022 r12: 0x0000000090003858 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000 r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000000 r23: 0x0000000000000000 r24: 0x0000000000000000 r25: 0x0000000000000000 r26: 0x00000000bffffa18 r27: 0x00000000000045d4 r28: 0x00000000000045d4 r29: 0x00000000000045d4 r30: 0x0000000000300150 r31: 0x0000000000001cc8 Binary Images Description: 0x1000 - 0x6fff alac /Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac 0x8fe00000 - 0x8fe52fff dyld 45.3 /usr/lib/dyld 0x90000000 - 0x901bbfff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x90213000 - 0x90218fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib ********** Host Name: Laptop-2 Date/Time: 2006-09-23 00:54:55.711 -0500 OS Version: 10.4.7 (Build 8J135) Report Version: 4 Command: alac Path: /Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac Parent: launchd [1] Version: ??? (???) PID: 19787 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000018 Thread 0 Crashed: 0 alac 0x00001ce0 alac_set_info + 32 1 alac 0x000017b0 _start + 392 2 dyld 0x8fe01048 _dyld_start + 60 Thread 0 crashed with PPC Thread State 64: srr0: 0x0000000000001ce0 srr1: 0x000000000000d030 vrsave: 0x0000000000000000 cr: 0x24000024 xer: 0x0000000000000004 lr: 0x0000000000001cc8 ctr: 0x0000000090003e48 r0: 0x00000000000034f8 r1: 0x00000000bffff870 r2: 0x0000000000004678 r3: 0x0000000000300150 r4: 0x0000000000000014 r5: 0x0000000000004684 r6: 0x0000000000000006 r7: 0x0000000000000009 r8: 0x0000000000402006 r9: 0x0000000000000006 r10: 0x0000000000400002 r11: 0x0000000044000022 r12: 0x0000000090003858 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000 r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000000 r23: 0x0000000000000000 r24: 0x0000000000000000 r25: 0x0000000000000000 r26: 0x00000000bffffa18 r27: 0x00000000000045d4 r28: 0x00000000000045d4 r29: 0x00000000000045d4 r30: 0x0000000000300150 r31: 0x0000000000001cc8 Binary Images Description: 0x1000 - 0x6fff alac /Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac 0x8fe00000 - 0x8fe52fff dyld 45.3 /usr/lib/dyld 0x90000000 - 0x901bbfff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x90213000 - 0x90218fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
Can you attach a file that causes alac to crash?
Apparently, I cannot attach a file. This bugzilla interface hangs when I try to create and submit an attachment. Perhaps I should try a web browser other than safari? Fred Goodman
Probably just because it's taking a long time to upload a large file. Try waiting longer?
Created attachment 1579 [details] offending apple lossless file
Here's the error I get at the command line: $ alac -f test.wav CrashALAC.m4a (moov) unknown chunk id: iods Bus error
Here is a hint, and sort of a resolution. Most of my music library was produced with Max, http://sbooth.org/Max/, a ripper/encoder. Alac crashes on at least some of the max-produced apple lossless files. But I let itunes recode one such file into apple lossless and ran alac again on the recoded file, with success.
Well it's good to have the source of the troublesome files and a workaround.
I found some probably relevant information in a forum about Max. http://sbooth.org/forums/viewtopic.php?t=217 It has to do with the way track information is packaged in the m4a wrapper.
I've sent email to the maintainer of the alac code we use and will follow up with him about the problematic files.
Reduced the severity since there is a (cumbersome) workaround.
Dan, David Hammerton sent me the following message. I don't know if we want to try to put this in 6.5.1 in case there are new bugs in alac from this change that might affect more of our users. Users affected by this particular bug could always upgrade their alac.exe separately. [...some text deleted...] I've put up a new version of ALAC which fixes this problem. You can get it from http://craz.net/programs/itunes/alac.html Basically, the file contains two mdat atoms - an empty one and a real one. ALAC was trying to read stuff from the empty one. THe fix isn't ideal, it just skips empty mdat atoms, but it seems to fix the problem. Let me know if you have any more problems with it, Regards, David
This fixes my problem. Thanks. I've tried the new alac with both iTunes created apple lossless and with Max created apple lossless. Both work.
*** Bug 4657 has been marked as a duplicate of this bug. ***
I've updated alac to 0.1.3 in trunk in change 11240. Marking fixed.
*** Bug 4683 has been marked as a duplicate of this bug. ***
This bug is being closed since it was resolved for a version which is now released! Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html If you are still seeing this bug, please re-open it and we will consider it for a future release.