crash and python location
Posted by todd on Feb 12, 2007 Hi,
When first starting nodebox i received an error that it could not find the python runtime and to change this in the Info.plist.
I did this as I only have the 2.4 Framework version installed which now lives in
/Library/Frameworks/Python.framework/Versions/2.4/Python
Now it crashes on startup. Below is the crash report. Do I need to have 2.3 installed? I did not see that as a requirement.
Date/Time: 2007-02-12 08:23:02.843 -0700
OS Version: 10.4.8 (Build 8L127)
Report Version: 4
Command: NodeBox
Path: /Applications/NodeBox/NodeBox.app/Contents/MacOS/NodeBox
Parent: WindowServer [11421]
Version: 1.8.3 ()
PID: 1271
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 com.apple.CoreFoundation 0x907bb574 CFStringGetCString + 84
1 net.nodebox.NodeBox 0x00006af8 getPythonInterpreter + 15256
2 net.nodebox.NodeBox 0x00007960 main + 1920
3 net.nodebox.NodeBox 0x000017f4 start + 404
4 net.nodebox.NodeBox 0x0000169c start + 60
Thread 0 crashed with PPC Thread State 64:
srr0: 0x00000000907bb574 srr1: 0x000000000200f030 vrsave: 0x0000000000000000
cr: 0x22004244 xer: 0x0000000000000007 lr: 0x00000000907bb530 ctr: 0x00000000907bb520
r0: 0x00000000a07ba674 r1: 0x00000000bfffe9e0 r2: 0x00000000a07ba274 r3: 0x0000000000000000
r4: 0x00000000bfffef5c r5: 0x0000000000000400 r6: 0x0000000008000100 r7: 0x0000000000000400
r8: 0x0000000000000001 r9: 0x000000000000001c r10: 0x0000000000000000 r11: 0x0000000044000444
r12: 0x00000000907bb520 r13: 0x00000000000062fc r14: 0x00000000bfffef5c r15: 0x0000000000312910
r16: 0x00000000bffffb70 r17: 0x00000000bfffeafc r18: 0x00000000000062fc r19: 0x00000000000062fc
r20: 0x0000000000000002 r21: 0x0000000000301c80 r22: 0x00000000000062fc r23: 0x00000000bffff75c
r24: 0x00000000bfffef5c r25: 0x0000000000000400 r26: 0x0000000000301c90 r27: 0x0000000000000000
r28: 0x000000000031261d r29: 0x0000000008000100 r30: 0x00000000bfffea60 r31: 0x00000000907bb530
Binary Images Description:
0x1000 - 0x8fff net.nodebox.NodeBox 1.8.3 () /Applications/NodeBox/NodeBox.app/Contents/MacOS/NodeBox
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
0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90b6e000 - 0x90b80fff libauto.dylib /usr/lib/libauto.dylib
0x94beb000 - 0x94c0bfff libmx.A.dylib /usr/lib/libmx.A.dylib
Model: PowerBook5,2, BootROM 4.7.1f1, 1 processors, PowerPC G4 (1.1), 1 GHz, 1 GB
Graphics: ATI Mobility Radeon 9600, ATY,RV350M10, AGP, 64 MB
Memory Module: SODIMM1/J25UPPER, 1 GB, DDR SDRAM, PC2700U-25330
AirPort: AirPort Extreme, 405.1 (3.90.34.0.p18)
Modem: LastDash, UCJ, V.92, 4.0, APPLE VERSION 2.6.6
Bluetooth: Version 1.7.8f2, 2 service, 0 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
PCI Card: TXN,PCIXXXX-00, cardbus, PC Card
Parallel ATA Device: MATSHITACD-RW CW-8123,
Parallel ATA Device: Hitachi IC25N060ATMR04-0, 55.89 GB
USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
Posted by todd on Feb 13, 2007
Actually I do not have 2.3 on my system as I removed it. I replace it with 2.4. I will fix this and see if it works.
Posted by todd on Feb 13, 2007
ok. it is all fixed now. sorry for the confusion.
Posted by Chris on Feb 14, 2007
Hi, I thought that it was in:
/System/Library/Frameworks/Python.framework/Version/2.3/
Mine is there and I get the same crash....
Posted by Frederik De Bleser on Feb 14, 2007
Is there something in the Console window (/Applications/Utilities/Console)? Clear it out, then run NodeBox to see if anythin appears there. Otherwise, could you mail me the crash log? My e-mail address if frederik at the domain name pandora.be
Posted by Frederik De Bleser on Feb 15, 2007
I found out that the problem (again) is input managers. You might want to read a previous form post on this.
Posted by Neal on Feb 26, 2007
I had removed python2.3 from my system, so I reinstalled it using an old macpython installer. It went in /Library/Frameworks/... instead of /System/Library/Frameworks/..
This seems to work fine for most of nodebox, but when I tried using the Graph library, I get an error
Traceback (most recent call last): File "/Users/Shared/Applications/NodeBox/NodeBox.app/Contents/Resources/NodeBox.py", line 337, in _execScript File "/Users/Shared/Applications/NodeBox/Examples/downloads/graph-ppc/graph_test.py", line 6, in ? File "DrawingPrimitives.pyc", line 1039, in ximport File "/Users/Shared/Applications/NodeBox/Examples/downloads/graph-ppc/graph.py", line 5, in ? File "/Users/tom/Desktop/bgl-python-0.9/python/boost/graph/__init__.py", line 9, in ? ImportError: Failure linking new module: /Users/Shared/Applications/NodeBox/Examples/downloads/graph-ppc/boost/graph/_support.so: Symbol not found: _PyUnicodeUCS2_AsWideChar Referenced from: libboost_python.dylib Expected in: /Library/Frameworks/Python.framework/Versions/2.3/Python
Posted by Frederik De Bleser on Feb 27, 2007
Hi Neal,
You might want to try building boost from the source. I included instructions on our developers wiki: http://dev.nodebox.net/wiki/BuildingBoost
Kind regards,
Frederik
Posted by Neal on Feb 27, 2007
Hi, thanks. It turns out it was a problem with the python installation, in particular with the permissions. By copying an existing python 2.3.5 framework from another mac, and being careful to get the permissions exactly right, I fixed the problem.
Posted by Frederik De Bleser on Feb 13, 2007
NodeBox is compiled using the --semi-standalone flag, which means it expects a Python to be already installed. Normally, this is no problem, since on Mac OS X 10.4, Python 2.3.5 is installed by default in /System/Library/Frameworks/Python/Version/2.3/.
It's kind of strange that the default Python wouldn't work. It could be that you permissions are set wrong. Can you run python2.3 from the Terminal?
Kind regards,
Frederik