Hi everyone,

I've been implementing some mouse gestures and have discovered what may be a 
bug with QGestureRecognizer. Everything functions correctly until the 
application exits at which point a segmentation fault is thrown. This seems to 
happen during the deallocation of the QGestureRecognizer object(s). I've tested 
this on Mac OSX 10.8, Windows 7 and Linux Mint with the same result.

A test program and associated Mac OSX problem report are attached. To 
reproduce, simply run and exit the test program.

If not a bug, any thoughts on the possible cause of the error would be 
gratefully received.

Thanks very much in advance, Rob

Process:         Python [1601]
Path:            
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      org.python.python
Version:         2.7.2 (2.7.2)
Build Info:      python-60003000000000~22
Code Type:       X86-64 (Native)
Parent Process:  bash [532]
User ID:         501

PlugIn Path:       /Library/Python/2.7/site-packages/PyQt4/QtGui.so
PlugIn Identifier: QtGui.so
PlugIn Version:    ??? (0)

Date/Time:       2013-01-10 11:29:18.487 +0000
OS Version:      Mac OS X 10.8.2 (12C3006)
Report Version:  10

Interval Since Last Report:          41854 sec
Crashes Since Last Report:           84
Per-App Interval Since Last Report:  3293 sec
Per-App Crashes Since Last Report:   84
Anonymous UUID:                      5040B047-1EA4-4563-5FD1-66E0881A2A39

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

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   QtGui.so                        0x000000010ffbbf12 
dealloc_QGestureRecognizer + 98
1   sip.so                          0x000000010fd2f42d forgetObject + 94
2   sip.so                          0x000000010fd2e322 sipSimpleWrapper_dealloc 
+ 14
3   org.python.python               0x000000010f3904e7 0x10f2f0000 + 656615
4   org.python.python               0x000000010f35adef 0x10f2f0000 + 437743
5   sip.so                          0x000000010fd2e51e sipSimpleWrapper_clear + 
208
6   sip.so                          0x000000010fd3722b sipWrapper_clear + 23
7   sip.so                          0x000000010fd37131 sipWrapper_dealloc + 22
8   org.python.python               0x000000010f3904e7 0x10f2f0000 + 656615
9   org.python.python               0x000000010f35a0b7 0x10f2f0000 + 434359
10  org.python.python               0x000000010f359f10 PyDict_SetItem + 145
11  org.python.python               0x000000010f362398 _PyModule_Clear + 353
12  org.python.python               0x000000010f32dc51 PyImport_Cleanup + 507
13  org.python.python               0x000000010f3420f3 Py_Finalize + 328
14  org.python.python               0x000000010f34328d 0x10f2f0000 + 340621
15  org.python.python               0x000000010f342e8a PyErr_PrintEx + 41
16  org.python.python               0x000000010f34287f PyRun_SimpleFileExFlags 
+ 755
17  org.python.python               0x000000010f366e27 Py_Main + 2715
18  libdyld.dylib                   0x00007fff853de7e1 start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8b283d16 kevent + 10
1   libdispatch.dylib               0x00007fff8e4bedea _dispatch_mgr_invoke + 
883
2   libdispatch.dylib               0x00007fff8e4be9ee _dispatch_mgr_thread + 54

Thread 2:
0   libsystem_kernel.dylib          0x00007fff8b2836d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff86ccceec _pthread_workq_return + 
25
2   libsystem_c.dylib               0x00007fff86ccccb3 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff86cb7171 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff8b2836d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff86ccceec _pthread_workq_return + 
25
2   libsystem_c.dylib               0x00007fff86ccccb3 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff86cb7171 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff8b2836d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff86ccceec _pthread_workq_return + 
25
2   libsystem_c.dylib               0x00007fff86ccccb3 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff86cb7171 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff8b2836d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff86ccceec _pthread_workq_return + 
25
2   libsystem_c.dylib               0x00007fff86ccccb3 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff86cb7171 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0xa00007fcb5cd4350  rbx: 0x00007fcb5b4072b0  rcx: 0x0000000000000000  
rdx: 0x00007fcb5b489330
  rdi: 0x00007fcb5cd526b0  rsi: 0x0000000100000000  rbp: 0x00007fff50914410  
rsp: 0x00007fff50914400
   r8: 0x0000000000002060   r9: 0x00007fff50914390  r10: 0x00007fcb5cd4db00  
r11: 0x00000000ddecfbd1
  r12: 0x000000010fd2e314  r13: 0x000000010f390253  r14: 0x00007fcb5cd526b0  
r15: 0x00007fcb5ca0e6c0
  rip: 0x000000010ffbbf12  rfl: 0x0000000000010202  cr2: 0x000000010f928b00
Logical CPU: 6

Binary Images:
       0x10f2eb000 -        0x10f2ebfff  org.python.python (2.7.2 - 2.7.2) 
<A3CE5618-7FE0-3307-B2C1-DE2661C936B2> 
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x10f2f0000 -        0x10f3fdfff  org.python.python (2.7.2 - 2.7.2) 
<B2E5B3C9-2D7C-37D7-B23D-84DEF8DDAF28> 
/System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x10f643000 -        0x10f7e7fff +QtCore.so (0) 
<A2F1C009-6150-3A73-8445-937649CF7DCD> 
/Library/Python/2.7/site-packages/PyQt4/QtCore.so
       0x10f90e000 -        0x10fbdafff +QtCore (4.8.1) 
<6B9A68BA-E0D1-DCBB-F398-85C71CEEB8CA> 
/Users/USER/*/QtCore.framework/Versions/4/QtCore
       0x10fd2c000 -        0x10fd3dfff +sip.so (0) 
<AE8A20CF-1662-341A-B7C3-8513B5399DE3> /Library/Python/2.7/site-packages/sip.so
       0x10fd46000 -        0x110267fff +QtGui.so (0) 
<C0865D02-6ED8-32FA-89D7-574E27F351AF> 
/Library/Python/2.7/site-packages/PyQt4/QtGui.so
       0x110662000 -        0x11107dfe7 +QtGui (4.8.1) 
<2D6C0E6E-F816-EFCC-B196-EAC4F0A02154> 
/Users/USER/*/QtGui.framework/Versions/4/QtGui
       0x1113bd000 -        0x1113c0fff  _collections.so (60.3) 
<20EAC750-00E1-3216-BB1F-472C0CEA6118> 
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x1113c6000 -        0x1113c9fff  operator.so (60.3) 
<16E539EB-683E-3BDF-83AA-77ED26146560> 
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x11140f000 -        0x111415fff  itertools.so (60.3) 
<C273B16D-A69E-3D3C-B3F5-43F6B0BC333F> 
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x11141e000 -        0x11141efff  _bisect.so (60.3) 
<BEAA36C6-86EF-3272-9F95-29AED2B60109> 
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_bisect.so
       0x111422000 -        0x111423fff  _heapq.so (60.3) 
<C02D109C-B83B-385E-86E9-04F551749448> 
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x1127b2000 -        0x1127d6ff7  com.apple.security.csparser (3.0 - 
55179.1) <E3D8D12B-84F7-3746-A019-F1AB5B150DF8> 
/System/Library/Frameworks/Security.framework/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x1127ec000 -        0x1128a5ff7  ColorSyncDeprecated.dylib (400) 
<7CE58F6E-D2C8-39FB-8EE0-28CC6EC6D04F> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/Resources/ColorSyncDeprecated.dylib
    0x7fff6eeeb000 -     0x7fff6ef1f93f  dyld (210.2.3) 
<A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
    0x7fff84fbe000 -     0x7fff84fc0ff7  libunc.dylib (25) 
<92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
    0x7fff85299000 -     0x7fff85302fff  libstdc++.6.dylib (56) 
<EAA2B53E-EADE-39CF-A0EF-FB9D4940672A> /usr/lib/libstdc++.6.dylib
    0x7fff8530f000 -     0x7fff8531dfff  libcommonCrypto.dylib (60027) 
<DA98AE56-BC3F-3AD0-9660-8CC79E4AECE6> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8531e000 -     0x7fff853dbff7  com.apple.ColorSync (4.8.0 - 4.8.0) 
<6CE333AE-EDDB-3768-9598-9DB38041DC55> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff853dc000 -     0x7fff853dfff7  libdyld.dylib (210.2.3) 
<F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
    0x7fff853e0000 -     0x7fff853e9fff  com.apple.CommerceCore (1.0 - 26) 
<997CD214-BC78-3C61-A1B8-813EA1CB9997> 
/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore
    0x7fff853ea000 -     0x7fff855eafff  libicucore.A.dylib (491.11.1) 
<CC318A27-878A-38CE-9292-1B98353FA9C7> /usr/lib/libicucore.A.dylib
    0x7fff855f8000 -     0x7fff855f9ff7  libdnsinfo.dylib (453.18) 
<E7595861-ECF9-336E-9901-BED2620FAA80> /usr/lib/system/libdnsinfo.dylib
    0x7fff855fa000 -     0x7fff856abfff  com.apple.LaunchServices (539.7 - 
539.7) <DA7C602E-5E01-31B8-925D-B45360CA089F> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff85fcb000 -     0x7fff85fcbffd  com.apple.audio.units.AudioUnit (1.8 - 
1.8) <29E2C990-3617-3FA2-BDD7-DB7DF493E443> 
/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff85fcc000 -     0x7fff86167fef  com.apple.vImage (6.0 - 6.0) 
<FAE13169-295A-33A5-8E6B-7C2CC1407FA7> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff86168000 -     0x7fff8616afff  com.apple.securityhi (4.0 - 55002) 
<34E45C60-DC7E-3FCC-A1ED-EBF48B77C559> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff86217000 -     0x7fff86573fff  com.apple.Foundation (6.8 - 945.11) 
<A5D41956-A354-3ACC-9355-BE200072223B> 
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff86575000 -     0x7fff865c4ff7  libcorecrypto.dylib (106.2) 
<CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
    0x7fff865c5000 -     0x7fff865c5fff  com.apple.Accelerate.vecLib (3.8 - 
vecLib 3.8) <B5A18EE8-DF81-38DD-ACAF-7076B2A26225> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff865c6000 -     0x7fff866c3fff  libsqlite3.dylib (138.1) 
<ADE9CB98-D77D-300C-A32A-556B7440769F> /usr/lib/libsqlite3.dylib
    0x7fff866c4000 -     0x7fff8679eff7  com.apple.backup.framework (1.4.1 - 
1.4.1) <A3CFCA9E-717C-302D-821B-16FD35E6673F> 
/System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff867a6000 -     0x7fff867cefff  libJPEG.dylib (845) 
<A32618D7-FB91-3EE2-A105-5407B2F3F8D8> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff86a50000 -     0x7fff86ab8ff7  libc++.1.dylib (65.1) 
<20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
    0x7fff86ab9000 -     0x7fff86abefff  libcompiler_rt.dylib (30) 
<08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
    0x7fff86ac0000 -     0x7fff86afdfe7  libGLImage.dylib (8.6.1) 
<7F31DD61-3110-3541-A9BB-035CD1262E50> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff86afe000 -     0x7fff86b34fff  libsystem_info.dylib (406.17) 
<4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
    0x7fff86b5d000 -     0x7fff86b5dfff  libkeymgr.dylib (25) 
<CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
    0x7fff86b5e000 -     0x7fff86bbaff7  com.apple.Symbolication (1.3 - 93) 
<F2C7E0B6-B241-3020-B30A-0636D0FA3378> 
/System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff86bbb000 -     0x7fff86c8dff7  com.apple.CoreText (260.0 - 275.16) 
<5BFC1D67-6A6F-38BC-9D90-9C712684EDAC> 
/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff86c8e000 -     0x7fff86cabfff  com.apple.openscripting (1.3.6 - 
148.2) <33B87CFB-CACC-3EBC-893D-38AECB94FB8A> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff86cac000 -     0x7fff86caefff  libCVMSPluginSupport.dylib (8.6.1) 
<7EFDA31E-E463-3897-A8DC-7FD266EB713E> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff86cb1000 -     0x7fff86cb5fff  libpam.2.dylib (20) 
<C8F45864-5B58-3237-87E1-2C258A1D73B8> /usr/lib/libpam.2.dylib
    0x7fff86cb6000 -     0x7fff86d82fe7  libsystem_c.dylib (825.25) 
<8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
    0x7fff86ddf000 -     0x7fff86dfffff  libPng.dylib (845) 
<C3CDD2B4-3CB0-3F6D-8411-DAAF267E952B> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff86e00000 -     0x7fff86e3fff7  com.apple.QD (3.42 - 285) 
<8DF36FCA-C06B-30F4-A631-7BE2FF7E56D1> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff86fcf000 -     0x7fff86ffdff7  libsystem_m.dylib (3022.6) 
<B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
    0x7fff8705b000 -     0x7fff87061fff  libGFXShared.dylib (8.6.1) 
<CF55E720-1B9E-3E24-A1DA-7FA8B261CD8E> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff87062000 -     0x7fff87459fff  libLAPACK.dylib (1073.4) 
<D632EC8B-2BA0-3853-800A-20DA00A1091C> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff8746e000 -     0x7fff8788bfff  FaceCoreLight (2.4.1) 
<A34C9575-C4C1-31B1-809B-7751070B4E8B> 
/System/Library/PrivateFrameworks/FaceCoreLight.framework/Versions/A/FaceCoreLight
    0x7fff8788e000 -     0x7fff878b0ff7  libxpc.dylib (140.41) 
<FAC04D8B-680E-325F-8F0C-DD69859D0E01> /usr/lib/system/libxpc.dylib
    0x7fff878b1000 -     0x7fff87902ff7  com.apple.SystemConfiguration (1.12.2 
- 1.12.2) <E095637C-457F-3D8F-AE32-A032F9D5A46C> 
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff87903000 -     0x7fff87911ff7  libkxld.dylib (2050.20.9) 
<27342FF8-E3DA-3E03-B3FB-CFFD64F20E80> /usr/lib/system/libkxld.dylib
    0x7fff879cd000 -     0x7fff879d1ff7  com.apple.CommonPanels (1.2.5 - 94) 
<AAC003DE-2D6E-38B7-B66B-1F3DA91E7245> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
    0x7fff879d2000 -     0x7fff879d9fff  com.apple.NetFS (5.0 - 4.0) 
<82E24B9A-7742-3DA3-9E99-ED267D98C05E> 
/System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff879da000 -     0x7fff87bc3fff  com.apple.CoreFoundation (6.8 - 
744.12) <EF002794-DAEF-31C6-866C-E3E3AC387A9F> 
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff87bca000 -     0x7fff87cc7ff7  libxml2.2.dylib (22.3) 
<47B09CB2-C636-3024-8B55-6040F7829B4C> /usr/lib/libxml2.2.dylib
    0x7fff87cd6000 -     0x7fff87cdaff7  com.apple.TCC (1.0 - 1) 
<F2F3B753-FC73-3543-8BBE-859FDBB4D6A6> 
/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff87cdb000 -     0x7fff87ce8ff7  com.apple.NetAuth (4.0 - 4.0) 
<F5BC7D7D-AF28-3C83-A674-DADA48FF7810> 
/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff87da8000 -     0x7fff87dbdfff  com.apple.ImageCapture (8.0 - 8.0) 
<17A45CE6-7DA3-36A5-B7EF-72BC136981AE> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff87dbe000 -     0x7fff87e02fff  libcups.2.dylib (327) 
<9B3F3321-D2BC-3195-BF20-4008FC52A390> /usr/lib/libcups.2.dylib
    0x7fff87e12000 -     0x7fff887a21f7  com.apple.CoreGraphics (1.600.0 - 
328.0.4) <9A1324EF-C9CB-30E4-AE9F-0AEF69052FAE> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff887a3000 -     0x7fff887f9fff  com.apple.HIServices (1.20 - 417) 
<A1129272-FEC8-350B-BA26-5A97F23C413D> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff89140000 -     0x7fff89156fff  com.apple.MultitouchSupport.framework 
(235.29 - 235.29) <617EC8F1-BCE7-3553-86DD-F857866E1257> 
/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff89157000 -     0x7fff89157fff  com.apple.ApplicationServices (45 - 
45) <A3ABF20B-ED3A-32B5-830E-B37831A45A80> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff89158000 -     0x7fff8918efff  com.apple.DebugSymbols (98 - 98) 
<14E788B1-4EB2-3FD7-934B-849534DFC198> 
/System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff8918f000 -     0x7fff894a6ff7  com.apple.CoreServices.CarbonCore 
(1037.3 - 1037.3) <DF7CABCA-F2CB-345B-8EFF-F0F4E937B7FF> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff894a7000 -     0x7fff8a0d4ff7  com.apple.AppKit (6.8 - 1187.34) 
<1FF64844-EB62-3F96-AED7-6525B7CCEC23> 
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff8a0d5000 -     0x7fff8a0d5fff  com.apple.vecLib (3.8 - vecLib 3.8) 
<794317C7-4E38-338A-A874-5E18001C8503> 
/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff8a136000 -     0x7fff8a13dfff  libcopyfile.dylib (89) 
<876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
    0x7fff8a13e000 -     0x7fff8a233fff  libiconv.2.dylib (34) 
<FEE8B996-EB44-37FA-B96E-D379664DEFE1> /usr/lib/libiconv.2.dylib
    0x7fff8ab81000 -     0x7fff8ab83ff7  com.apple.print.framework.Print (8.0 - 
258) <34666CC2-B86D-3313-B3B6-A9977AD593DA> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fff8ad47000 -     0x7fff8ad4bfff  libGIF.dylib (845) 
<2690CE83-E934-3EF8-A30A-996EDADCE3E4> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff8adf2000 -     0x7fff8ae98ff7  com.apple.CoreServices.OSServices 
(557.4 - 557.4) <841878A8-6F3E-300D-8F01-444B3CC1F41D> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff8ae99000 -     0x7fff8b0ceff7  com.apple.CoreData (106.1 - 407.7) 
<24E0A6B4-9ECA-3D12-B26A-72B9DCF09768> 
/System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff8b0cf000 -     0x7fff8b13cfff  com.apple.datadetectorscore (4.0 - 
269.1) <C94C372B-3821-3A46-A8C2-091AB1CFF7F4> 
/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff8b1bf000 -     0x7fff8b1deff7  com.apple.ChunkingLibrary (2.0 - 
133.2) <D2A746DE-002A-3C6C-961E-BE94E71DB835> 
/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff8b1df000 -     0x7fff8b25fff7  com.apple.ApplicationServices.ATS (332 
- 341.1) <BD83B039-AB25-3E3E-9975-A67DAE66988B> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff8b271000 -     0x7fff8b28cff7  libsystem_kernel.dylib (2050.20.9) 
<EC0A9F5B-C9F5-336B-A7DD-49A718042F39> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8b39f000 -     0x7fff8b3b6fff  com.apple.GenerationalStorage (1.1 - 
132.2) <3F5C87BD-D866-3732-8CB9-D23ED9784D6E> 
/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff8b3b7000 -     0x7fff8b3bbfff  libCoreVMClient.dylib (24.4) 
<55F71158-ADEE-3863-92E9-4772DCEA8E31> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8b3cc000 -     0x7fff8b466fff  com.apple.CoreSymbolication (3.0 - 87) 
<75F2C0DD-549A-36F6-BD9E-FB40A924344F> 
/System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff8b49f000 -     0x7fff8b4a0ff7  libSystem.B.dylib (169.3) 
<365477AB-D641-389D-B8F4-A1FAE9657EEE> /usr/lib/libSystem.B.dylib
    0x7fff8b5f5000 -     0x7fff8b5f5fff  com.apple.Accelerate (1.8 - Accelerate 
1.8) <6AD48543-0864-3D40-80CE-01F184F24B45> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff8b6cd000 -     0x7fff8b6e1fff  libGL.dylib (8.6.1) 
<2E00615F-97F5-34EB-BE07-75A24F3C18D7> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff8b6e2000 -     0x7fff8b986fff  com.apple.CoreImage (8.2.2 - 1.0.1) 
<930B0B23-DD84-3B0C-B5A9-C09B7068A6F0> 
/System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff8b987000 -     0x7fff8b988fff  libDiagnosticMessagesClient.dylib (8) 
<8548E0DC-0D2F-30B6-B045-FE8A038E76D8> 
/usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8b989000 -     0x7fff8b9f1fff  libvDSP.dylib (380.6) 
<CD4C5EEB-9E63-30C4-8103-7A5EAEA0BE60> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff8bf7e000 -     0x7fff8bf88fff  com.apple.speech.recognition.framework 
(4.1.5 - 4.1.5) <D803919C-3102-3515-A178-61E9C86C46A1> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff8bf89000 -     0x7fff8bf8ffff  com.apple.DiskArbitration (2.5.1 - 
2.5.1) <C0EC9C24-F5F4-3378-84DE-EA1073DA760E> 
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff8c314000 -     0x7fff8c318fff  com.apple.IOSurface (86.0.3 - 86.0.3) 
<C121DE83-ED12-3DC1-BDB3-4FCB29AB0571> 
/System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff8c578000 -     0x7fff8c585fff  com.apple.AppleFSCompression (49 - 
1.0) <5508344A-2A7E-3122-9562-6F363910A80E> 
/System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff8c586000 -     0x7fff8c5a8ff7  com.apple.Kerberos (2.0 - 1) 
<C49B8820-34ED-39D7-A407-A3E854153556> 
/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff8c5a9000 -     0x7fff8c71dfff  com.apple.CFNetwork (596.2.3 - 
596.2.3) <6A16C2BD-1035-30F9-AE96-D9E3BB54A976> 
/System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff8c760000 -     0x7fff8c761fff  libsystem_blocks.dylib (59) 
<D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8c762000 -     0x7fff8c7e3fff  com.apple.Metadata (10.7.0 - 707.3) 
<A45D75C1-B311-39F0-AF4A-63FCCC098C1D> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff8c7e4000 -     0x7fff8c7eafff  libmacho.dylib (829) 
<BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
    0x7fff8c7eb000 -     0x7fff8c7f6ff7  com.apple.bsd.ServiceManagement (2.0 - 
2.0) <C12962D5-85FB-349E-AA56-64F4F487F219> 
/System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff8c805000 -     0x7fff8c833fff  com.apple.CoreServicesInternal (154.2 
- 154.2) <3E6196E6-F3B4-316F-9E1F-13B6B9694C7E> 
/System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff8c87a000 -     0x7fff8c89fff7  libc++abi.dylib (24.4) 
<E7BD9363-1D25-3551-A68A-2E2FF6ABECD7> /usr/lib/libc++abi.dylib
    0x7fff8c9c1000 -     0x7fff8c9c9ff7  libsystem_dnssd.dylib (379.34) 
<F0AE5B8E-C7CC-3393-927F-B65DB04016AA> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8c9ca000 -     0x7fff8c9cafff  com.apple.Carbon (154 - 155) 
<372716D2-6FA1-3611-8501-3DD1D4A6E8C8> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff8c9cb000 -     0x7fff8ca58ff7  com.apple.SearchKit (1.4.0 - 1.4.0) 
<C7F43889-F8BF-3CB9-AD66-11AEFCBCEDE7> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff8ca59000 -     0x7fff8cac7fff  com.apple.framework.IOKit (2.0.1 - 
755.20.4) <F2E5AC1B-F03D-3916-B239-7B421579DFA5> 
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff8cac8000 -     0x7fff8caf9ff7  com.apple.DictionaryServices (1.2 - 
184.4) <054F2D6F-9CFF-3EF1-9778-25C551B616C1> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff8cf30000 -     0x7fff8cf6afff  com.apple.GSS (3.0 - 2.0) 
<0BDF8090-5EF4-3759-94DE-8521D74188AA> 
/System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff8cf6b000 -     0x7fff8cf7ffff  com.apple.speech.synthesis.framework 
(4.1.12 - 4.1.12) <94EDF2AB-809C-3D15-BED5-7AD45B2A7C16> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff8cf80000 -     0x7fff8cf81ff7  libsystem_sandbox.dylib (220) 
<3C3B03CF-C525-3CB3-8557-62E91B93AC95> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8cf82000 -     0x7fff8cf82fff  com.apple.CoreServices (57 - 57) 
<9DD44CB0-C644-35C3-8F57-0B41B3EC147D> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff8d074000 -     0x7fff8d08bfff  com.apple.CFOpenDirectory (10.8 - 
151.10) <FFBBA538-00B5-334E-BA5B-C8AD6CDCDA14> 
/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff8d08d000 -     0x7fff8d3bdff7  com.apple.HIToolbox (2.0 - 625) 
<317F75F7-4B0F-35F5-89A7-F20BA60AC944> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff8dbf1000 -     0x7fff8dc1bff7  com.apple.CoreVideo (1.8 - 99.3) 
<C424838A-889C-39E5-8108-FD05C93D26A0> 
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff8dc1c000 -     0x7fff8dc9efff  com.apple.Heimdal (3.0 - 2.0) 
<660A6C64-4912-32C8-A332-B64164032A2D> 
/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff8dd0f000 -     0x7fff8dd22ff7  libbsm.0.dylib (32) 
<F497D3CE-40D9-3551-84B4-3D5E39600737> /usr/lib/libbsm.0.dylib
    0x7fff8dd23000 -     0x7fff8de25fff  libJP2.dylib (845) 
<405CAF25-0AA5-3C6B-A4A6-94471A1EDD2F> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff8de26000 -     0x7fff8dea4ff7  com.apple.securityfoundation (6.0 - 
55115.4) <C5461971-E455-31A6-99B8-AF80C4BC26DD> 
/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff8df28000 -     0x7fff8df2bfff  libRadiance.dylib (845) 
<E8956A35-494E-3014-8B86-362D32576116> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff8df2c000 -     0x7fff8df31fff  libcache.dylib (57) 
<65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
    0x7fff8df32000 -     0x7fff8df41ff7  com.apple.opengl (1.8.6 - 1.8.6) 
<720CC06C-0D01-37AE-BB3D-D7F0242B262A> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff8df42000 -     0x7fff8df9cfff  com.apple.print.framework.PrintCore 
(8.1 - 387.1) <1FA17B75-33E6-35BD-9198-35F92E37B248> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff8dfac000 -     0x7fff8dfb9fff  libbz2.1.0.dylib (29) 
<CE9785E8-B535-3504-B392-82F0064D9AF2> /usr/lib/libbz2.1.0.dylib
    0x7fff8dfc6000 -     0x7fff8dfccff7  libunwind.dylib (35.1) 
<21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
    0x7fff8dfcd000 -     0x7fff8dfd8fff  libsystem_notify.dylib (98.5) 
<C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
    0x7fff8dfea000 -     0x7fff8dfebff7  libremovefile.dylib (23.1) 
<DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
    0x7fff8dfee000 -     0x7fff8e00fff7  libCRFSuite.dylib (33) 
<736ABE58-8DED-3289-A042-C25AF7AE5B23> /usr/lib/libCRFSuite.dylib
    0x7fff8e010000 -     0x7fff8e014fff  libCGXType.A.dylib (328.0.4) 
<446116C9-E59C-35FA-892A-7F6BA8C9DA8A> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
    0x7fff8e0b5000 -     0x7fff8e0dcfff  com.apple.framework.familycontrols 
(4.1 - 410) <AE49B2AB-7D2B-3D52-8E21-60EBEA1A38E6> 
/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
    0x7fff8e0dd000 -     0x7fff8e0ddfff  libOpenScriptingUtil.dylib (148.2) 
<B8061D13-C1B2-38D5-A723-9A98D64E67AC> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff8e0de000 -     0x7fff8e0e6fff  liblaunch.dylib (442.26.2) 
<2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
    0x7fff8e177000 -     0x7fff8e179fff  libquarantine.dylib (52) 
<4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
    0x7fff8e17a000 -     0x7fff8e300fff  libBLAS.dylib (1073.4) 
<C102C0F6-8CB6-3B49-BA6B-2EB61F0B2784> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff8e349000 -     0x7fff8e39fff7  com.apple.opencl (2.1.21 - 2.1.21) 
<E2E3C6D8-208D-3926-B051-77FDD8F0BE2D> 
/System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff8e3a0000 -     0x7fff8e4b9ff7  com.apple.ImageIO.framework (3.2.0 - 
845) <553B9828-A7D9-3AE4-A214-1C33417545FD> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff8e4ba000 -     0x7fff8e4cfff7  libdispatch.dylib (228.23) 
<D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
    0x7fff8e511000 -     0x7fff8e532fff  com.apple.Ubiquity (1.2 - 243.10) 
<F97D3A33-2C8B-3CFF-AF75-A74866D42853> 
/System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
    0x7fff8e5db000 -     0x7fff8e602ff7  com.apple.PerformanceAnalysis (1.16 - 
16) <E4888388-F41B-313E-9CBB-5807D077BDA9> 
/System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff8e603000 -     0x7fff8e611ff7  libsystem_network.dylib (77.10) 
<0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
    0x7fff8e612000 -     0x7fff8e625ff7  com.apple.LangAnalysis (1.7.0 - 1.7.0) 
<2F2694E9-A7BC-33C7-B4CF-8EC907DF0FEB> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff8e653000 -     0x7fff8e6b0ff7  com.apple.AE (645.3 - 645.3) 
<FF867ACA-8628-3E5A-8FA0-AF429B42C5D7> 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff8e6b1000 -     0x7fff8e6bdfff  libCSync.A.dylib (328.0.4) 
<D49C5371-6BCC-32F6-9013-BFF2E924B790> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x7fff8e6be000 -     0x7fff8e98efff  com.apple.security (7.0 - 55179.1) 
<639641EF-8156-3190-890C-1053658E044A> 
/System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff8e9ec000 -     0x7fff8ea2fff7  com.apple.bom (12.0 - 192) 
<0BF1F2D2-3648-36B7-BE4B-551A0173209B> 
/System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x7fff8ecf4000 -     0x7fff8ed13ff7  libresolv.9.dylib (51) 
<0882DC2D-A892-31FF-AD8C-0BB518C48B23> /usr/lib/libresolv.9.dylib
    0x7fff8ed14000 -     0x7fff8ed60ff7  libauto.dylib (185.1) 
<73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib
    0x7fff8edf8000 -     0x7fff8edfbfff  com.apple.help (1.3.2 - 42) 
<343904FE-3022-3573-97D6-5FE17F8643BA> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff8edfc000 -     0x7fff8ee96fff  libvMisc.dylib (380.6) 
<714336EA-1C0E-3735-B31C-19DFDAAF6221> 
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff8fec4000 -     0x7fff90015fff  com.apple.audio.toolbox.AudioToolbox 
(1.8 - 1.8) <833DA682-A3C1-39E7-AEC3-9EDC734DE2A9> 
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff90108000 -     0x7fff90134ff7  libRIP.A.dylib (328.0.4) 
<9DFF2DC8-9877-3546-A760-929CD974E30A> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x7fff90135000 -     0x7fff90140fff  com.apple.CommonAuth (3.0 - 2.0) 
<74A86DDD-57D0-3178-AB74-E1F31DBFFC39> 
/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff9019d000 -     0x7fff901fafff  com.apple.audio.CoreAudio (4.1.0 - 
4.1.0) <B3198BD6-EA1D-3E5E-ADD4-37D8E6B72678> 
/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff902b2000 -     0x7fff902b3fff  liblangid.dylib (116) 
<864C409D-D56B-383E-9B44-A435A47F2346> /usr/lib/liblangid.dylib
    0x7fff902b4000 -     0x7fff902c2fff  com.apple.Librarian (1.1 - 1) 
<1635162F-239A-341E-83C7-710C55E254AF> 
/System/Library/PrivateFrameworks/Librarian.framework/Versions/A/Librarian
    0x7fff904fa000 -     0x7fff90549ff7  libFontRegistry.dylib (100) 
<2E03D7DA-9B8F-31BB-8FB5-3D3B6272127F> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff9054a000 -     0x7fff905a1ff7  com.apple.ScalableUserInterface (1.0 - 
1) <F1D43DFB-1796-361B-AD4B-39F1EED3BE19> 
/System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/ScalableUserInterface.framework/Versions/A/ScalableUserInterface
    0x7fff906d4000 -     0x7fff90772ff7  com.apple.ink.framework (10.8.2 - 150) 
<84B9825C-3822-375F-BE58-A753444FBDE2> 
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff90788000 -     0x7fff9079aff7  libz.1.dylib (43) 
<2A1551E8-A272-3DE5-B692-955974FE1416> /usr/lib/libz.1.dylib
    0x7fff90b0f000 -     0x7fff90b11fff  com.apple.TrustEvaluationAgent (2.0 - 
23) <A97D348B-32BF-3E52-8DF2-59BFAD21E1A3> 
/System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff90b12000 -     0x7fff90c2a92f  libobjc.A.dylib (532.2) 
<90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
    0x7fff90c6e000 -     0x7fff90c73fff  com.apple.OpenDirectory (10.8 - 
151.10) <CF44120B-9B01-32DD-852E-C9C0E1243FC0> 
/System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff90c74000 -     0x7fff90e22fff  com.apple.QuartzCore (1.8 - 304.0) 
<BDC66714-F60C-386D-A773-F897D1E87AB6> 
/System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff90e23000 -     0x7fff90e32ff7  libxar.1.dylib (105) 
<370ED355-E516-311E-BAFD-D80633A84BE1> /usr/lib/libxar.1.dylib
    0x7fff910da000 -     0x7fff911fafff  com.apple.desktopservices (1.7.2 - 
1.7.2) <CDE8C2C2-C505-31B0-8C61-E40E4EA364A5> 
/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff911fb000 -     0x7fff91226fff  libxslt.1.dylib (11.3) 
<441776B8-9130-3893-956F-39C85FFA644F> /usr/lib/libxslt.1.dylib
    0x7fff9139c000 -     0x7fff913f1ff7  libTIFF.dylib (845) 
<ADCB4683-69EB-318B-8BE7-5FDF38BCADAF> 
/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff913f2000 -     0x7fff913fefff  com.apple.CrashReporterSupport (10.8.2 
- 415) <55783BF9-125E-3F9C-A412-6A095ECD9353> 
/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff9149e000 -     0x7fff915a9fff  libFontParser.dylib (84.5) 
<617A7D30-C7BC-39FC-A1FE-59367B4A5719> 
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff91608000 -     0x7fff91652ff7  libGLU.dylib (8.6.1) 
<DF45C1E3-3884-3991-B84F-F39B482E8BF8> 
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff91653000 -     0x7fff91696fff  com.apple.RemoteViewServices (2.0 - 
80.5) <F3A897C9-A277-3B56-8FB3-2BC2C10C33BF> 
/System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff91e98000 -     0x7fff91f5dff7  com.apple.coreui (2.0 - 181.1) 
<83D2C92D-6842-3C9D-9289-39D5B4554C3A> 
/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 2
    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: 1325
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=171.7M resident=135.2M(79%) 
swapped_out_or_unallocated=36.5M(21%)
Writable regions: Total=115.8M written=9348K(8%) resident=12.4M(11%) 
swapped_out=0K(0%) unallocated=103.4M(89%)
 
REGION TYPE                      VIRTUAL
===========                      =======
CG backing stores                   196K
CG image                              4K
CG shared images                   1216K
CoreServices                       3248K
MALLOC                             86.8M
MALLOC guard page                    48K
Memory tag=242                       12K
STACK GUARD                        56.0M
Stack                              10.5M
VM_ALLOCATE                        16.1M
__DATA                             12.6M
__IMAGE                             528K
__LINKEDIT                         59.4M
__TEXT                            112.3M
__UNICODE                           544K
mapped file                        75.3M
shared memory                       308K
===========                      =======
TOTAL                             435.0M

Model: MacBookPro9,1, BootROM MBP91.00D3.B08, 4 processors, Intel Core i7, 2.6 
GHz, 8 GB, SMC 2.1f170
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 384 MB
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 
0x484D54333531533643465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 
0x484D54333531533643465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF5), Broadcom 
BCM43xx 1.0 (5.106.98.100.14)
Bluetooth: Version 4.1.2f9 11046, 2 service, 18 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: TOSHIBA MK7559GSXF, 750.16 GB
Serial ATA Device: HL-DT-ST DVDRW  GS31N
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1a100000 / 2
USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0x1a120000 / 4
USB Device: DELL USB Laser Mouse, 0x046d  (Logitech Inc.), 0xc063, 0x1a121000 / 
6
USB Device: Apple Keyboard, apple_vendor_id, 0x0221, 0x1a122000 / 5
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0x1a110000 
/ 3
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1d100000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2513, 0x1d180000 / 3
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0253, 
0x1d183000 / 6
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0x1d182000 / 5
USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1d181000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821d, 0x1d181300 
/ 8
from PyQt4.QtCore import *
from PyQt4.QtGui import *

from collections import namedtuple

class MouseGestureRecognizer(QGestureRecognizer):
    # Directions
    Up            = 0
    Down          = 1
    Left          = 2
    Right         = 3
    AnyHorizontal = 4
    AnyVertical   = 5
    NoMatch       = 6

    def __init__(self, directions=[], minimumMovement=5, minimumMatch=0.9, gestureButton=Qt.RightButton):
        QGestureRecognizer.__init__(self)

        self._directions=directions
        self._minimumMovement=minimumMovement
        self._minimumMatch=minimumMatch
        self._gestureButton=gestureButton

        self._minimumMovement2=self._minimumMovement**2
        self._tracing=False
        self._positions=[]

    def recognize(self, gesture, watched, event):
        result=QGestureRecognizer.Ignore

        if event.type()==QEvent.MouseButtonPress and event.button()==self._gestureButton:
            result=QGestureRecognizer.MayBeGesture
            self._tracing=True
            self._positions=[event.pos()]

        elif event.type()==QEvent.MouseMove and self._tracing:
            x,y=event.pos().x(),event.pos().y()
            dx=x-self._positions[-1].x()
            dy=y-self._positions[-1].y()

            if dx**2+dy**2>=self._minimumMovement2:
                result=QGestureRecognizer.MayBeGesture
                self._positions.append(event.pos())

        elif event.type()==QEvent.MouseButtonRelease and event.button()==self._gestureButton and self._tracing:
            self._tracing=False
            if event.pos()!=self._positions[-1]:
                self._positions.append(event.pos())

                directions=MouseGestureRecognizer.simplify(
                    MouseGestureRecognizer.limitDirections(self._positions)
                )
                minLength=MouseGestureRecognizer.calcLength(directions)*self._minimumMatch

                while len(directions)>0 and MouseGestureRecognizer.calcLength(directions)>minLength:
                    if len(self._directions)==len(directions):
                        match=True
                        for i,di in enumerate(self._directions):
                            if not match: break
                            pi=directions[i]

                            if di==MouseGestureRecognizer.Up:
                                if pi.y()>=0: match=False
                            elif di==MouseGestureRecognizer.Down:
                                if pi.y()<=0: match=False
                            elif di==MouseGestureRecognizer.Left:
                                if pi.x()>=0: match=False
                            elif di==MouseGestureRecognizer.Right:
                                if pi.x()<=0: match=False
                            elif di==MouseGestureRecognizer.AnyHorizontal:
                                if pi.x()==0: match=False
                            elif di==MouseGestureRecognizer.AnyVertical:
                                if pi.y()==0: match=False
                            elif di==MouseGestureRecognizer.NoMatch: match=False

                        if match: return QGestureRecognizer.FinishGesture

                    directions=MouseGestureRecognizer.simplify(
                        MouseGestureRecognizer.removeShortest(directions)
                    )

            else: result=QGestureRecognizer.CancelGesture

        return result

    def reset(self, state):
        self._positions=[]
        QGestureRecognizer.reset(self, state)

    @staticmethod
    def limitDirections(positions):
        res=[]
        firstTime=True

        for ii in positions:
            if firstTime:
                lastx=ii.x()
                lasty=ii.y()
                firstTime=False
            else:
                dx=ii.x()-lastx
                dy=ii.y()-lasty

                if dy>0:
                    if dx>dy or -dx>dy: dy=0
                    else: dx=0
                else:
                    if dx>-dy or -dx>-dy: dy=0
                    else: dx=0

                res.append(QPoint(dx,dy))
                lastx=ii.x()
                lasty=ii.y()

        return res

    @staticmethod
    def simplify(positions):
        res=[]
        lastdx=0
        lastdy=0
        firstTime=True

        for ii in positions:
            if firstTime:
                lastdx=ii.x()
                lastdy=ii.y()
                firstTime=False
            else:
                joined=False
                if (lastdx>0 and ii.x()>0) or (lastdx<0 and ii.x()<0):
                    lastdx+=ii.x()
                    joined=True
                if (lastdy>0 and ii.y()>0) or (lastdy<0 and ii.y()<0):
                    lastdy+=ii.y()
                    joined=True
                if not joined:
                    res.append(QPoint(lastdx,lastdy))
                    lastdx=ii.x()
                    lastdy=ii.y()

        if lastdx!=0 or lastdy!=0: res.append(QPoint(lastdx,lastdy))

        return res        

    @staticmethod
    def removeShortest(positions):
        res=[]
        firstTime=True

        for ii in positions:
            if firstTime:
                shortestSoFar=ii.x()**2+ii.y()**2
                shortest=ii
                firstTime=False
            else:
                if (ii.x()**2+ii.y()**2)<shortestSoFar:
                    shortestSoFar=ii.x()**2+ii.y()**2
                    shortest=ii

        for ii in positions:
            if ii!=shortest: res.append(ii)

        return res

    @staticmethod
    def calcLength(positions):
        res=0

        for ii in positions:
            if ii.x()>0: res+=ii.x()
            elif ii.x()<0: res-=ii.x()
            elif ii.y()>0: res+=ii.y()
            else: res-=ii.y()

        return res        

class Widget(QWidget):
    gestured=pyqtSignal(int)

    def __init__(self, parent=None):
        QWidget.__init__(self, parent)

        self._upLeftRec=MouseGestureRecognizer([MouseGestureRecognizer.Up, MouseGestureRecognizer.Left])
        self._upLeftType=QGestureRecognizer.registerRecognizer(self._upLeftRec)
        self.grabGesture(self._upLeftType)

        self._cancelRec=MouseGestureRecognizer([MouseGestureRecognizer.AnyHorizontal,
                                                MouseGestureRecognizer.AnyHorizontal,
                                                MouseGestureRecognizer.AnyHorizontal])
        self._cancelType=QGestureRecognizer.registerRecognizer(self._cancelRec)
        self.grabGesture(self._cancelType)

        vl=QVBoxLayout(self)
        self._checkboxes=[]
        for i in range(5):
            self._checkboxes.append(QCheckBox("No. %d" % (i+1), self))
            vl.addWidget(self._checkboxes[i])

        hl=QHBoxLayout()
        hl.addWidget(QPushButton("Check", self, clicked=self.setAll))
        hl.addWidget(QPushButton("Clear", self, clicked=self.clearAll))
        vl.addLayout(hl)

    def event(self, e):
        if e.type()==QEvent.Gesture:
            for g in e.gestures():
                if not g.state()==Qt.GestureFinished: continue
                if g.gestureType()==self._upLeftType:
                    self.setAll()
                    e.setAccepted(g, True)
                    return True
                elif g.gestureType()==self._cancelType:
                    self.clearAll()
                    e.setAccepted(g, True)
                    return True
                else: continue

        return QWidget.event(self, e)

    def clearAll(self):
        for cb in self._checkboxes: cb.setChecked(False)

    def setAll(self):
        for cb in self._checkboxes: cb.setChecked(True)

    def secretMessage(self):
        QMessageBox.information(self,
                                "Congratulations",
                                "<b>Congratulations!</b><br>" \
                                    "You found the secret message!"
                                )

if __name__=="__main__":
    from sys import argv, exit

    a=QApplication(argv)
    w=Widget()
    w.show()
    w.raise_()
    exit(a.exec_())
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to