Memory usage (latest beta)

Discuss the current and future development of Max.
Post Reply
Dan Smart
Posts: 3
Joined: Sat Oct 14, 2006 1:52 am

Memory usage (latest beta)

Post by Dan Smart » Sat Oct 14, 2006 2:02 am

I'm trying to use Max to bulk convert my music collection from Apple lossless (which I stream around the house) to 256K AAC (which enables me to squeeze it onto an iPod). My collection currently runs to 7605 items, and when I point max at the top level directory, it starts using about 75% CPU (dual 2.7 G5) and growing rapidly untill it hits ~3.5Gb when it dies.

Is this:
1) A bug?
2) Not a usage model that you had considered?
3) Not a usage model that you intend to support?

I'm really hoping that the answer is not (3) because what I've seen of Max has really impressed me...

If you do intend to allow Max to be used in this way, would you consider adding an "update" mode, where it only converted files that didn't already exist in the target directory?

Dan

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Post by sbooth » Sat Oct 14, 2006 3:35 pm

I would be more inclined to say this is a bug. I hadn't actually thought about adding 7605 files to be transcoded, but it should work.

I have a feeling the issue is with reading metadata. Every file added to the File Conversion window is scanned for metadata, and a metadata object is created to hold it. The problem is likely a memory leak in there. Can you post a crash report? Also, which version of Max were you using? If 0.6.1, please try with the unstable version from my site and see if the same problem occurs.

Dan Smart
Posts: 3
Joined: Sat Oct 14, 2006 1:52 am

Post by Dan Smart » Sat Oct 14, 2006 9:06 pm

I was using the svn-1024 nightly from krmathis. I just downloaded the 1028 build from your front page, and have pointed it at my music directory, it currently appears to be exhibiting the same symptoms, but it takes a while to get the the point where it crashes.

If there's anything I can do to assist in diagnosing this, I'm more than willing to help. I have all the developer tools installed.

The crash log from 1024 follows, I'll post 1028 if it differs significantly...

Host Name: Workstation
Date/Time: 2006-10-13 21:50:53.677 -0400
OS Version: 10.4.8 (Build 8L127)
Report Version: 4

Command: Max
Path: /Applications/Max.app/Contents/MacOS/Max
Parent: WindowServer [106]

Version: ??? (0.6.2b)

PID: 19555
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 com.apple.AppKit 0x93805e08 _NSReadImage + 1280
1 com.apple.AppKit 0x93805784 -[NSBitmapImageRep initWithFocusedViewRect:] + 156
2 com.apple.AppKit 0x9372a600 -[NSImage _expandRep:] + 1468
3 com.apple.AppKit 0x93729fe8 -[NSImage _expand] + 136
4 com.apple.AppKit 0x938206f0 -[NSImage representations] + 180
5 org.sbooth.Max 0x0001b078 0x1000 + 106616
6 org.sbooth.Max 0x0003a6f8 0x1000 + 235256
7 org.sbooth.Max 0x00039b10 0x1000 + 232208
8 org.sbooth.Max 0x0003a3e0 0x1000 + 234464
9 com.apple.AppKit 0x938f965c -[NSSavePanel(NSSavePanelRuntime) _didEndSheet:returnCode:contextInfo:] + 272
10 com.apple.AppKit 0x938c6424 -[NSSavePanel(NSSavePanelRuntime) ok:] + 288
11 com.apple.AppKit 0x937acc4c -[NSApplication sendAction:to:from:] + 108
12 com.apple.AppKit 0x937acb80 -[NSControl sendAction:to:] + 96
13 com.apple.AppKit 0x937aca60 -[NSCell _sendActionFrom:] + 156
14 com.apple.AppKit 0x937c6a88 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1020
15 com.apple.AppKit 0x937c6670 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 564
16 com.apple.AppKit 0x937c6094 -[NSControl mouseDown:] + 536
17 com.apple.AppKit 0x93767890 -[NSWindow sendEvent:] + 4616
18 com.apple.AppKit 0x93bafd78 -[NSSavePanel sendEvent:] + 400
19 com.apple.AppKit 0x937108d4 -[NSApplication sendEvent:] + 4172
20 com.apple.AppKit 0x93707d10 -[NSApplication run] + 508
21 com.apple.AppKit 0x937f887c NSApplicationMain + 452
22 org.sbooth.Max 0x00003148 0x1000 + 8520
23 org.sbooth.Max 0x00002e4c 0x1000 + 7756

Thread 1:
0 libSystem.B.dylib 0x90049ea8 syscall_thread_switch + 8
1 com.apple.Foundation 0x929795d0 +[NSThread sleepUntilDate:] + 152
2 com.apple.AppKit 0x937a8a10 -[NSUIHeartBeat _heartBeatThread:] + 1100
3 com.apple.Foundation 0x92961194 forkThreadForFunction + 108
4 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 2:
0 libSystem.B.dylib 0x9000ab48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
4 com.apple.Foundation 0x9298869c +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264
5 com.apple.Foundation 0x92961194 forkThreadForFunction + 108
6 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 3:
0 libSystem.B.dylib 0x9001f08c select + 12
1 com.apple.CoreFoundation 0x907ef40c __CFSocketManager + 472
2 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 4:
0 libSystem.B.dylib 0x9000ab48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
4 com.apple.Foundation 0x929897dc +[NSURLCache _diskCacheSyncLoop:] + 152
5 com.apple.Foundation 0x92961194 forkThreadForFunction + 108
6 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 5:
0 libSystem.B.dylib 0x9000ab48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000aa9c mach_msg + 60
2 com.apple.CoreFoundation 0x907dcb78 __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x907dc47c CFRunLoopRunSpecific + 268
4 com.apple.Foundation 0x92970164 -[NSRunLoop runMode:beforeDate:] + 172
5 com.apple.Foundation 0x9297009c -[NSRunLoop run] + 76
6 com.apple.WebKit 0x95b19f70 +[WebFileDatabase _syncLoop:] + 176
7 com.apple.Foundation 0x92961194 forkThreadForFunction + 108
8 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 6:
0 libSystem.B.dylib 0x9002e88c kevent + 12
1 com.apple.DesktopServices 0x92875250 TFSNotificationTask::FSNotificationTaskProc(void*) + 56
2 ...ple.CoreServices.CarbonCore 0x90bc28b0 PrivateMPEntryPoint + 76
3 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 7:
0 libSystem.B.dylib 0x9002bbc8 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x900306ac pthread_cond_wait + 480
2 ...ple.CoreServices.CarbonCore 0x90bc2aa0 MPWaitOnQueue + 224
3 com.apple.DesktopServices 0x928758cc TNodeSyncTask::SyncTaskProc(void*) + 116
4 ...ple.CoreServices.CarbonCore 0x90bc28b0 PrivateMPEntryPoint + 76
5 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000093805e08 srr1: 0x100000000000f030 vrsave: 0x0000000000000000
cr: 0x22004228 xer: 0x0000000020000000 lr: 0x0000000093805c30 ctr: 0x00000000900143a0
r0: 0x0000000000000000 r1: 0x00000000bfffd540 r2: 0x0000000000000000 r3: 0x0000000000000000
r4: 0x0000000000000000 r5: 0x00000000000003e8 r6: 0xffffffffffffffff r7: 0x0000000000000003
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x00000000ffe9a003 r11: 0x0000000000000000
r12: 0x00000000900143a0 r13: 0x00000000bfffd732 r14: 0x00000000bfffd731 r15: 0x00000000bfffd730
r16: 0x00000000bfffd794 r17: 0x00000000bfffd790 r18: 0x00000000bfffd7a8 r19: 0x00000000bfffd740
r20: 0x00000000bfffd798 r21: 0x00000000bfffd7a4 r22: 0x000000000000ba77 r23: 0x00000000bfffd7a0
r24: 0x00000000bfffd5a0 r25: 0x00000000a37477f0 r26: 0x00000000a373cc58 r27: 0x00000000bfffd6e8
r28: 0x0000000000000000 r29: 0x0000000000010000 r30: 0x00000000a3703078 r31: 0x0000000093805920

Binary Images Description:
0x1000 - 0x7bfff org.sbooth.Max ??? (0.6.2b) /Applications/Max.app/Contents/MacOS/Max
0x9c000 - 0xa8fff org.andymatuschak.Sparkle ??? (1.1) /Applications/Max.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
0xb4000 - 0xb6fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/ogg.framework/Versions/A/ogg
0xb9000 - 0xdffff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/lame.framework/Versions/A/lame
0x205000 - 0x223fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/vorbis.framework/Versions/A/vorbis
0x345000 - 0x366fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/wavpack.framework/Versions/A/wavpack
0x36b000 - 0x386fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/speex.framework/Versions/A/speex
0x38c000 - 0x3a8fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/FLAC.framework/Versions/A/FLAC
0x3b5000 - 0x3bcfff com.yourcompany.OggFLAC ??? (1.0) /Applications/Max.app/Contents/Frameworks/OggFLAC.framework/Versions/A/OggFLAC
0x3c6000 - 0x40afff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/taglib.framework/Versions/A/taglib
0x456000 - 0x49cfff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/sndfile.framework/Versions/A/sndfile
0x4ae000 - 0x4b8fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/mpcdec.framework/Versions/A/mpcdec
0x4bb000 - 0x4c7fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/cuetools.framework/Versions/A/cuetools
0x4cc000 - 0x4d4fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/cdparanoia.framework/Versions/A/cdparanoia
0x4d8000 - 0x534fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/mp4v2.framework/Versions/A/mp4v2
0x576000 - 0x59afff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/mac.framework/Versions/A/mac
0x5ae000 - 0x5b4fff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/shorten.framework/Versions/A/shorten
0x5ba000 - 0x5dafff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/expat.framework/Versions/A/expat
0x5e1000 - 0x5fffff com.yourcompany.yourcocoaframework ??? (1.0) /Applications/Max.app/Contents/Frameworks/musicbrainz.framework/Versions/A/musicbrainz
0x78d000 - 0x78efff com.ecamm.pluginloader Ecamm Plugin Loader v1.0.4 (1.0.4) /Library/InputManagers/Ecamm/Ecamm Plugin Loader.bundle/Contents/MacOS/Ecamm Plugin Loader
0x792000 - 0x793fff com.li.hao.saftloader 1.3.0 (439) /Library/InputManagers/Saft/SaftLoader.bundle/Contents/MacOS/SaftLoader
0x1346000 - 0x1349fff com.apple.ink.component 1.2 (63) /System/Library/Components/Ink.component/Contents/MacOS/Ink
0x160f2000 - 0x160f4fff com.apple.textencoding.unicode 2.0 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
0x1699a000 - 0x16a79fff com.apple.audio.codecs.Components 1.4.3 /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs
0x70000000 - 0x700fcfff com.apple.audio.units.Components 1.4.3 /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x8fe00000 - 0x8fe51fff dyld 45.3 /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x9021b000 - 0x90268fff com.apple.CoreText 1.0.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90373000 - 0x9072dfff com.apple.CoreGraphics 1.258.38 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908dc000 - 0x908dcfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90ae8000 - 0x90b58fff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b6e000 - 0x90b80fff libauto.dylib /usr/lib/libauto.dylib
0x90b87000 - 0x90e5efff com.apple.CoreServices.CarbonCore 681.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec4000 - 0x90f44fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90f8e000 - 0x90fcffff com.apple.CFNetwork 4.0 (129.18) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x90fe4000 - 0x90ffcfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x9100c000 - 0x9108dfff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x910d3000 - 0x910fdfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x9110e000 - 0x9111cfff libz.1.dylib /usr/lib/libz.1.dylib
0x9111f000 - 0x912dafff com.apple.security 4.5 (28992) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x913d8000 - 0x913e1fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913e8000 - 0x91410fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x91423000 - 0x9142efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x91433000 - 0x9143bfff libbsm.dylib /usr/lib/libbsm.dylib
0x9143f000 - 0x914bafff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914f7000 - 0x914f7fff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x914f9000 - 0x91531fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9154c000 - 0x91619fff com.apple.ColorSync 4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9166e000 - 0x916fffff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x91746000 - 0x917fdfff com.apple.QD 3.10.21 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x9183a000 - 0x91898fff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x918c7000 - 0x918ebfff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x918ff000 - 0x91924fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91937000 - 0x91979fff com.apple.LaunchServices 181 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x91995000 - 0x919a9fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919b7000 - 0x919f9fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a0f000 - 0x91ad7fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91b25000 - 0x91b3afff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b3f000 - 0x91b5dfff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91b63000 - 0x91bd2fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91be9000 - 0x91bedfff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91bef000 - 0x91c4efff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91c53000 - 0x91c90fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91c97000 - 0x91cb0fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91cb5000 - 0x91cb8fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91cba000 - 0x91cbafff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91cbc000 - 0x91da1fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91da9000 - 0x91dc8fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91e34000 - 0x91ea2fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91ead000 - 0x91f42fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91f5c000 - 0x924e4fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x92517000 - 0x92842fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92872000 - 0x928fafff com.apple.DesktopServices 1.3.4 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x9293b000 - 0x92b66fff com.apple.Foundation 6.4.6 (567.27) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92c84000 - 0x92d62fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x92d82000 - 0x92e70fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92e82000 - 0x92ea0fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92eab000 - 0x92f05fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92f23000 - 0x92f23fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92f25000 - 0x92f39fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92f51000 - 0x92f61fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92f6d000 - 0x92f82fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x92f94000 - 0x9301bfff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x9302f000 - 0x9303afff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x93044000 - 0x93071fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x9308b000 - 0x9309bfff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x930a7000 - 0x9310dfff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x9313e000 - 0x9318dfff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x931bb000 - 0x931d8fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x931ea000 - 0x931f7fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x93200000 - 0x9350dfff com.apple.HIToolbox 1.4.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x9365c000 - 0x93668fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x93701000 - 0x93701fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x93703000 - 0x93d36fff com.apple.AppKit 6.4.7 (824.41) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x940c3000 - 0x94133fff com.apple.CoreData 80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x9416c000 - 0x9422ffff com.apple.audio.toolbox.AudioToolbox 1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x94281000 - 0x94281fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x94283000 - 0x94456fff com.apple.QuartzCore 1.4.9 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x944ac000 - 0x944e9fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x944f1000 - 0x94541fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x946f0000 - 0x946fffff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x94707000 - 0x94713fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x94759000 - 0x94771fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x94778000 - 0x94a47fff com.apple.QuickTime 7.1.3 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x94b0a000 - 0x94b7bfff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x94bee000 - 0x94c0efff libmx.A.dylib /usr/lib/libmx.A.dylib
0x95b17000 - 0x95ba5fff com.apple.WebKit 418.9 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
0x95c01000 - 0x95c97fff com.apple.JavaScriptCore 418.3 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
0x95cd4000 - 0x95fe0fff com.apple.WebCore 418.21 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
0x96169000 - 0x96192fff libxslt.1.dylib /usr/lib/libxslt.1.dylib
0x974b3000 - 0x974d2fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x97cd8000 - 0x97ce5fff com.apple.agl 2.5.6 (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x99886000 - 0x9a23dfff com.apple.QuickTimeComponents.component 7.1.3 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTimeComponents
0xc0000000 - 0xc0009fff com.growl.growlframework 0.7.3 /Applications/Max.app/Contents/Frameworks/Growl.framework/Versions/A/Growl

Dan Smart
Posts: 3
Joined: Sat Oct 14, 2006 1:52 am

Post by Dan Smart » Sat Oct 14, 2006 9:12 pm

Okay, svn-1028 just died, it displayed a dialog box that says:
(Transcribed by hand)
An error occurred while opening the document "09 Da Teen Town.m4a".
*** NSCopyMemoryPages(0xfff5e000, 0x0, 425984) failed

At that point it was using 789Mb Real and 3.49Gb Virtual memory according to activity monitor. I've attached the head of this crash log.

Dan "Do I really own a track called 'Da Teen Town'" Smart

Host Name: Workstation
Date/Time: 2006-10-14 17:08:55.846 -0400
OS Version: 10.4.8 (Build 8L127)
Report Version: 4

Command: Max
Path: /Applications/Max.app/Contents/MacOS/Max
Parent: WindowServer [106]

Version: ??? (0.6.2b)

PID: 20908
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0 com.apple.AppKit 0x93bdfbd4 -[_NSControllerArrayProxy getObjects:range:] + 80
1 com.apple.Foundation 0x92953990 -[NSArray objectEnumerator] + 116
2 org.sbooth.Max 0x00037c34 -[FileArrayController findFile:] + 208 (FileArrayController.m:49)
3 org.sbooth.Max 0x00037b48 -[FileArrayController containsFile:] + 32 (FileArrayController.m:40)
4 org.sbooth.Max 0x0003a5dc -[FileConversionController(Private) addOneFile:atIndex:] + 72 (FileConversionController.m:481)
5 org.sbooth.Max 0x00039c9c -[FileConversionController addFile:atIndex:] + 624 (FileConversionController.m:341)
6 org.sbooth.Max 0x0003a56c -[FileConversionController(Private) addFilesPanelDidEnd:returnCode:contextInfo:] + 116 (FileConversionController.m:469)
7 com.apple.AppKit 0x938f965c -[NSSavePanel(NSSavePanelRuntime) _didEndSheet:returnCode:contextInfo:] + 272
8 com.apple.AppKit 0x938c6424 -[NSSavePanel(NSSavePanelRuntime) ok:] + 288
9 com.apple.AppKit 0x937acc4c -[NSApplication sendAction:to:from:] + 108
10 com.apple.AppKit 0x937acb80 -[NSControl sendAction:to:] + 96
11 com.apple.AppKit 0x937aca60 -[NSCell _sendActionFrom:] + 156
12 com.apple.AppKit 0x937c6a88 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1020
13 com.apple.AppKit 0x937c6670 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 564
14 com.apple.AppKit 0x937c6094 -[NSControl mouseDown:] + 536
15 com.apple.AppKit 0x93767890 -[NSWindow sendEvent:] + 4616
16 com.apple.AppKit 0x93bafd78 -[NSSavePanel sendEvent:] + 400
17 com.apple.AppKit 0x937108d4 -[NSApplication sendEvent:] + 4172
18 com.apple.AppKit 0x93707d10 -[NSApplication run] + 508
19 com.apple.AppKit 0x937f887c NSApplicationMain + 452
20 org.sbooth.Max 0x000032c8 _start + 760
21 org.sbooth.Max 0x00002fcc start + 48

Thread 1:
0 libSystem.B.dylib 0x9002e88c kevent + 12
1 com.apple.DesktopServices 0x92875250 TFSNotificationTask::FSNotificationTaskProc(void*) + 56
2 ...ple.CoreServices.CarbonCore 0x90bc28b0 PrivateMPEntryPoint + 76
3 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 2:
0 libSystem.B.dylib 0x9002bbc8 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x900306ac pthread_cond_wait + 480
2 ...ple.CoreServices.CarbonCore 0x90bc2aa0 MPWaitOnQueue + 224
3 com.apple.DesktopServices 0x928758cc TNodeSyncTask::SyncTaskProc(void*) + 116
4 ...ple.CoreServices.CarbonCore 0x90bc28b0 PrivateMPEntryPoint + 76
5 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 3:
0 libSystem.B.dylib 0x9002bbc8 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x900306ac pthread_cond_wait + 480
2 com.apple.Foundation 0x92968300 -[NSConditionLock lockWhenCondition:] + 68
3 com.apple.AppKit 0x937a8708 -[NSUIHeartBeat _heartBeatThread:] + 324
4 com.apple.Foundation 0x92961194 forkThreadForFunction + 108
5 libSystem.B.dylib 0x9002b508 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000093bdfbd4 srr1: 0x100000000000d030 vrsave: 0x0000000000000000
cr: 0x44004224 xer: 0x0000000020000000 lr: 0x0000000093bdfbd0 ctr: 0x00000000907f0c18
r0: 0x00000000000016b3 r1: 0x00000000bfffd8a0 r2: 0x00000000ca566010 r3: 0x0000000016ce4140
r4: 0x0000000000000000 r5: 0x0000000000000000 r6: 0x0000000000000000 r7: 0x00000000000016b3
r8: 0x0000000064383800 r9: 0x0000000000000002 r10: 0x0000000000000001 r11: 0x0000000000000000
r12: 0x00000000907f0c18 r13: 0x000000000008850c r14: 0x0000000000087c28 r15: 0x00000000000884f0
r16: 0x0000000000087d88 r17: 0x0000000000087f84 r18: 0x0000000000087d5c r19: 0x000000000110e9c0
r20: 0x0000000000000000 r21: 0x0000000000080000 r22: 0x00000000011e7a90 r23: 0x000000000008871c
r24: 0x0000000000080838 r25: 0x0000000000080000 r26: 0x00000000fe2a0b00 r27: 0x0000000000080528
r28: 0x0000000001187730 r29: 0x0000000000000001 r30: 0x0000000000000000 r31: 0x0000000093bdfb84

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Post by sbooth » Sun Oct 15, 2006 2:49 am

Well, as you said, you've run out of memory!

I was able to enqueue about 5000 files (I forget the exact number) on my G4 PowerBook with 1 GB of RAM. But, my files do not contain a lot of album art which would drastically increase the memory required.

I will scrub the code for any memory leaks, but I have a bad feeling this is the price that is paid for being able to edit metadata prior to conversion.

I suppose one option would be to lazy evaluate a file's metadata- I will have to think how this could work, though.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest