Issue 22 in freetype-py: Crashes on Lion

17 views
Skip to first unread message

freet...@googlecode.com

unread,
May 4, 2012, 3:28:35 PM5/4/12
to Nicolas...@inria.fr
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 22 by charlesm...@gmail.com: Crashes on Lion
http://code.google.com/p/freetype-py/issues/detail?id=22

What steps will reproduce the problem?
1. Build and install Freetype 2.4.9
./configure --host=i386-apple-darwin
sudo make install

2. Install freetype-py 0.3.3
sudo python setup.py install

3. Run trivial python program:
from freetype import *
library = FT_Library()
error = FT_Init_FreeType( byref(library) )
FT_Done_FreeType(library)

What is the expected output? What do you see instead?
Expected behavior: python script runs without crashing.
Observed behavior: python script runs crashes on exit every time.

What version of the product are you using? On what operating system?

Mac OS X vesion 10.7.3
Python sys.version 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
Freetype version 2.4.9
freetype-py vesion 0.3.3

Please provide any additional information below.


Process: Python [17305]
Path:
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: eclipse [11271]

Date/Time: 2012-05-04 16:26:51.288 -0300
OS Version: Mac OS X 10.7.3 (11D50b)
Report Version: 9

Interval Since Last Report: 6726192 sec
Crashes Since Last Report: 744
Per-App Crashes Since Last Report: 11
Anonymous UUID: C7382522-2128-46DD-82B3-88DC96D68023

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018

VM Regions Near 0x18:
-->
__TEXT 0000000105de7000-0000000105de8000 [ 4K]
r-x/rwx SM=COW
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

Application Specific Information:
objc[17305]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x0000000000000018 0 + 24
1 libfreetype.dylib 0x00000001061f9e7e FT_Done_FreeType + 30
2 libffi.dylib 0x00007fff878d1e7c ffi_call_unix64 + 76
3 libffi.dylib 0x00007fff878d2ae9 ffi_call + 728
4 _ctypes.so 0x000000010614c33f _ctypes_callproc + 735
5 _ctypes.so 0x0000000106146fd2 0x106143000 + 16338
6 org.python.python 0x0000000105df6d32 PyObject_Call + 97
7 org.python.python 0x0000000105e76f63 PyEval_EvalFrameEx +
14353
8 org.python.python 0x0000000105e79cd8 PyEval_EvalCodeEx +
1996
9 org.python.python 0x0000000105e17abf 0x105def000 + 166591
10 org.python.python 0x0000000105df6d32 PyObject_Call + 97
11 org.python.python 0x0000000105e056e9 0x105def000 + 91881
12 org.python.python 0x0000000105df6d32 PyObject_Call + 97
13 org.python.python 0x0000000105e72c40
PyEval_CallObjectWithKeywords + 180
14 org.python.python 0x0000000105e41656 0x105def000 + 337494
15 org.python.python 0x0000000105e4394b 0x105def000 + 346443
16 org.python.python 0x0000000105e25c83 0x105def000 + 224387
17 org.python.python 0x0000000105e265c4 PyDict_SetItem + 110
18 org.python.python 0x0000000105e28fa4 _PyModule_Clear + 272
19 org.python.python 0x0000000105e8997a PyImport_Cleanup + 503
20 org.python.python 0x0000000105e91b72 Py_Finalize + 331
21 org.python.python 0x0000000105ea2344 Py_Main + 2864
22 org.python.python 0x0000000105de7e88 0x105de7000 + 3720

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000018 rbx: 0x00007fb618437110 rcx:
0x00007fff865eb59e rdx: 0x00007fff659e5a50
rdi: 0x00007fb618437110 rsi: 0x00007fb618437110 rbp:
0x00007fff659e5ab0 rsp: 0x00007fff659e5a98
r8: 0x00007fff751740b0 r9: 0x0000000000000001 r10:
0x00007fff659e5a10 r11: 0x00000001061f9e60
r12: 0xffffffffffffffff r13: 0x0000000000000001 r14:
0x0000000000000000 r15: 0x00007fff659e5ac0
rip: 0x0000000000000018 rfl: 0x0000000000010202 cr2: 0x0000000000000018
Logical CPU: 6

Binary Images:
0x105de7000 - 0x105de7fff org.python.python (2.7.1 - 2.7.1)
<E2C46621-158F-349B-9131-263E8958B23A>
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x105def000 - 0x105f0aff7 org.python.python (2.7.1 - 2.7.1)
<A7E34EB5-24D2-3B8F-A26B-4A5B28CD2C60>
/System/Library/Frameworks/Python.framework/Versions/2.7/Python
0x10613d000 - 0x10613efff termios.so (??? - ???)
<578DA44F-17E3-3343-982F-BB543CBB49F1>
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/termios.so
0x106143000 - 0x106154fff _ctypes.so (??? - ???)
<2D2AE6AF-704A-3CBB-954B-33BA49B78254>
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ctypes.so
0x10615f000 - 0x106163fff _struct.so (??? - ???)
<A871A47E-0BF6-3A21-BF66-A5438C54B237>
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
0x1061ea000 - 0x1061f0fff itertools.so (??? - ???)
<7C8350B9-8DD3-377A-A5C1-1103A6C955A6>
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
0x1061f9000 - 0x106277fef +libfreetype.dylib (15.1.0 -
compatibility 15.0.0) <CE146ED6-0758-367B-AE12-4DBF3D441224>
/usr/local/lib/libfreetype.dylib
0x7fff659e7000 - 0x7fff65a1bbaf dyld (195.6 - ???)
<0CD1B35B-A28F-32DA-B72E-452EAD609613> /usr/lib/dyld
0x7fff851db000 - 0x7fff851dbfff libkeymgr.dylib (23.0.0 -
compatibility 1.0.0) <61EFED6A-A407-301E-B454-CD18314F0075>
/usr/lib/system/libkeymgr.dylib
0x7fff853cd000 - 0x7fff854b1e5f libobjc.A.dylib (228.0.0 -
compatibility 1.0.0) <871E688B-CF57-3BC7-80D6-F6476DFF109B>
/usr/lib/libobjc.A.dylib
0x7fff8659f000 - 0x7fff8667cfef libsystem_c.dylib (763.12.0 -
compatibility 1.0.0) <FF69F06E-0904-3C08-A5EF-536FAFFFDC22>
/usr/lib/system/libsystem_c.dylib
0x7fff867cb000 - 0x7fff867ccff7 libremovefile.dylib (21.1.0 -
compatibility 1.0.0) <739E6C83-AA52-3C6C-A680-B37FE2888A04>
/usr/lib/system/libremovefile.dylib
0x7fff86fb2000 - 0x7fff86fbcff7 liblaunch.dylib (392.18.0 -
compatibility 1.0.0) <39EF04F2-7F0C-3435-B785-BF283727FFBD>
/usr/lib/system/liblaunch.dylib
0x7fff8706d000 - 0x7fff87071fff libdyld.dylib (195.5.0 -
compatibility 1.0.0) <F1903B7A-D3FF-3390-909A-B24E09BAD1A5>
/usr/lib/system/libdyld.dylib
0x7fff870d1000 - 0x7fff870e3ff7 libz.1.dylib (1.2.5 -
compatibility 1.0.0) <30CBEF15-4978-3DED-8629-7109880A19D4>
/usr/lib/libz.1.dylib
0x7fff87744000 - 0x7fff87745ff7 libsystem_blocks.dylib (53.0.0 -
compatibility 1.0.0) <8BCA214A-8992-34B2-A8B9-B74DEACA1869>
/usr/lib/system/libsystem_blocks.dylib
0x7fff8779c000 - 0x7fff877a4fff libsystem_dnssd.dylib (??? - ???)
<407A48F3-64A0-348B-88E6-70CECD3D0D67> /usr/lib/system/libsystem_dnssd.dylib
0x7fff877a5000 - 0x7fff877d2fe7 libSystem.B.dylib (159.1.0 -
compatibility 1.0.0) <7BEBB139-50BB-3112-947A-F4AA168F991C>
/usr/lib/libSystem.B.dylib
0x7fff878b3000 - 0x7fff878b8fff libcache.dylib (47.0.0 -
compatibility 1.0.0) <B7757E2E-5A7D-362E-AB71-785FE79E1527>
/usr/lib/system/libcache.dylib
0x7fff878b9000 - 0x7fff878c4ff7 libc++abi.dylib (14.0.0 -
compatibility 1.0.0) <8FF3D766-D678-36F6-84AC-423C878E6D14>
/usr/lib/libc++abi.dylib
0x7fff878d1000 - 0x7fff878d2fff libffi.dylib (??? - ???)
<DB96CC4B-0D38-3102-80AA-91DDE9AF3886> /usr/lib/libffi.dylib
0x7fff87dc5000 - 0x7fff87de2fff libxpc.dylib (77.18.0 -
compatibility 1.0.0) <26C05F31-E809-3B47-AF42-1460971E3AC3>
/usr/lib/system/libxpc.dylib
0x7fff87f66000 - 0x7fff87f73ff7 libbz2.1.0.dylib (1.0.5 -
compatibility 1.0.0) <8EDE3492-D916-37B2-A066-3E0F054411FD>
/usr/lib/libbz2.1.0.dylib
0x7fff882a3000 - 0x7fff882defff libsystem_info.dylib (??? - ???)
<35F90252-2AE1-32C5-8D34-782C614D9639> /usr/lib/system/libsystem_info.dylib
0x7fff88346000 - 0x7fff88347ff7 libsystem_sandbox.dylib (???
- ???) <5087ADAD-D34D-3844-9D04-AFF93CED3D92>
/usr/lib/system/libsystem_sandbox.dylib
0x7fff88348000 - 0x7fff8834efff libmacho.dylib (800.0.0 -
compatibility 1.0.0) <D86F63EC-D2BD-32E0-8955-08B5EAFAD2CC>
/usr/lib/system/libmacho.dylib
0x7fff88521000 - 0x7fff8852aff7 libsystem_notify.dylib (80.1.0 -
compatibility 1.0.0) <A4D651E3-D1C6-3934-AD49-7A104FD14596>
/usr/lib/system/libsystem_notify.dylib
0x7fff88d04000 - 0x7fff88f06fff libicucore.A.dylib (46.1.0 -
compatibility 1.0.0) <38CD6ED3-C8E4-3CCD-89AC-9C3198803101>
/usr/lib/libicucore.A.dylib
0x7fff88f4f000 - 0x7fff89123fff com.apple.CoreFoundation (6.7.1 -
635.19) <57B77925-9065-38C9-A05B-02F4F9ED007C>
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff89611000 - 0x7fff8961ffff libdispatch.dylib (187.7.0 -
compatibility 1.0.0) <712AAEAC-AD90-37F7-B71F-293FF8AE8723>
/usr/lib/system/libdispatch.dylib
0x7fff89e86000 - 0x7fff89e8bfff libcompiler_rt.dylib (6.0.0 -
compatibility 1.0.0) <98ECD5F6-E85C-32A5-98CD-8911230CB66A>
/usr/lib/system/libcompiler_rt.dylib
0x7fff8ab78000 - 0x7fff8abbaff7 libcommonCrypto.dylib (55010.0.0 -
compatibility 1.0.0) <A5B9778E-11C3-3F61-B740-1F2114E967FB>
/usr/lib/system/libcommonCrypto.dylib
0x7fff8ad87000 - 0x7fff8ad8dff7 libunwind.dylib (30.0.0 -
compatibility 1.0.0) <1E9C6C8C-CBE8-3F4B-A5B5-E03E3AB53231>
/usr/lib/system/libunwind.dylib
0x7fff8bb00000 - 0x7fff8bb01fff libdnsinfo.dylib (395.6.0 -
compatibility 1.0.0) <718A135F-6349-354A-85D5-430B128EFD57>
/usr/lib/system/libdnsinfo.dylib
0x7fff8fa32000 - 0x7fff8fa39fff libcopyfile.dylib (85.1.0 -
compatibility 1.0.0) <172B1985-F24A-34E9-8D8B-A2403C9A0399>
/usr/lib/system/libcopyfile.dylib
0x7fff8fa3a000 - 0x7fff8fa5afff libsystem_kernel.dylib (1699.22.81
- compatibility 1.0.0) <B9E259FC-73EA-31E3-8E68-7F980DEBA8A6>
/usr/lib/system/libsystem_kernel.dylib
0x7fff9031c000 - 0x7fff90320fff libmathCommon.A.dylib (2026.0.0 -
compatibility 1.0.0) <FF83AFF7-42B2-306E-90AF-D539C51A4542>
/usr/lib/system/libmathCommon.A.dylib
0x7fff90507000 - 0x7fff90555fff libauto.dylib (??? - ???)
<D8AC8458-DDD0-3939-8B96-B6CED81613EF> /usr/lib/libauto.dylib
0x7fff90c0b000 - 0x7fff90c0dfff libquarantine.dylib (36.2.0 -
compatibility 1.0.0) <48656562-FF20-3B55-9F93-407ACA7341C0>
/usr/lib/system/libquarantine.dylib
0x7fff90c91000 - 0x7fff90d04fff libstdc++.6.dylib (52.0.0 -
compatibility 7.0.0) <6BDD43E4-A4B1-379E-9ED5-8C713653DFF2>
/usr/lib/libstdc++.6.dylib
0x7fff90d05000 - 0x7fff90d06fff libDiagnosticMessagesClient.dylib
(??? - ???) <3DCF577B-F126-302B-BCE2-4DB9A95B8598>
/usr/lib/libDiagnosticMessagesClient.dylib
0x7fff90fec000 - 0x7fff90ff1ff7 libsystem_network.dylib (???
- ???) <5DE7024E-1D2D-34A2-80F4-08326331A75B>
/usr/lib/system/libsystem_network.dylib
0x7fff91366000 - 0x7fff913dbff7 libc++.1.dylib (19.0.0 -
compatibility 1.0.0) <C0EFFF1B-0FEB-3F99-BE54-506B35B555A9>
/usr/lib/libc++.1.dylib
0x7fff91ab5000 - 0x7fff91ab6fff libunc.dylib (24.0.0 -
compatibility 1.0.0) <C67B3B14-866C-314F-87FF-8025BEC2CAAC>
/usr/lib/system/libunc.dylib

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 62985
thread_create: 1
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=58.3M resident=20.9M(36%)
swapped_out_or_unallocated=37.4M(64%)
Writable regions: Total=20.9M written=3316K(15%) resident=4248K(20%)
swapped_out=0K(0%) unallocated=16.8M(80%)

REGION TYPE VIRTUAL
=========== =======
MALLOC 12.6M
MALLOC guard page 32K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 4K
__DATA 1340K
__LINKEDIT 48.0M
__TEXT 10.3M
__UNICODE 544K
shared memory 12K
=========== =======
TOTAL 136.7M

Model: MacBookPro8,2, BootROM MBP81.0047.B27, 4 processors, Intel Core i7,
2.2 GHz, 8 GB, SMC 1.69f3
Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 1024 MB
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x857F,
0x483634353155363446393333334700000000
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x857F,
0x483634353155363446393333334700000000
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6),
Broadcom BCM43xx 1.0 (5.100.98.75.19)
Bluetooth: Version 4.0.3f12, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: Mercury ELECTRA 6G SSD, 120.03 GB
Serial ATA Device: Hitachi HTS725050A9A362, 500.11 GB
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509,
0xfa200000 / 3
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252,
0xfa120000 / 5
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a,
0xfa113000 / 9
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfd120000 / 4
USB Device: USB Optical Mouse, 0x046d (Logitech Inc.), 0xc05a, 0xfd123000
/ 7
USB Device: Logitech Camera, 0x046d (Logitech Inc.), 0x0991, 0xfd121000 / 6
USB Device: Apple Keyboard, apple_vendor_id, 0x024f, 0xfd122000 / 5
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3


freet...@googlecode.com

unread,
May 5, 2012, 12:07:21 PM5/5/12
to Nicolas...@inria.fr

Comment #1 on issue 22 by charlesm...@gmail.com: Crashes on Lion
http://code.google.com/p/freetype-py/issues/detail?id=22

It turns out that if you just use freetype.Face(...), this crash doesn't
happen. I don't need other functionality, so this resolves my issue, but
you may still want to pursue this.


freet...@googlecode.com

unread,
Jun 27, 2012, 8:09:03 AM6/27/12
to Nicolas...@inria.fr

Comment #3 on issue 22 by Nicolas...@gmail.com: Crashes on Lion
http://code.google.com/p/freetype-py/issues/detail?id=22

Thanks for the report.
Your script does not seem to crash on my machine so it's rather hard to
debug.

Anyone got the same crash ?

freet...@googlecode.com

unread,
Dec 21, 2012, 1:40:14 AM12/21/12
to Nicolas...@inria.fr
Updates:
Status: Invalid

Comment #4 on issue 22 by Nicolas...@gmail.com: Crashes on Lion
http://code.google.com/p/freetype-py/issues/detail?id=22

Closed until further report.

freet...@googlecode.com

unread,
Feb 20, 2013, 5:29:32 PM2/20/13
to Nicolas...@inria.fr

Comment #5 on issue 22 by gulug...@gmail.com: Crashes on Lion
http://code.google.com/p/freetype-py/issues/detail?id=22

I have the same OS and Python versions and encountering a similar problem:

Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from freetype import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.7-intel/egg/freetype/__init__.py", line 38,
in <module>

RuntimeError: Freetype library not found


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

freet...@googlecode.com

unread,
Feb 20, 2013, 6:18:50 PM2/20/13
to Nicolas...@inria.fr

Comment #6 on issue 22 by gulug...@gmail.com: Crashes on Lion
http://code.google.com/p/freetype-py/issues/detail?id=22

Nevermind. A bit of digging and realized that this is just a wrapper which
does not list the dependency of what it is wrapping. Installing the actual
FreeType library fixes my issue, and probably would solve a few other
reports I've seen.
Reply all
Reply to author
Forward
0 new messages