Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Executable bundled into mac app package crashes  (Read 3445 times)

0 Members and 2 Guests are viewing this topic.

Evan Bowman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Email
Executable bundled into mac app package crashes
« on: June 05, 2016, 12:53:54 pm »
I'm working on a game that uses SFML, and would like to package the executable into a standalone mac app. When I run the compiled unix executable file from bash like this, and everything works correctly:
Code: [Select]
./BlindJump <--- the executable

But when I try to package it into a mac app and open the game, it crashes. Any ideas why? Based on the info below, does this look like a problem with the package script, or a code problem? Since I can run the executable fine from the terminal, I'm inclined to think my package script isn't quite right.

 Here is my script for generating the .app package:
Code: [Select]
# Argument 1 is the executable name, and argument 2 is the app name
if [ $# == 2 ]; then                                           
    mkdir -p ../prod/$2.app/Contents/MacOS                      # Create parent directory with .app extension
    mv -f $1 ../prod/$2.app/Contents/MacOS/$1                   # Move the executable into the Mac app
    cp -rf ../Resources ../prod/$2.app/Contents/Resources       # Copy over the game's resources
    cp -rf ../Frameworks ../prod/$2.app/Contents/Frameworks     # Copy in the sfml frameworks
else                                                           
    printf "Usage: packagescript_Mac <executable> <name>"       
fi     

A snippet from my makefile--the compile flags that I'm using:
Code: [Select]
CFLAGS = -O2 -std=c++11 -Wall -Weffc++ -Werror                                     
LFLAGS = -framework sfml-window -framework sfml-graphics -framework sfml-system -framework sfml-audio   

The problem report:
Code: [Select]
Process:               BlindJump [722]
Path:                  /Users/USER/Documents/*/BlindJump.app/Contents/MacOS/BlindJump
Identifier:            BlindJump
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           BlindJump [722]
User ID:               501

Date/Time:             2016-06-05 06:16:40.622 -0400
OS Version:            Mac OS X 10.11.6 (15G7b)
Report Version:        11
Anonymous UUID:        2750E76C-6348-6C92-B557-1E2939985423


Time Awake Since Boot: 1000 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000203
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x203:
-->
    __TEXT                 0000000104ce2000-0000000104d4a000 [  416K] r-x/rwx SM=COW  /Users/USER/Documents/*/BlindJump.app/Contents/MacOS/BlindJump

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsfml-graphics.2.3.dylib    0x0000000104d6baa4 sf::Image::getPixel(unsigned int, unsigned int) const + 20
1   BlindJump                      0x0000000104cf1d9e drawPixels(sf::Image&, sf::Image&, int, int, int, int) + 94
2   BlindJump                      0x0000000104d3d8e5 createMapImage(sf::Image*, short (*) [61], sf::Texture*, sf::Image*, sf::Image*) + 1413
3   BlindJump                      0x0000000104d3e325 tileController::tileController() + 1829
4   BlindJump                      0x0000000104d188cc GameMap::GameMap(float, float, sf::Texture*, InputController*, FontController*) + 1004
5   BlindJump                      0x0000000104d2e201 main + 865
6   libdyld.dylib                  0x00007fff93d7f5ad start + 1

Thread 1:
0   libsystem_kernel.dylib        0x00007fff92a8c5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib        0x00007fff8ac5b578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib        0x00007fff8ac59341 start_wqthread + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        0x00007fff92a8cefa kevent_qos + 10
1   libdispatch.dylib              0x00007fff985e1165 _dispatch_mgr_invoke + 216
2   libdispatch.dylib              0x00007fff985e0dcd _dispatch_mgr_thread + 52

Thread 3:
0   libsystem_kernel.dylib        0x00007fff92a8c5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib        0x00007fff8ac5b578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib        0x00007fff8ac59341 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        0x00007fff92a8c5e2 __workq_kernreturn + 10
1   libsystem_pthread.dylib        0x00007fff8ac5b578 _pthread_wqthread + 1283
2   libsystem_pthread.dylib        0x00007fff8ac59341 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib        0x00007fff92a85fc6 semaphore_timedwait_trap + 10
1   libdispatch.dylib              0x00007fff985e6c67 _dispatch_semaphore_wait_slow + 149
2   libdispatch.dylib              0x00007fff985e0d1b _dispatch_worker_thread + 148
3   libsystem_pthread.dylib        0x00007fff8ac5b99d _pthread_body + 131
4   libsystem_pthread.dylib        0x00007fff8ac5b91a _pthread_start + 168
5   libsystem_pthread.dylib        0x00007fff8ac59351 thread_start + 13

Thread 6:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib        0x00007fff92a85f72 mach_msg_trap + 10
1   libsystem_kernel.dylib        0x00007fff92a853b3 mach_msg + 55
2   com.apple.audio.CoreAudio      0x00007fff9680735e HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned int, unsigned int, mach_msg_header_t*, bool, unsigned int) + 98
3   com.apple.audio.CoreAudio      0x00007fff968072ec HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 42
4   com.apple.audio.CoreAudio      0x00007fff968056a9 HALC_ProxyIOContext::IOWorkLoop() + 1149
5   com.apple.audio.CoreAudio      0x00007fff9680515e HALC_ProxyIOContext::IOThreadEntry(void*) + 88
6   com.apple.audio.CoreAudio      0x00007fff96805033 HALB_IOThread::Entry(void*) + 75
7   libsystem_pthread.dylib        0x00007fff8ac5b99d _pthread_body + 131
8   libsystem_pthread.dylib        0x00007fff8ac5b91a _pthread_start + 168
9   libsystem_pthread.dylib        0x00007fff8ac59351 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000200  rbx: 0x00007fff5af18608  rcx: 0x0000000000000000  rdx: 0x0000000000000200
  rdi: 0x00007fff5af18608  rsi: 0x0000000000000000  rbp: 0x00007fff5aef7560  rsp: 0x00007fff5aef7550
   r8: 0x0000000000000080   r9: 0x0000000000000000  r10: 0x0000000104dcd301  r11: 0x0000000104d6ba90
  r12: 0x0000000000000000  r13: 0x0000000000000222  r14: 0x0000000000000200  r15: 0x0000000000000080
  rip: 0x0000000104d6baa4  rfl: 0x0000000000010206  cr2: 0x0000000000000203
 
Logical CPU:     1
Error Code:      0x00000004
Trap Number:     14


Binary Images:
       0x104ce2000 -        0x104d49ff7 +BlindJump (0) <4A1C8E53-D675-39E5-89E4-ECAEB4C5D790> /Users/USER/Documents/*/BlindJump.app/Contents/MacOS/BlindJump
       0x104d63000 -        0x104dc8fe7 +libsfml-graphics.2.3.dylib (2.3.2) <F9C577B2-D8B6-3135-8B71-B81B4E5CF446> /usr/local/lib/libsfml-graphics.2.3.dylib
       0x104de9000 -        0x104e09fff +libsfml-window.2.3.dylib (2.3.2) <0E0656D8-99A2-39EF-A6CC-4818E01132E8> /usr/local/lib/libsfml-window.2.3.dylib
       0x104e23000 -        0x104e2fff7 +libsfml-system.2.3.dylib (2.3.2) <45ADE00C-F44A-3DCB-8A0D-64C40B506E5D> /usr/local/lib/libsfml-system.2.3.dylib
       0x104e3a000 -        0x104e51ff7 +libsfml-audio.2.3.dylib (2.3.2) <A5AB2149-E34C-343B-A794-0F0334D59EDA> /usr/local/lib/libsfml-audio.2.3.dylib
       0x104e65000 -        0x104f38fff +org.sfml-dev.freetype (1.0) <C1B61EF4-766F-3CC2-9F97-A82039A13C57> /Library/Frameworks/freetype.framework/Versions/A/freetype
       0x104f53000 -        0x104facfff +org.sfml-dev.OpenAL (1.0) <04C623D8-F4EF-357C-A317-944A0EF29503> /Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
       0x104fd6000 -        0x10504dff7 +org.sfml-dev.vorbisenc (1.0) <5B7CAF65-A2D4-3778-8317-4AF315A92513> /Library/Frameworks/vorbisenc.framework/Versions/A/vorbisenc
       0x105098000 -        0x10509dff7 +org.sfml-dev.vorbisfile (1.0) <2A582B4F-7FFF-3822-B80A-56344FA1835B> /Library/Frameworks/vorbisfile.framework/Versions/A/vorbisfile
       0x1050a2000 -        0x1050ccfff +org.sfml-dev.vorbis (1.0) <14749F21-C594-3171-A1B0-8103CAFF056F> /Library/Frameworks/vorbis.framework/Versions/A/vorbis
       0x1050db000 -        0x1050dfff7 +org.sfml-dev.ogg (1.0) <856EA22F-16B9-3747-8265-B0A26ACCA1A3> /Library/Frameworks/ogg.framework/Versions/A/ogg
       0x1050e6000 -        0x105126fff +org.sfml-dev.FLAC (1.0) <FFA4F034-480D-3463-A8B7-5B1695D81E54> /Library/Frameworks/FLAC.framework/Versions/A/FLAC
       0x106209000 -        0x106760ff7  com.apple.driver.AppleIntelHD5000GraphicsGLDriver (10.14.68 - 10.1.4) <4D5470B0-3008-3D83-BDD2-F30B128E455B> /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsGLDriver
       0x109ff1000 -        0x109ffcfff  com.apple.iokit.IOHIDLib (2.0.0 - 2.0.0) <EEA90445-8145-3D4A-B5A7-1F7FB3E3F9D4> /System/Library/Extensions/IOHIDFamily.kext/Contents/PlugIns/IOHIDLib.plugin/Contents/MacOS/IOHIDLib
       0x10a03c000 -        0x10a16cffb  com.apple.audio.units.Components (1.13 - 1.13) <69FC51F9-E779-3940-AA27-8F97A9849D51> /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
       0x10a202000 -        0x10a206fff  com.apple.audio.AppleHDAHALPlugIn (274.11 - 274.11) <CF70C1AA-59DE-30EC-AE52-DE329C4C48D9> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
    0x7fff6aef8000 -     0x7fff6af2f25f  dyld (360.22) <71808CC8-D95C-3907-82CD-B06C98D4F39B> /usr/lib/dyld
    0x7fff8ac58000 -     0x7fff8ac61ff7  libsystem_pthread.dylib (138.10.4) <3DD1EF4C-1D1B-3ABF-8CC6-B3B1CEEE9559> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8ac62000 -     0x7fff8ac64fff  com.apple.loginsupport (1.0 - 1) <9B2F5F9B-ED38-313F-B798-D2B667BCD6B5> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff8ac6b000 -     0x7fff8ad1bfe7  libvMisc.dylib (563.5) <A05E5FA2-BA0C-39F3-AD24-FD184C31F0C7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff8b10b000 -     0x7fff8b123fef  libcompression.dylib (28) <E7601B62-1053-369D-8A9E-91CF86239220> /usr/lib/libcompression.dylib
    0x7fff8b135000 -     0x7fff8c383ffb  com.apple.CoreGraphics (1.600.0 - 957) <D5E0AC21-B23C-3B66-A994-34ABD83F70CA> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff8c420000 -     0x7fff8c42bfff  libGPUSupportMercury.dylib (12.1) <9D35C668-4F21-31C8-890C-CC1F45905194> /System/Library/PrivateFrameworks/GPUSupport.framework/Versions/A/Libraries/libGPUSupportMercury.dylib
    0x7fff8c42c000 -     0x7fff8c449ff7  com.apple.AppleVPAFramework (2.1.2 - 2.1.2) <41378C0B-B56A-3A73-9BD0-E06FA1F87B8C> /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
    0x7fff8c74e000 -     0x7fff8c79eff7  com.apple.Symbolication (1.4 - 58044) <F70BF765-FBE9-3F1E-85CA-BB2F8E53E8C2> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff8c79f000 -     0x7fff8c7bbff7  libextension.dylib (78) <FD952DA6-BBEC-3CB6-98B3-E1D111C5C54E> /usr/lib/libextension.dylib
    0x7fff8c7ea000 -     0x7fff8c80efff  libJPEG.dylib (1456) <A1935291-E581-3710-935F-80FE2B166780> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff8c817000 -     0x7fff8c925ff3  com.apple.desktopservices (1.10.3 - 1.10.3) <3A6906D4-C0B8-30D1-B589-0466E5E42B69> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff8c926000 -     0x7fff8c98dfff  com.apple.framework.CoreWiFi (11.0 - 1101.20) <993592F1-B3F1-3FAD-87BD-EA83C361BCCF> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
    0x7fff8cad8000 -     0x7fff8cae9fff  libSparseBLAS.dylib (1162.2) <EBEB3848-3468-342A-91A6-5C47F2369CD9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff8caea000 -     0x7fff8caecfff  libCVMSPluginSupport.dylib (12.1) <D81B3D8D-B83F-3918-BD4B-6C794A30AF9F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff8cafa000 -     0x7fff8cba1fff  com.apple.LanguageModeling (1.0 - 1) <58C18A47-BDE7-3CBE-81C0-797029D170A1> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff8cba2000 -     0x7fff8cbadfff  libcsfde.dylib (517.50.1) <52F0DB6A-13B8-355E-ADFD-72834D3CA183> /usr/lib/libcsfde.dylib
    0x7fff8cbcb000 -     0x7fff8cc36ff7  com.apple.framework.CoreWLAN (11.0 - 1101.20) <3B35C543-7FCE-333F-80C1-432FA41DDCDE> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
    0x7fff8cd29000 -     0x7fff8cef7ff3  com.apple.QuartzCore (1.11 - 410.14) <076BDE58-8AED-3D47-84FD-548CF8E8EDB9> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff8cef8000 -     0x7fff8d1edfff  com.apple.HIToolbox (2.1.1 - 807.2) <36413C45-36AF-34EF-9C0E-F18B31D1E565> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff8d1ee000 -     0x7fff8d1efffb  libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
    0x7fff8d1f5000 -     0x7fff8d210ff7  libCRFSuite.dylib (34) <078B4CD8-6A8C-3067-B2BA-0C2A0BAB8AC3> /usr/lib/libCRFSuite.dylib
    0x7fff8d211000 -     0x7fff8d22bff3  liblzma.5.dylib (10) <CC03591B-FA57-3CA5-AC81-0D76033AC0CE> /usr/lib/liblzma.5.dylib
    0x7fff8d22c000 -     0x7fff8d44dff7  com.apple.CoreImage (11.4.0 - 366.4.19) <7F273BC3-241A-3049-A827-C129D9637257> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff8d44e000 -     0x7fff8d659fff  libFosl_dynamic.dylib (16.24) <A92316F8-5670-3AF6-9E00-E3F9706614FC> /usr/lib/libFosl_dynamic.dylib
    0x7fff8d6a6000 -     0x7fff8d6cfff7  libxpc.dylib (765.50.8) <54D1328E-054E-3DAA-89E2-375722F9D18F> /usr/lib/system/libxpc.dylib
    0x7fff8d78e000 -     0x7fff8d791fff  libCoreVMClient.dylib (119.5) <E2220D35-05D1-346E-9194-953707A2F56D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8d792000 -     0x7fff8d910fff  com.apple.UIFoundation (1.0 - 436.1) <AABB5267-E7B7-3D75-B051-E665BDA8DEF4> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
    0x7fff8d913000 -     0x7fff8d93cff7  libxslt.1.dylib (14.3) <79774EB8-8D3A-3688-A13F-89540C3820E5> /usr/lib/libxslt.1.dylib
    0x7fff8d93d000 -     0x7fff8d941fff  libGIF.dylib (1456) <7B9AF732-8D98-3A6F-81CC-D5EAF50A9235> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff8d942000 -     0x7fff8d9b6ff3  com.apple.securityfoundation (6.0 - 55126) <0F41F02C-5AE8-3E7C-802F-285DAC1E8ECC> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff8d9b7000 -     0x7fff8d9ebff7  com.apple.CoreVideo (1.8 - 191.3) <1AA24A1B-CB84-3F6B-B6DE-11494542649C> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff8d9ee000 -     0x7fff8da62ff7  com.apple.Heimdal (4.0 - 2.0) <5D365381-8B5E-3259-8867-FC4A7D307BDE> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff8da6a000 -     0x7fff8daf9ff7  libCoreStorage.dylib (517.50.1) <E6283FE9-B5AC-3110-8D4C-8E2BF185983E> /usr/lib/libCoreStorage.dylib
    0x7fff8dca0000 -     0x7fff8de07fff  libBLAS.dylib (1162.2) <A1398FE0-39D2-33EA-9A0F-B2644EEA29A0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff8de08000 -     0x7fff8e0edffb  com.apple.CoreServices.CarbonCore (1136.2 - 1136.2) <2DBAFC9A-6CD6-351D-B1F4-87D81AA6D640> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff8e0ee000 -     0x7fff8e10aff3  libresolv.9.dylib (60) <A650B5C8-1950-36A0-86D1-0B2465318BFA> /usr/lib/libresolv.9.dylib
    0x7fff8e10b000 -     0x7fff8e1a0fff  com.apple.ink.framework (10.9 - 214) <1F76CF36-3F79-36B8-BC37-C540AF34B338> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff8e264000 -     0x7fff8e2aaff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
    0x7fff8e2c2000 -     0x7fff8e2c5fff  libsystem_sandbox.dylib (460.60.2) <2A68B39C-B786-3A05-87A2-56E688469FB8> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8e2c6000 -     0x7fff8e2c7fff  liblangid.dylib (122) <9CC4F0D1-5C51-3B69-BC8F-EE3A51FD0822> /usr/lib/liblangid.dylib
    0x7fff8e2cc000 -     0x7fff8e6fafff  com.apple.vision.FaceCore (3.3.1 - 3.3.1) <E54028EA-4217-3078-A2B1-C52E4214D59E> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff8e6fb000 -     0x7fff8e706fff  libkxld.dylib (3248.60.3) <A212FA0D-7729-3D22-948A-8BEB95E1C166> /usr/lib/system/libkxld.dylib
    0x7fff8e7a7000 -     0x7fff8e7c0fff  com.apple.CFOpenDirectory (10.11 - 194) <11F95672-55E0-3F9D-9171-5E8C56AEE948> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff8f056000 -     0x7fff8f05efff  com.apple.frameworks.CoreDaemon (1.3 - 1.3) <CC53DC12-9231-3C4F-921B-9A770D463323> /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
    0x7fff8f05f000 -     0x7fff8f4d5fff  com.apple.CoreFoundation (6.9 - 1258.1) <943A1383-DA6A-3DC0-ABCD-D9AEB3D0D34D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8f4d6000 -     0x7fff8f576fff  com.apple.Metadata (10.7.0 - 972.34) <A93B485D-094C-3024-8CBB-D9E035FB83C4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff8f65b000 -     0x7fff8f660ff7  libheimdal-asn1.dylib (453.40.10) <981DE40B-FA16-36F7-BE92-8C8A115D6CD9> /usr/lib/libheimdal-asn1.dylib
    0x7fff8f663000 -     0x7fff8f7adff7  com.apple.coreui (2.1 - 366.1) <8138636F-A0A7-31C7-896C-5F5747FA1B2A> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff8f7ae000 -     0x7fff8f7ddff7  com.apple.DictionaryServices (1.2 - 250.3) <30250542-CBAA-39C1-91AA-B57A5DE17594> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff8f812000 -     0x7fff8f881fff  com.apple.datadetectorscore (7.0 - 460) <FA46DEE8-B25B-3E84-B067-6A31193A0885> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff8fa81000 -     0x7fff8fc2cffb  GLEngine (12.1) <299D9296-2984-3967-9049-A842B99E5D43> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
    0x7fff9003e000 -     0x7fff90078fff  com.apple.QD (3.12 - 302) <0FE53180-2895-3D14-A1E7-F82DE1D106E1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff90883000 -     0x7fff90883fff  com.apple.Accelerate (1.10 - Accelerate 1.10) <185EC96A-5AF0-3620-A4ED-4D3654D25B39> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff90884000 -     0x7fff908c9ff3  libFontRegistry.dylib (155.2) <A70DD497-35F3-34DA-9C19-F4B90080E961> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff90caf000 -     0x7fff91011f3f  libobjc.A.dylib (680) <7489D2D6-1EFD-3414-B18D-2AECCCC90286> /usr/lib/libobjc.A.dylib
    0x7fff910a2000 -     0x7fff910adff7  libcommonCrypto.dylib (60075.50.1) <93732261-34B4-3914-B7A2-90A81A182DBA> /usr/lib/system/libcommonCrypto.dylib
    0x7fff91375000 -     0x7fff913b7ff7  com.apple.Metal (56.6 - 56.6) <AFF09D80-D31D-38A1-A1E2-68D036FA5D10> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
    0x7fff9195b000 -     0x7fff9195dffb  libutil.dylib (43) <4C9BFE8B-563B-3EEA-A323-8F4F14E0A46C> /usr/lib/libutil.dylib
    0x7fff91972000 -     0x7fff91994ff7  com.apple.Sharing (442.13.6 - 442.13.6) <DDD2811C-6ECB-32F2-8EE1-69BF9657B4A8> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
    0x7fff919f4000 -     0x7fff91a00ff7  com.apple.OpenDirectory (10.11 - 194) <31A67AD5-5CC2-350A-96D7-821DF4BC4196> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff91a01000 -     0x7fff91a78feb  libcorecrypto.dylib (335.50.1) <B5C05FD7-A540-345A-87BF-8E41848A3C17> /usr/lib/system/libcorecrypto.dylib
    0x7fff91af4000 -     0x7fff91b1bfff  com.apple.ChunkingLibrary (167 - 167) <AD7F285C-005E-36BB-98A3-5826413533BE> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff91b2e000 -     0x7fff91b3afff  com.apple.SpeechRecognitionCore (2.2.7 - 2.2.7) <6BA06290-D4A3-351C-87F9-B61EF61FF055> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
    0x7fff91b41000 -     0x7fff91b52fff  libcmph.dylib (6) <BA4BF2C6-7F4E-33B8-9DD7-619C9EB83ECF> /usr/lib/libcmph.dylib
    0x7fff91e29000 -     0x7fff91e63ff7  com.apple.DebugSymbols (132 - 132) <23A42C53-B941-3871-9EE2-4C87A46005B5> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff92543000 -     0x7fff9254bffb  libsystem_dnssd.dylib (625.60.3) <60FB9547-2D47-3E8B-921B-EC2C42642ECC> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff92598000 -     0x7fff925b7ff7  com.apple.framework.Apple80211 (11.0 - 1121.34.2) <28AD3643-BDD8-3783-9965-B276262C910B> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x7fff925bc000 -     0x7fff92649dd7  com.apple.AppleJPEG (1.0 - 1) <BF7EDBDB-A52D-37F7-BDE4-EAD49310D7A9> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
    0x7fff926fe000 -     0x7fff92709fff  libGL.dylib (12.1) <70D51643-04AC-3400-8F11-A6FC25985289> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff92a24000 -     0x7fff92a2aff7  com.apple.speech.recognition.framework (5.1.1 - 5.1.1) <9E5A980A-F455-32D5-BBEE-3BD6018CC45E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff92a75000 -     0x7fff92a93ff7  libsystem_kernel.dylib (3248.60.3) <B65F0027-1ABD-3C54-82CD-181C3BDA7BBD> /usr/lib/system/libsystem_kernel.dylib
    0x7fff92c35000 -     0x7fff9385eff7  com.apple.AppKit (6.9 - 1404.47) <F3411F6E-DD87-34D0-8C68-C69B2205E41D> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff93a39000 -     0x7fff93a41fef  libcldcpuengine.dylib (2.7.3) <3B0FF53F-3125-3617-A5FB-4A5DF593D7EC> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcldcpuengine.dylib
    0x7fff93a42000 -     0x7fff93a90fff  libcurl.4.dylib (90) <12E01E4B-24C9-394C-9D2C-85CF85D5F459> /usr/lib/libcurl.4.dylib
    0x7fff93a91000 -     0x7fff93a96ff3  libunwind.dylib (35.3) <F6EB48E5-4D12-359A-AB54-C937FBBE9043> /usr/lib/system/libunwind.dylib
    0x7fff93b7a000 -     0x7fff93b86fff  com.apple.speech.synthesis.framework (5.4.12 - 5.4.12) <71DA00B8-5EA2-326B-8814-59DB25512F65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff93c06000 -     0x7fff93c0efff  libGFXShared.dylib (12.1) <5A0C2493-200C-30BE-97D5-8E8C0B8E604D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff93c0f000 -     0x7fff93c16ff7  libcompiler_rt.dylib (62) <A13ECF69-F59F-38AE-8609-7B731450FBCD> /usr/lib/system/libcompiler_rt.dylib
    0x7fff93c20000 -     0x7fff93c20fff  com.apple.ApplicationServices (48 - 48) <ADD57D3A-142F-3EF5-BFD8-EACD82164884> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff93cfb000 -     0x7fff93cfdff7  libRadiance.dylib (1456) <F85E46D3-4BE3-3F60-903C-A79C1246C1C3> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff93d7c000 -     0x7fff93d7fffb  libdyld.dylib (360.22) <CC088C2A-D407-33E7-A6B6-B06E0D4AD999> /usr/lib/system/libdyld.dylib
    0x7fff93e78000 -     0x7fff93e78fff  com.apple.CoreServices (728.13 - 728.13) <E3DFECD2-ECEA-3242-972D-95B9646B57B8> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff93e7c000 -     0x7fff93eb3ff7  com.apple.LDAPFramework (2.4.28 - 194.5) <9AE33BF2-FB17-342D-8F1E-5F83C6E6EB69> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x7fff93ec8000 -     0x7fff94162ff3  com.apple.security (7.0 - 57337.60.1) <733BF97A-30FA-30CD-872B-46AC387F8D50> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff9417a000 -     0x7fff94188ff7  libbz2.1.0.dylib (38) <28E54258-C0FE-38D4-AB76-1734CACCB344> /usr/lib/libbz2.1.0.dylib
    0x7fff94ada000 -     0x7fff94af6ff7  libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
    0x7fff94b00000 -     0x7fff94b4cffb  com.apple.HIServices (1.22 - 550) <6B76B41C-CF5A-34C4-89F4-EFD7CA3D1C9D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff94b4d000 -     0x7fff94c74fff  com.apple.LaunchServices (728.13 - 728.13) <0491AD48-5831-35AA-85FF-F37B3E2EDC01> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff94c75000 -     0x7fff95071fff  libLAPACK.dylib (1162.2) <987E42B0-5108-3065-87F0-9DF7616A8A06> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff95712000 -     0x7fff9591ffff  libicucore.A.dylib (551.51.3) <5BC80F94-C90D-3175-BD96-FF1DC222EC9C> /usr/lib/libicucore.A.dylib
    0x7fff95938000 -     0x7fff9593dfff  com.apple.DiskArbitration (2.7 - 2.7) <F55902AA-5316-3255-A701-FDED5B553065> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff95c11000 -     0x7fff95c16fff  com.apple.ImageCapture (9.0 - 9.0) <ACECF0B7-7D92-3A22-BF47-E8FADF4C5378> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff95c68000 -     0x7fff95c97ffb  libsystem_m.dylib (3105) <08E1A4B2-6448-3DFE-A58C-ACC7335BE7E4> /usr/lib/system/libsystem_m.dylib
    0x7fff95c98000 -     0x7fff95d88ff7  libJP2.dylib (1456) <005A166D-7A55-335F-A86B-5B57B03D547C> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff95d89000 -     0x7fff95d8afff  com.apple.TrustEvaluationAgent (2.0 - 25) <0239494E-FEFE-39BC-9FC7-E251BA5128F1> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff95da0000 -     0x7fff96046ff7  com.apple.CoreData (120 - 641.3) <A29A5491-6169-372B-828F-84EE0CFD4BC4> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff96047000 -     0x7fff96088ff7  libGLU.dylib (12.1) <CD7A5916-3E3C-3EF3-A275-B281016B99CB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff96128000 -     0x7fff96224ff7  libFontParser.dylib (158.6) <267A9AE4-4138-3112-8D73-BDFDC96568FF> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff96273000 -     0x7fff96297fff  com.apple.MultitouchSupport.framework (304.12 - 304.12) <65CB7653-EACD-3ADB-ABB6-2E0671708301> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff9633f000 -     0x7fff9638eff7  com.apple.opencl (2.7.0 - 2.7.0) <17A318C0-E12B-39DD-B386-DB1A8FD674F6> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff9638f000 -     0x7fff963edfff  com.apple.SystemConfiguration (1.14 - 1.14) <D801FAD7-5A2D-3E5E-9F44-B6C9B8BEA747> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff96673000 -     0x7fff9667bfff  com.apple.CoreServices.FSEvents (1223.10.1 - 1223.10.1) <7F5B7A23-BC1D-3FA9-A9B8-D534F1E1979A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff967dd000 -     0x7fff9682efff  com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <3E798955-10A0-3C91-9DDA-F61E4D4656D1> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff96961000 -     0x7fff96978ff7  libsystem_coretls.dylib (83.40.5) <C90DAE38-4082-381C-A185-2A6A8B677628> /usr/lib/system/libsystem_coretls.dylib
    0x7fff96979000 -     0x7fff96b1fff7  com.apple.audio.toolbox.AudioToolbox (1.13 - 1.13) <370E95BC-956C-3962-86CC-0A14CF6A0389> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff96d00000 -     0x7fff96d4cfff  com.apple.print.framework.PrintCore (11.2 - 472.2) <5AE8AA6B-CE09-397D-B0D4-0F9CCBF1F77D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff96d4d000 -     0x7fff96d7efff  com.apple.GSS (4.0 - 2.0) <B490333A-3B3E-397A-AD75-68846E9A9140> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff96fbf000 -     0x7fff96fd0ff7  libsystem_trace.dylib (201.10.3) <F00E92E4-DBDA-3749-B5B3-0C3FBBABA1CB> /usr/lib/system/libsystem_trace.dylib
    0x7fff96fdd000 -     0x7fff97081fff  com.apple.Bluetooth (4.4.5 - 4.4.5f3) <141F2C36-70B6-32D3-A556-7A605832CDB3> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x7fff971de000 -     0x7fff97298fff  com.apple.DiscRecording (9.0.1 - 9010.4.3) <540853B2-B123-3560-8023-C92EE229051A> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
    0x7fff972a4000 -     0x7fff972b5ff7  libz.1.dylib (61.20.1) <B3EBB42F-48E3-3287-9F0D-308E04D407AC> /usr/lib/libz.1.dylib
    0x7fff972b6000 -     0x7fff972c4fff  libxar.1.dylib (302) <03207F66-2C4A-3DBD-8D81-70F4C85903C4> /usr/lib/libxar.1.dylib
    0x7fff972c5000 -     0x7fff972d0ff7  libChineseTokenizer.dylib (16) <79B8C67A-3061-3C78-92CD-4650719E68D4> /usr/lib/libChineseTokenizer.dylib
    0x7fff972f5000 -     0x7fff9732dff7  com.apple.RemoteViewServices (2.0 - 101) <B2881449-8CFE-3D1C-B4BF-155640392533> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff97339000 -     0x7fff9736cff7  com.apple.MediaKit (16 - 809) <BF8032FE-6645-37F6-A622-BC7EEE3EAABF> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
    0x7fff97385000 -     0x7fff97388ff7  com.apple.help (1.3.3 - 46) <35DA4D48-0BC2-35A1-8D7C-40905CDF4F64> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff97389000 -     0x7fff973e5fff  libTIFF.dylib (1456) <9FB13B13-467A-3364-BB25-F7558115EDC9> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff973e6000 -     0x7fff973e8fff  com.apple.EFILogin (2.0 - 2) <38150198-DD7F-3C73-BCAA-C74BB376393A> /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
    0x7fff973e9000 -     0x7fff974f8fe7  libvDSP.dylib (563.5) <9AB6CA3C-4F0E-35E6-9184-9DF86E7C3DAD> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff97529000 -     0x7fff975b1fff  com.apple.CoreSymbolication (3.1 - 58048.1) <4730422E-4178-34F9-8550-BB92F2A4F44B> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff97735000 -     0x7fff9773dfff  libcopyfile.dylib (127) <A48637BC-F3F2-34F2-BB68-4C65FD012832> /usr/lib/system/libcopyfile.dylib
    0x7fff97741000 -     0x7fff97786ff7  com.apple.coreservices.SharedFileList (24.4 - 24.5) <1D2AD77B-778F-3253-A295-3D0A32A8121C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff97787000 -     0x7fff97789ff7  libquarantine.dylib (80) <0F4169F0-0C84-3A25-B3AE-E47B3586D908> /usr/lib/system/libquarantine.dylib
    0x7fff9778a000 -     0x7fff97799ffb  com.apple.LangAnalysis (1.7.0 - 1.7.0) <18D21123-A3E7-3851-974A-08E5D4540475> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff9779a000 -     0x7fff97809fff  com.apple.SearchKit (1.4.0 - 1.4.0) <F159A888-34CA-36F1-AC8E-EB1B38C9DFB3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff9780a000 -     0x7fff97a91ff3  com.apple.CFNetwork (760.5.1 - 760.5.1) <EE9426D1-F11C-3DD4-AE08-EA29AEB27177> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff97d8b000 -     0x7fff97da4fff  com.apple.openscripting (1.7.1 - 169.1) <36EBF6A7-334A-3197-838F-E8C7B27FCDBB> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff97da5000 -     0x7fff97dd3ff7  com.apple.CoreServicesInternal (248.2 - 248.2) <6E111F0A-D7F1-3738-ADE7-CF983BD4EC8B> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff97dd4000 -     0x7fff97eaaffb  com.apple.DiskImagesFramework (10.11.4 - 417.4) <96E6EF50-F36E-3260-AF39-26EA03DED81F> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
    0x7fff97eab000 -     0x7fff97eb4ff7  com.apple.CommonAuth (4.0 - 2.0) <4B8673E1-3697-3FE2-8D30-AC7AC5D4F8BF> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff97f49000 -     0x7fff9810fff7  com.apple.ImageIO.framework (3.3.0 - 1456) <AB76958C-9ACB-301C-8FA2-8F6A39EF404E> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff98110000 -     0x7fff9812cfff  com.apple.GenerationalStorage (2.0 - 239.1) <8C821448-4294-3736-9CEF-467C93785CB9> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff9812d000 -     0x7fff984c2fdb  com.apple.vImage (8.0 - 8.0) <4BAC9B6F-7482-3580-8787-AB0A5B4D331B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff984c3000 -     0x7fff98501ff7  libGLImage.dylib (12.1) <BB1F1A93-5101-3906-AB17-8D83FCB200F9> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff98502000 -     0x7fff9852bfff  com.apple.ProtectedCloudStorage (1.0 - 1) <7436B2B3-943A-3500-B099-80F133B3E002> /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage
    0x7fff985cd000 -     0x7fff985d2fff  com.apple.TCC (1.0 - 1) <F5EEB2D3-9517-3975-97BE-22CB8E11B8A3> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff985d9000 -     0x7fff98606fff  libdispatch.dylib (501.40.12) <C7499857-61A5-3D7D-A5EA-65DCC8C3DF92> /usr/lib/system/libdispatch.dylib
    0x7fff98607000 -     0x7fff98619fff  libsasl2.2.dylib (209) <11C7D200-0CA5-30F4-A19A-178CA81D48FE> /usr/lib/libsasl2.2.dylib
    0x7fff98635000 -     0x7fff98635fff  com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <054DFE32-737D-3211-9A14-0FC5E1A880E3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff9863e000 -     0x7fff9863efff  libenergytrace.dylib (10.40.1) <0A491CA7-3451-3FD5-999A-58AB4362682B> /usr/lib/libenergytrace.dylib
    0x7fff9863f000 -     0x7fff98655ff7  libLinearAlgebra.dylib (1162.2) <FFE54EDF-F06F-3C0A-864A-4CA7BBFD4B2D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff98666000 -     0x7fff986dbfff  com.apple.framework.IOKit (2.0.2 - 1179.50.2) <82CB5CF4-F245-35AD-B0E2-3149AB76259F> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff987d9000 -     0x7fff987f0ff7  libsystem_asl.dylib (323.50.1) <41F8E11F-1BD0-3F1D-BA3A-AA1577ED98A9> /usr/lib/system/libsystem_asl.dylib
    0x7fff98d42000 -     0x7fff98d44fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff98d45000 -     0x7fff98d4dfff  libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff98d54000 -     0x7fff98dbaff7  libsystem_network.dylib (583.50.1) <81970F2F-F940-354A-B7D1-746D1A98007E> /usr/lib/system/libsystem_network.dylib
    0x7fff99259000 -     0x7fff99262ff3  libsystem_notify.dylib (150.40.1) <D48BDE34-0F7E-34CA-A0FF-C578E39987CC> /usr/lib/system/libsystem_notify.dylib
    0x7fff994c6000 -     0x7fff994c9ff7  libCoreFSCache.dylib (119.5) <EE0A9936-6D30-39FD-BD29-8D89B27379A9> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
    0x7fff99540000 -     0x7fff99546fff  com.apple.IOAccelerator (205.10 - 205.10) <4B6C5B8E-C2A1-3F65-922F-59604009451E> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x7fff99547000 -     0x7fff9954afff  com.apple.IOSurface (108.2.2 - 108.2.2) <84DA402E-96EA-39CB-8B63-F1AAAB5FD9EB> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff9954b000 -     0x7fff99678ff3  com.apple.CoreText (352.0 - 494.12) <ADBE8355-D4F5-3316-A6C4-D641D615CEC4> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff996f3000 -     0x7fff99748fff  com.apple.AE (701 - 701) <AD492742-F884-386B-A450-FAC281B9FFA4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff99779000 -     0x7fff9989dfff  libsqlite3.dylib (216.4) <280D67B8-F93D-3587-A146-19F36C817548> /usr/lib/libsqlite3.dylib
    0x7fff9989e000 -     0x7fff9989eff7  libunc.dylib (29) <DDB1E947-C775-33B8-B461-63E5EB698F0E> /usr/lib/system/libunc.dylib
    0x7fff9a429000 -     0x7fff9a429ff7  liblaunch.dylib (765.50.8) <834ED605-5114-3641-AA4D-ECF31B801C50> /usr/lib/system/liblaunch.dylib
    0x7fff9a42a000 -     0x7fff9a432fff  com.apple.NetFS (6.0 - 4.0) <842A5346-24C3-3F22-9ECF-E586A10EA1F2> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff9a433000 -     0x7fff9a484ff7  libcups.2.dylib (435.2) <91584A40-214D-33E8-A613-CE22289037C8> /usr/lib/libcups.2.dylib
    0x7fff9a7f1000 -     0x7fff9a7f1fff  com.apple.Carbon (154 - 157) <8F6ED602-5943-3E29-A793-BC331E2C183D> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff9a7f2000 -     0x7fff9a7f3fff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff9a7f7000 -     0x7fff9a820fff  libsystem_info.dylib (477.50.4) <FAA9226D-64DE-3769-A6D8-6CABA4B7FF4D> /usr/lib/system/libsystem_info.dylib
    0x7fff9a91e000 -     0x7fff9a91fff3  com.apple.print.framework.Print (10.0 - 266) <3E85F70C-D7D4-34E1-B88A-C1F503F99CDA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fff9a975000 -     0x7fff9aa25fff  com.apple.backup.framework (1.7.4 - 1.7.4) <F304E9D1-991A-379E-9659-BF85C35B4808> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff9aa26000 -     0x7fff9aabcfff  com.apple.ColorSync (4.9.0 - 4.9.0) <81AF566A-00EE-3B05-AAEA-26F35702039D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff9aaf1000 -     0x7fff9aaf9fef  libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
    0x7fff9ab67000 -     0x7fff9ab68fff  libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
    0x7fff9adb6000 -     0x7fff9add0fff  com.apple.Kerberos (3.0 - 1) <1B4744BF-E5AE-38E2-AA56-E22D3270F2E8> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff9add1000 -     0x7fff9ae5efff  libsystem_c.dylib (1082.50.1) <B552D565-B798-3B9B-AE63-F623B42A5F01> /usr/lib/system/libsystem_c.dylib
    0x7fff9ae5f000 -     0x7fff9ae76fff  libmarisa.dylib (4) <E4919B03-D9BD-3AF8-B436-C415C98E3F0A> /usr/lib/libmarisa.dylib
    0x7fff9ae7c000 -     0x7fff9ae7cfff  com.apple.audio.units.AudioUnit (1.13 - 1.13) <378B5292-F216-32AB-B628-8C33A72D7052> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff9af6f000 -     0x7fff9af77fff  com.apple.AppleSRP (5.0 - 1) <840A5C20-6452-36BB-ACF7-29BA6CBF7C48> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
    0x7fff9afed000 -     0x7fff9b341fff  com.apple.Foundation (6.9 - 1259) <113F1F6E-906C-3350-B827-2381A2681C88> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff9b342000 -     0x7fff9b345ffb  libScreenReader.dylib (426.42) <16FC79D1-4573-3E90-945F-CBA22D5185FD> /usr/lib/libScreenReader.dylib
    0x7fff9b36e000 -     0x7fff9b36efff  libOpenScriptingUtil.dylib (169.1) <AD0DAC8A-9849-3077-999F-9AEC6112BDAB> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff9b36f000 -     0x7fff9b45eff7  libxml2.2.dylib (29.9) <DDBF2DCB-307C-38A0-B7E1-EAE2FB5684DE> /usr/lib/libxml2.2.dylib
    0x7fff9c57d000 -     0x7fff9c5dbfff  com.apple.CoreServices.OSServices (728.13 - 728.13) <7413584F-AC7A-3DD2-94FA-D12F166BE72C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff9c63b000 -     0x7fff9c65dfff  com.apple.IconServices (68.1 - 68.1) <CDEEDBE6-F53B-3BA1-82D4-23BCA3DD8949> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff9c65e000 -     0x7fff9c687fff  libc++abi.dylib (125) <DCCC8177-3D09-35BC-9784-2A04FEC4C71B> /usr/lib/libc++abi.dylib
    0x7fff9c8d5000 -     0x7fff9c8e8fff  com.apple.CoreBluetooth (1.0 - 1) <E54CA9A2-A5C6-30C5-9D6E-8472DBA9371E> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
    0x7fff9c8e9000 -     0x7fff9c9cfff7  libcrypto.0.9.8.dylib (59.60.1) <D68067AD-D1E0-3196-9796-51BE9B969C8E> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff9c9d0000 -     0x7fff9c9d0fff  libmetal_timestamp.dylib (600.0.44.2) <B88E892A-B88E-3981-9922-4E0A67FF2017> /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
    0x7fff9ca27000 -     0x7fff9ca52ffb  libarchive.2.dylib (33.20.2) <6C370A21-63FD-3A68-B4B3-5333F24B770B> /usr/lib/libarchive.2.dylib
    0x7fff9ca53000 -     0x7fff9ca78ff7  libPng.dylib (1456) <6FA52ECF-5F60-316E-8F2F-543CD96E3E41> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff9ca79000 -     0x7fff9ca7bff7  com.apple.securityhi (9.0 - 55006) <1E7BE52B-97EA-371A-AECA-1EE2AD246D8A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff9ca7c000 -     0x7fff9ca85fff  com.apple.icloud.FindMyDevice (1.0 - 1) <B9C741F2-6FAC-3BA7-B6E0-9A910C6E8D4E> /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice
    0x7fff9caea000 -     0x7fff9caefff7  libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
    0x7fff9da22000 -     0x7fff9db14ff7  libiconv.2.dylib (44) <F05A0A5A-92A9-3668-8F20-F27CBDA26BE9> /usr/lib/libiconv.2.dylib
    0x7fff9dc23000 -     0x7fff9dcacff7  com.apple.PerformanceAnalysis (1.0 - 1) <9EF745B2-ECD5-33F8-912F-E96771C9E6F8> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff9dcca000 -     0x7fff9dd38ff7  com.apple.ApplicationServices.ATS (377 - 394.4) <9779E916-0788-3CAC-B1EC-F68BCB12A2B6> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff9dd39000 -     0x7fff9dfcffff  libmecabra.dylib (696.5) <EF6C0BD4-5FE8-34FB-8ADF-69A53CEC97A9> /usr/lib/libmecabra.dylib
    0x7fff9e489000 -     0x7fff9e4b3ff7  GLRendererFloat (12.1) <BE957AC5-82C2-3620-A625-56C9BE7B853F> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
    0x7fff9e4b4000 -     0x7fff9e4b4ff7  libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
    0x7fff9e545000 -     0x7fff9e547ff7  com.apple.xpc.ServiceManagement (1.0 - 1) <D96D7A6D-EDEB-35EE-B5D9-E33A3BF011B5> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff9eb19000 -     0x7fff9eb1afff  libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib
    0x7fff9eb1b000 -     0x7fff9eca7ff7  libGLProgrammability.dylib (12.1) <BCFFBF6B-9717-3456-B6F9-6AE46644B076> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
    0x7fff9ed5b000 -     0x7fff9ed69fff  com.apple.opengl (12.1.0 - 12.1.0) <BC3739E3-50B8-35A2-809D-F6703429F827> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff9ed6a000 -     0x7fff9edbdff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff9ee85000 -     0x7fff9ee89fff  libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
    0x7fff9ef54000 -     0x7fff9ef55ffb  libSystem.B.dylib (1226.10.1) <0E6CAC22-1147-3500-9531-70C856A913E8> /usr/lib/libSystem.B.dylib
    0x7fff9ef56000 -     0x7fff9ef60fff  com.apple.NetAuth (6.0 - 6.0) <D692B1EF-534F-3892-8E2F-2BBA7C8AFD74> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff9f07e000 -     0x7fff9f08efff  libbsm.0.dylib (34) <7E14504C-A8B0-3574-B6EB-5D5FABC72926> /usr/lib/libbsm.0.dylib
    0x7fffa0198000 -     0x7fffa019cfff  libpam.2.dylib (20) <CFCD19BD-87BC-3F2B-BB1C-4C23E8E55F1A> /usr/lib/libpam.2.dylib
    0x7fffa019d000 -     0x7fffa019fff7  libsystem_configuration.dylib (802.40.13) <3DEB7DF9-6804-37E1-BC83-0166882FF0FF> /usr/lib/system/libsystem_configuration.dylib
    0x7fffa02fe000 -     0x7fffa0309fff  com.apple.CrashReporterSupport (10.11 - 718) <F104115C-BCE2-32E7-93AB-30194214D303> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fffa1372000 -     0x7fffa1376fff  com.apple.CommonPanels (1.2.6 - 96) <4AE7E5AE-55B3-37FA-9BDE-B23147ADA2E9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels

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

VM Region Summary:
ReadOnly portion of Libraries: Total=230.3M resident=0K(0%) swapped_out_or_unallocated=230.3M(100%)
Writable regions: Total=119.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=119.2M(100%)
 
                                VIRTUAL   REGION
REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Activity Tracing                  2048K        2
CG shared images                   144K        6
CoreAnimation                        4K        2
Dispatch continuations            8192K        2
Kernel Alloc Once                    4K        2
MALLOC                            80.0M       23
MALLOC guard page                   32K        7
Memory Tag 249                     156K        2
Process Corpse Info               2048K        2
STACK GUARD                       56.0M        8
Stack                             10.6M        8
VM_ALLOCATE                        104K       10
VM_ALLOCATE (reserved)              36K        2         reserved VM address space (unallocated)
__DATA                            17.7M      221
__GLSLBUILTINS                    2588K        2
__IMAGE                            528K        2
__LINKEDIT                        94.2M       20
__TEXT                           136.1M      222
__UNICODE                          552K        2
mapped file                       32.0M        4
shared memory                     16.3M        9
===========                     =======  =======
TOTAL                            459.0M      537
TOTAL, minus reserved VM space   459.0M      537
« Last Edit: June 06, 2016, 05:56:44 am by Evan Bowman »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Executable bundled into mac app package crashes
« Reply #1 on: June 07, 2016, 09:10:56 am »
At first sight your script looks okay. But make sure it respects exactly the structure of an application bundle with all the symlinks and subfolder (I don't remember all the details so refer to the documentation for that).

However, something is strange with your linking parameters: you seem to be using frameworks (and not dylibs) but in the crash report only dylibs are referred... you might want to investigate this, although probably not the cause of your current troubles.

The fact that you crash in `sf::Image::getPixel` let me think you didn't make sure the resource image was loaded successfully. Use your debugger to double check that the image has a non zero size before calling `sf::Image::getPixel`, for example. (GDB and LLDB let you evaluate expression whenever you want.)
SFML / OS X developer

Evan Bowman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Email
Re: Executable bundled into mac app package crashes
« Reply #2 on: June 16, 2016, 07:59:48 pm »
Hey thanks, I'm in the process of doing a lot of refactoring to my older code for this project right now, and one of the things that I'll be looking into is management of textures. I believe that all the file paths are correct, but I'll check to see if this is the problem.

Another thing--I wasn't aware of symlinks in the package bundles, that could be the problem too.

I guess if none of that works I could just continue working as is with emacs/makefiles and use Xcode/VisualStudio/dpkg to create the app bundles when I want to release it.

Evan Bowman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Email
Re: Executable bundled into mac app package crashes
« Reply #3 on: June 27, 2016, 01:19:38 am »
So the build scripts were all fine, and I've narrowed the issue down to my implementation for resourcePath().

Code: [Select]
std::string resourcePath() {
const static std::string str("../Resources/");
return str;
}

I implemented my own because I thought it would be more portable, but I guess something more complicated is going on in the background than going up one directory and looking in the resources folder. What exactly does the obj-c version do? When running an executable from a mac package, does the executable somehow get moved outside the package when run, thus invalidating my hard-coded path?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Executable bundled into mac app package crashes
« Reply #4 on: June 27, 2016, 11:02:46 am »
Usually I don't write code in a complicated fashion just for fun.  ;)

It is intentionally not portable because it cannot be. (Well, the definition is not portable but the declaration is.)

Quote from: tutorial
Please note that this function only works on Mac OS X. If you are planning to make your application work on other operating systems, you should implement your own version of this function on the operating systems in question.
here

Quote
does the executable somehow get moved outside the package when run, thus invalidating my hard-coded path?
No, not at all. But you are using a relative path based on the current working directory, which is not what you expect.
SFML / OS X developer

Evan Bowman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Email
Re: Executable bundled into mac app package crashes
« Reply #5 on: June 30, 2016, 03:36:28 pm »
Thanks for your help with this  :)

Evan Bowman

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Email
Re: Executable bundled into mac app package crashes
« Reply #6 on: March 01, 2017, 05:57:32 pm »
It is intentionally not portable because it cannot be. (Well, the definition is not portable but the declaration is.)

Sorry to revive an old thread, but I just realized that there is a pure C++ solution for this, although it's hacky and still non-portable:


#ifdef APPLE
// -framework Cocoa
#include <CoreFoundation/CoreFoundation.h>
#include <objc/objc.h>
#include <objc/objc-runtime.h>

std::string ResourcePath() {
    id pool = reinterpret_cast<id>(objc_getClass("NSAutoreleasePool"));
    std::string rpath;
    if (!pool) {
        return rpath;
    }
    pool = objc_msgSend(pool, sel_registerName("alloc"));
    if (!pool) {
        return rpath;
    }
    pool = objc_msgSend(pool, sel_registerName("init"));
    id bundle =
        objc_msgSend(reinterpret_cast<id>(objc_getClass("NSBundle")),
                     sel_registerName("mainBundle"));
    if (bundle) {
        id path = objc_msgSend(bundle, sel_registerName("resourcePath"));
        rpath =
            reinterpret_cast<const char *>(objc_msgSend(path, sel_registerName("UTF8String"))) +
            std::string("/");
    }
    objc_msgSend(pool, sel_registerName("drain"));
    return rpath;
}
#elseif WIN32
// ...
#endif
 

 It simplifies things for me anyway though, because I don't have to link with the objective c runtime or conditionally add source files to the executable target in my CMake script depending on platform (just link the Cocoa framework).
« Last Edit: March 01, 2017, 06:19:07 pm by Evan Bowman »