Hey Martin,
After replacing the tcl/tk frameworks I got an error when trying to run pd in
the console:
alloc: invalid block: 0xa08fc9c: a 80 0
and it would not run.
I actually just not noticed that I'm getting some serious errors in the OSX
console. (I guess since its a .app osx does keep track of crashes) I've attached
the log to this email if it means anything to anyone.
B>
Martin Pichlmair wrote:
>
> hi ben,
>
> i don't know why you have to do more than replacing the libraries. isn't
> tcl/tk dynamically bound?
>
> also: would you send me some of the promised screenshots, please.
>
> lg
> martin
>
>
> On Jan 31, 2005, at 19:09, B. Bogart wrote:
>
>> Hey all,
>>
>> How do I update the tcl/tk version in the pd.app .38-2 to tcl8.4.9?
>>
>> I've replaced the frameworks folders with the 8.4.9 versions,
>>
>> then ./configure
>>
>> ./configure cannot find tk but seems to see tcl8.4 (it seems to be
>> looking somewhere non OSX, like in /usr/local and not
>> /library/frameworks.
>>
>> If I compile anyway it seems to work largely, except the resultant pd
>> binary does not work as I expect.
>>
>> If I run the binary from terminal in bin/ then it works fine, but if I
>> copy the binary to pd.app/Contents/MacOS/Pd and then run from terminal
>> I get:
>>
>> Error in startup script: couldn't read file "../bin/pd.tk": no such
>> file or directory.
>>
>> and sticks there.
>>
>> If I double-click on the Pd.app PD does not start, but I get a list of
>> PD flags in the osx console window. (pd -help) and then quits.
>>
>> If I double click on the Pd binary in Contents/MacOS then the same
>> thing happens as when running the binary from terminal in this
>> directory. (the error comes up in a new terminal window)
>>
>> Finally to get PD to load I need to double-click on the binary in
>> Resources/bin/ . I get a new terminal window printing out some MIDI
>> driver stuff, and poof the pd window comes up. It is using the new
>> version of tcl/tk apparently, since I get anti aliasing on the
>> patcher. Somewhere along this process the PD icon has disappeared from
>> the pd.app (back to the default application icon)
>>
>>
>> So after the story the questions are:
>>
>> 1. How to I make double-clicking on the pd.app load PD properly?
>> 2. What is the proper procedure to generate a pd.app with a newer
>> tcl/tk version? (I followed Miller's notes to Jamie from 38 test 4 but
>> this is as far I got)
>> 3. How can I make sure that this pd.app is self-contained and does not
>> depend on a version of tcl/tk installed on the machine?
>>
>> In case anyone wants to know I'm upgrading to 8.4.9 so that I can use
>> the pd.app with a version of tcl/tk that supports anti-aliasing in the
>> patcher. (which makes small type (eg 8 pt) readable.) I'm setting
>> "tk::mac::CGAntialiasLimit 0" in pd.tk to make all lines anti-aliased.
>>
>> Which I think makes PD look amazing on OSX, and I would love to see it
>> the standard PD look on OSX. I'll attach screen shots of the
>> difference if anyone wants to see.
>>
>> Thanks
>> Ben
>>
>>
>>
**********
Host Name: admins-Computer.local
Date/Time: 2005-02-01 12:06:20 -0500
OS Version: 10.3.7 (Build 7S215)
Report Version: 2
Command: pd
Path: /Users/admin/work/pd/bin/pd
Version: ??? (???)
PID: 10836
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000b5
Thread 0 Crashed:
0 pd 0x0003451c obj_ninlets + 0x28 (m_obj.c:569)
1 pd 0x000031c0 linetraverser_next + 0x128 (g_canvas.c:307)
2 pd 0x000047d4 canvas_deletelinesfor + 0x8c (g_canvas.c:912)
3 pd 0x00005f2c glist_delete + 0x11c (g_graph.c:94)
4 pd 0x0000845c graph_delete + 0x44 (g_graph.c:957)
5 pd 0x00005f2c glist_delete + 0x11c (g_graph.c:94)
6 pd 0x00004548 canvas_free + 0x80 (g_canvas.c:846)
7 pd 0x000317ac pd_free + 0x2c (m_pd.c:30)
8 pd 0x0003317c pd_typedmess + 0x354 (m_class.c:729)
9 pd 0x000332bc pd_typedmess + 0x494 (m_class.c:750)
10 pd 0x00036270 binbuf_eval + 0x3e4 (m_binbuf.c:582)
11 pd 0x0003b9d4 socketreceiver_read + 0x1cc (s_inter.c:510)
12 pd 0x0003b158 sys_domicrosleep + 0x140 (s_inter.c:167)
13 pd 0x0003979c m_scheduler + 0x2e4 (m_sched.c:485)
14 pd 0x0000270c _start + 0x188 (crt.c:267)
15 dyld 0x8fe1a558 _dyld_start + 0x64
Thread 1:
0 libSystem.B.dylib 0x900074c8 mach_msg_trap + 0x8
1 libSystem.B.dylib 0x90007018 mach_msg + 0x38
2 com.apple.audio.midi.CoreMIDI 0x81ebdc9c XServerMachPort::ReceiveMessage(int&, void*, int&) + 0x54
3 com.apple.audio.midi.CoreMIDI 0x81eb0d58 MIDIInPortThread::Run() + 0x13c
4 com.apple.audio.midi.CoreMIDI 0x81eb4e50 XThread::RunHelper(void*) + 0x3c
5 libSystem.B.dylib 0x900246e8 _pthread_body + 0x28
Thread 2:
0 libSystem.B.dylib 0x90016f48 semaphore_wait_signal_trap + 0x8
1 libSystem.B.dylib 0x9000e790 _pthread_cond_wait + 0x270
2 libflext.dylib 0x00663304 flext_shared::ThrCond::Wait() + 0x24
3 libflext.dylib 0x00662a34 flext_shared::ThrHelper(void*) + 0xd8
4 libSystem.B.dylib 0x900246e8 _pthread_body + 0x28
Thread 3:
0 libSystem.B.dylib 0x90016f48 semaphore_wait_signal_trap + 0x8
1 libSystem.B.dylib 0x9000e790 _pthread_cond_wait + 0x270
2 libflext.dylib 0x00663304 flext_shared::ThrCond::Wait() + 0x24
3 libflext.dylib 0x006670fc flext_base_shared::QWorker(flext_shared::thr_params*) + 0x34
4 libSystem.B.dylib 0x900246e8 _pthread_body + 0x28
PPC Thread State:
srr0: 0x0003451c srr1: 0x0200f030 vrsave: 0x00000000
cr: 0x44004242 xer: 0x20000004 lr: 0x000031c0 ctr: 0x00000000
r0: 0x00000000 r1: 0xbffff400 r2: 0x0000006b r3: 0x00000001
r4: 0xbffff4b0 r5: 0xbffff4b8 r6: 0xbffff4c0 r7: 0xbffff2e8
r8: 0x0003458c r9: 0x00000000 r10: 0x00471e80 r11: 0x000771ec
r12: 0x80808080 r13: 0x0007d760 r14: 0x0007d758 r15: 0x000794c4
r16: 0x0007b868 r17: 0x00073d18 r18: 0x0007b860 r19: 0x0007b610
r20: 0x43300000 r21: 0x00000000 r22: 0x00000000 r23: 0x00000000
r24: 0x000775fc r25: 0x00000000 r26: 0x00000001 r27: 0x00000000
r28: 0xbffff4a0 r29: 0x00000000 r30: 0x00472b70 r31: 0x000030a8
Binary Images Description:
0x1000 - 0x73fff pd /Users/admin/work/pd/bin/pd
0x1de000 - 0x1ecfff pmpd.pd_darwin /Users/admin/work/libs/pmpd.pd_darwin
0x305000 - 0x30bfff OSC.pd_darwin /Users/admin/work/extra/OSC.pd_darwin
0x3b5000 - 0x3b6fff prepend.pd_darwin /Users/admin/work/extra/prepend.pd_darwin
0x3ce000 - 0x3d7fff tot.pd_darwin /Users/admin/work/extra/tot.pd_darwin
0x3e7000 - 0x3e8fff tosymbol.pd_darwin /Users/admin/work/extra/tosymbol.pd_darwin
0x3ef000 - 0x3effff pwd.pd_darwin /Users/admin/work/libs/pwd.pd_darwin
0x3f6000 - 0x3f7fff popup.pd_darwin /Users/admin/work/libs/popup.pd_darwin
0x505000 - 0x528fff zexy.pd_darwin /Users/admin/work/extra/zexy.pd_darwin
0x5ee000 - 0x649fff pool.pd_darwin /Users/admin/work/extra/pool.pd_darwin
0x65c000 - 0x67dfff libflext.dylib /usr/local/lib/libflext.dylib
0x6bb000 - 0x6bcfff entry.pd_darwin /Users/admin/work/libs/entry.pd_darwin
0x6e7000 - 0x6fffff expr.pd_darwin /Users/admin/work/pd/extra/expr.pd_darwin
0x1015000 - 0x101efff com.apple.LiveType.component 1.2.1 /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
0x10c8000 - 0x10d2fff com.apple.IOFWDVComponents 1.6.2 /System/Library/Components/IOFWDVComponents.component/Contents/MacOS/IOFWDVComponents
0x138d000 - 0x13d2fff com.apple.QuickTimeIIDCDigitizer 6.5.2 /System/Library/QuickTime/QuickTimeIIDCDigitizer.component/Contents/MacOS/QuickTimeIIDCDigitizer
0x3202000 - 0x342bfff Gem.pd_darwin /Users/admin/work/libs/cgc/Gem.pd_darwin
0x70090000 - 0x700e6fff com.apple.LiveType.framework 1.2 /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
0x81eb0000 - 0x81eeefff com.apple.audio.midi.CoreMIDI 1.4 (29) /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
0x84b8c000 - 0x84b98fff com.apple.agl 2.5 (AGL-2.5) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
0x87520000 - 0x87560fff com.apple.glut 3.2.7 (GLUT-3.2.7) /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
0x8b0c0000 - 0x8b788fff com.apple.QuickTimeComponents.component 6.5.2 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTimeComponents
0x8c390000 - 0x8c3d1fff com.apple.QuickTimeFirewireDV.component 6.5.2 /System/Library/QuickTime/QuickTimeFirewireDV.component/Contents/MacOS/QuickTimeFirewireDV
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x90000000 - 0x90122fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90190000 - 0x9023dfff com.apple.CoreFoundation 6.3.6 (299.33) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90280000 - 0x904f9fff com.apple.CoreServices.CarbonCore 10.3.6 (10.3.5) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90570000 - 0x905dffff com.apple.framework.IOKit 1.3.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90610000 - 0x9069afff com.apple.CoreServices.OSServices 3.0.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90700000 - 0x90700fff com.apple.CoreServices 10.3 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90720000 - 0x90787fff com.apple.audio.CoreAudio 2.1.2 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x907f0000 - 0x907f9fff com.apple.DiskArbitration 2.0.4 /System/Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x90830000 - 0x9089ffff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90910000 - 0x90983fff com.apple.DesktopServices 1.2.3 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x909f0000 - 0x90b4bfff com.apple.Foundation 6.3.5 (500.56) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x90c30000 - 0x90c4afff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x90c60000 - 0x90cc2fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x90d00000 - 0x90d1bfff com.apple.SystemConfiguration 1.7.1 (???) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x90d40000 - 0x90d40fff com.apple.Carbon 10.3 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x90d60000 - 0x90d6bfff com.apple.opengl 1.3.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x90ec0000 - 0x90ec0fff com.apple.Cocoa 6.3 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x910b0000 - 0x91101fff com.apple.bom 1.2.5 (63.2) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x912a0000 - 0x912bdfff com.apple.audio.SoundManager 3.8 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x912e0000 - 0x912f7fff com.apple.LangAnalysis 1.5.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91320000 - 0x913defff ColorSync /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91460000 - 0x91473fff com.apple.speech.synthesis.framework 3.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x914a0000 - 0x91509fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x91560000 - 0x91619fff com.apple.QD 3.4.65 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91670000 - 0x916a8fff com.apple.AE 1.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x916e0000 - 0x91773fff com.apple.print.framework.PrintCore 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917e0000 - 0x917f0fff com.apple.speech.recognition.framework 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x91810000 - 0x9182afff com.apple.openscripting 1.2.1 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x91850000 - 0x91860fff com.apple.ImageCapture 2.1.5 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x91890000 - 0x9189cfff com.apple.help 1.0.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x918c0000 - 0x918cdfff com.apple.CommonPanels 1.2.1 (1.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x918f0000 - 0x9193efff com.apple.print.framework.Print 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x91990000 - 0x9199bfff com.apple.securityhi 1.2 (90) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x919c0000 - 0x91a33fff com.apple.NavigationServices 3.3.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x91a90000 - 0x91a90fff com.apple.audio.units.AudioUnit 1.3.2 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x91ab0000 - 0x91ac4fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x91ae0000 - 0x91aebfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x91b10000 - 0x91b2afff libPDFRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
0x91b50000 - 0x91b5ffff libPSRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
0x91b80000 - 0x91b93fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x91bb0000 - 0x91d45fff com.apple.QuickTime 6.5.2 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x92070000 - 0x92096fff com.apple.FindByContent 1.4 (1.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x920c0000 - 0x922a7fff com.apple.security 2.4 (177) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x92430000 - 0x92468fff com.apple.LaunchServices 10.3.5 (98.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x92740000 - 0x92777fff com.apple.CFNetwork 1.2.1 (7) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x927d0000 - 0x92b54fff com.apple.HIToolbox 1.3.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92d30000 - 0x92d80fff com.apple.HIServices 1.4.1 (0.0.1d1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x92dc0000 - 0x932bffff com.apple.AppKit 6.3.6 (743.33) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x935d0000 - 0x938a8fff com.apple.CoreGraphics 1.203.27 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x939a0000 - 0x939b4fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x93b50000 - 0x93bf3fff com.apple.audio.toolbox.AudioToolbox 1.3.2 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x94060000 - 0x94078fff com.apple.WebServices 1.1.1 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x945b0000 - 0x945b9fff libz.1.dylib /usr/lib/libz.1.dylib
0x94610000 - 0x9462afff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x94650000 - 0x946affff com.apple.SearchKit 1.0.2 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x94a30000 - 0x94af5fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x94b20000 - 0x94badfff com.apple.ink.framework 101.1.3 (55.10) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x954c0000 - 0x95ac6fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x95b20000 - 0x95df0fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x95e40000 - 0x95eadfff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x95f00000 - 0x95f20fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x968d0000 - 0x969b2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x96a20000 - 0x96ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x96b40000 - 0x96b6efff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x96bf0000 - 0x96c7ffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x96cb0000 - 0x96d9efff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x96e80000 - 0x96e90fff com.apple.vecLib 3.0.2 (vecLib 3.0.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x97510000 - 0x97518fff libbsm.dylib /usr/lib/libbsm.dylib