1

Topic: Teeworlds crashes on start (mac)

Teeworlds crashes on start on macbook pro retina, OS X 10.8.3
Here is log:
Process:         teeworlds [680]
Path:            /Volumes/VOLUME/Teeworlds.app/Contents/MacOS/teeworlds
Identifier:      teeworlds
Version:         0.6.2
Code Type:       X86-64 (Native)
Parent Process:  launchd [126]
User ID:         501

Date/Time:       2013-05-09 23:11:29.465 +0300
OS Version:      Mac OS X 10.8.3 (12D78)
Report Version:  10

Interval Since Last Report:          444684 sec
Crashes Since Last Report:           42
Per-App Crashes Since Last Report:   17
Anonymous UUID:                      EA3BC0F5-C17D-F36B-0034-F1A485C8AB9C

Crashed Thread:  0

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: @rpath/SDL.framework/Versions/A/SDL
  Referenced from: /Volumes/VOLUME/Teeworlds.app/Contents/MacOS/teeworlds
  Reason: image not found

Binary Images:
       0x100000000 -        0x1000b8fe7 +teeworlds (0.6.2) <C11953B3-BF78-399F-A8A6-D1AFB3DE5A62> /Volumes/VOLUME/Teeworlds.app/Contents/MacOS/teeworlds
       0x100240000 -        0x100245fff  com.apple.agl (3.2.1 - AGL-3.2.1) <82AA78D1-159F-3B27-8CA5-1C227C956AC9> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x7fff6f751000 -     0x7fff6f78593f  dyld (210.2.3) <A40597AA-5529-3337-8C09-D8A014EB1578> /usr/lib/dyld
    0x7fff946cb000 -     0x7fff946cbfff  com.apple.Cocoa (6.7 - 19) <3CFC90D2-2BE9-3E5C-BFDB-5E161A2C2B29> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff94a1b000 -     0x7fff95648ff7  com.apple.AppKit (6.8 - 1187.37) <FAEA8B77-210F-3C0F-B9CF-85A7595CCA26> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff96b6e000 -     0x7fff96b6efff  com.apple.Carbon (154 - 155) <372716D2-6FA1-3611-8501-3DD1D4A6E8C8> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff986ed000 -     0x7fff986fcfff  com.apple.opengl (1.8.7 - 1.8.7) <26F7FF79-6BB2-3968-B70D-71D4E07C9551> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL

Model: MacBookPro10,2, BootROM MBP102.0106.B03, 2 processors, Intel Core i5, 2.5 GHz, 8 GB, SMC 2.6f57
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 768 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10F), Broadcom BCM43xx 1.0 (5.106.98.100.16)
Bluetooth: Version 4.1.3f3 11349, 2 service, 11 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM128E, 121.33 GB
USB Device: USB Multimedia Keyboard, 0x046d  (Logitech Inc.), 0xc312, 0x14300000 / 2
USB Device: USB Optical Mouse, 0x046d  (Logitech Inc.), 0xc018, 0x14100000 / 1
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1a100000 / 2
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8510, 0x1a110000 / 3
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1d100000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2512, 0x1d180000 / 3
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0259, 0x1d182000 / 5
USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1d181000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x828c, 0x1d181300 / 7

Any ideas?

2

Re: Teeworlds crashes on start (mac)

Dyld Error Message:
  Library not loaded: @rpath/SDL.framework/Versions/A/SDL
  Referenced from: /Volumes/VOLUME/Teeworlds.app/Contents/MacOS/teeworlds
  Reason: image not found

You need to install SDL with Teeworlds?

Not Luck, Just Magic.

3 (edited by clockworkman 2013-05-10 15:45:00)

Re: Teeworlds crashes on start (mac)

Dune wrote:

Dyld Error Message:
  Library not loaded: @rpath/SDL.framework/Versions/A/SDL
  Referenced from: /Volumes/VOLUME/Teeworlds.app/Contents/MacOS/teeworlds
  Reason: image not found

You need to install SDL with Teeworlds?

No, because it's already included in the app bundle.
As you can see in log, problem is in "@rpath" value. I don't know where it refers.

4

Re: Teeworlds crashes on start (mac)

Did you look into the bundle and check if SDL is really in it? I built the release on a OS X VM I borrowed but couldn't test it.

5 (edited by 2013-05-11 15:06:55)

Re: Teeworlds crashes on start (mac)

Yes, sure

MacBook[alex] A $ pwd
/Applications/Teeworlds.app/Contents/Frameworks/SDL.framework/Versions/A
MacBook[alex] A $ ls -la
total 1464
drwxr-xr-x@  5 alex  admin     170 May  1 18:33 .
drwxr-xr-x@  4 alex  admin     136 May  1 18:33 ..
drwxr-xr-x@ 40 alex  admin    1360 May  1 18:33 Headers
drwxr-xr-x@  4 alex  admin     136 May  1 18:33 Resources
-rwxr-xr-x@  1 alex  admin  747208 May  1 18:33 SDL

m!nus wrote:

Did you look into the bundle and check if SDL is really in it? I built the release on a OS X VM I borrowed but couldn't test it.

What version of OS X?

6

Re: Teeworlds crashes on start (mac)

It was built on OSX 10.8.3 with Xcode 4.6.1. Try installing SDL manually, maybe the included version is not universal.

7 (edited by ghost 2013-05-17 09:22:30)

Re: Teeworlds crashes on start (mac)

I did a bit of research and I found out, that the problem is not the included version of sdl being not universal or anything, but that the teeworlds binary can't find the included version. If I have SDL installed manually (in /Library/Framworks) everything runs fine, so it seems teeworlds can find it there. If it is not there however, I get the exact same message clockworkman.

I also tried replacing the included version of SDL with the version I had installed with no success.

I am running 10.7.

@m!nus: How did you build a universal binary on 10.8? I don't think 10.8 is capable of compiling for ppc, or is it?

EDIT: I think I found out, what the problem is, and I also found a fix for it, but I am not sure if that's the best way to do it: The problem is that somehow SDL does not have "@exectuable_path/../Frameworks" set for it's "rpath". However, "@rpath/SDL.framwork...." is used to find the location of SDL. That means, if we compile teeworlds with SDL in /Library/Frameworks like it is, the teeworlds binary will look for SDL in "@rpath" and that contains only "/library/Frameworks". I tried to fix this and get "@executable_path..." also in there, but I am not very experienced with this stuff, so I did not succeed. However, I found another fix: Before compiling, on has to use the following command:

install_name_tool -id @executable_path/../Frameworks/SDL.framework/SDL /Library/Frameworks/SDL.framework/SDL

After this, compiling will create a binary, that finds the bundled SDL. I also uploaded a working .app bundle, that contains a binary running on 32/64 bit, but not on ppc: http://ghost.crabdance.com/assets/downl … ng-sdl.zip

Edit2:Maybe you could give some feedback, if this solved your problem?

@m!nus: If it does actually solve the problem, would you mind uploading a new (fixed) binary?

8 (edited by m!nus 2013-05-18 19:14:20)

Re: Teeworlds crashes on start (mac)

As mentioned in the release thread the build does not include ppc support. I'll upload it if it works. Including freetype into the binary as well might be good too.

Edit: I don't have access to a OS X machine anymore, can you build a complete release .dmg?

9 (edited by ShiZoFreniYA 2013-05-24 12:30:41)

Re: Teeworlds crashes on start (mac)

i downloaded this and nave this problem:

frominside-mac:MacOS frominside$ ./teeworlds
dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
  Referenced from: /Users/frominside/Desktop/Teeworlds.app/Contents/MacOS/./teeworlds
  Reason: Incompatible library version: teeworlds requires version 17.0.0 or later, but libfreetype.6.dylib provides version 16.0.0
Trace/BPT trap: 5

after i update freetype, 0.6.2 starts, but mouse dosen`t moves in game window (

from_my_past

10 (edited by clockworkman 2013-05-29 10:49:49)

Re: Teeworlds crashes on start (mac)

Hi! I've checked your fixed build, but it still not working. Another dependencies required. I've done short investigation with "otool", and here is what I've got:
teeworlds:
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 155.0.0)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1187.37.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 19.0.0)
    @rpath/SDL.framework/Versions/A/SDL (compatibility version 1.0.0, current version 12.4.0)
    /opt/local/lib/libfreetype.6.dylib (compatibility version 16.0.0, current version 16.0.0)
    /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.7)
    /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
    /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.18.0)
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 45.0.0)
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 945.16.0)

The next problem is that I don't have /opt directory on my MBPR (OS X 10.8.3) at all sad
So it can't find any dependencies in that directory (libfreetype, libz, libbz2).

Guys! I've just checked build from main page. Looks like it was changed. Everything works fine! Thanks everybody!

11

Re: Teeworlds crashes on start (mac)

see this here: https://www.teeworlds.com/forum/viewtop … 05#p106305