Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
478 stars 77 forks source link

s25 wont start "missing video driver" #472

Closed Fasudil closed 8 years ago

Fasudil commented 8 years ago

When I try to open the client, I am getting the following Terminal output:

Last login: Sat Apr 23 11:41:19 on ttys000
localhost:~ Alex$ /tmp/rttr.command
Updating "put your S2-Installation in here":                       nan% - decompression failed: download failure?
lade "/Users/Alex/Library/Application Support/Return To The Roots/CONFIG.INI": fertig (0ms)
searching for drivers in ./share/s25rttr/driver/video/*.dylib
0 video drivers found!
Video driver couldn't be loaded!

ERROR: Das Spiel konnte nicht gestartet werden
Verbinde mit 78.46.212.230:4123
Verbindung erfolgreich hergestellt mit debug.rttr.info:4123
Sending replay...
Will now send 26 stack frames
/Applications/s25client.app/Contents/MacOS/rttr.command: line 63:  6960 Abort trap: 6           ./bin/s25client
localhost:~ Alex$

In the folder: /Applications/s25client.app/Contents/MacOS/share/s25rttr/driver/video/ is a "*.dylib" driver. So I dont get, why its not working out to load it?

Flamefire commented 8 years ago

Have you tried otool -L on the videodriver as suggested in http://siedler25.org/index.php?com=forum&mod=forum&action=thread&id=1428&start=-1#14143 ?

Fasudil commented 8 years ago
Alexs-MacBook-Pro-2:~ Alex$ otool -L /Applications/s25client.app/Contents/MacOS/share/s25rttr/driver/video/libvideoSDL.dylib  
/Applications/s25client.app/Contents/MacOS/share/s25rttr/driver/video/libvideoSDL.dylib:
    /srv/jenkins/jobs/s25rttr-git/workspace/ARCH/universal/PLATFORM/apple/build/driver/video/SDL/src/libvideoSDL.dylib (compatibility version 0.0.0, current version 0.0.0)
    @executable_path/../Frameworks/SDL.framework/Versions/A/SDL (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 12.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
Fasudil commented 8 years ago

This is what I get, but I cant figure out what it means...

Flow86 commented 8 years ago

hmm that looks okay, but you could check if Frameworks/SDL.framework/Versions/A/SDL exists or if its missing inside /Applications/s25client.app/Contents/MacOS/

Fasudil commented 8 years ago

I does exist.

Any other Ideas?

Flow86 commented 8 years ago

where is the s25client binary in? in /Applications/s25client.app/Contents/MacOS/ or in /Applications/s25client.app/Contents/MacOS/bin ?

Flow86 commented 8 years ago

and another question: does the (very old) stable version work? if that version works, its some bug inside the nightly builds

Fasudil commented 8 years ago

It is in /Applications/s25client.app/Contents/MacOS/bin

Fasudil commented 8 years ago

When I put it in without /bin, it doesn't find the binary at all. When I directly start the binary, it comes up with

Alexs-MacBook-Pro-2:~ Alex$ /Applications/s25client.app/Contents/MacOS/bin/s25client ; exit;
dyld: Library not loaded: libminiupnpc.5.dylib
  Referenced from: /Applications/s25client.app/Contents/MacOS/bin/s25client
  Reason: image not found
Trace/BPT trap: 5
logout

[Prozess beendet]
Fasudil commented 8 years ago

With the freshly downloaded old version, the following is happening:

Last login: Tue May  3 14:08:12 on ttys001
/tmp/rttr.command
Alexs-MacBook-Pro-2:~ Alex$ /tmp/rttr.command
Updating "SNG_0014.OGG":                                         100.00% - ok
Updating "dreamland.swd":                                        100.00% - ok
Updating "SNG_0010.OGG":                                         100.00% - ok
Updating "rttr.pot":                                             100.00% - ok
Updating "anywayz.swd":                                          100.00% - ok
Updating "007.rle.nx17.ny23.bmp":                                100.00% - ok
Updating "Trio.swd":                                             100.00% - ok
Updating "rttr-he.mo":                                           100.00% - ok
Updating "008.rle.nx7.ny12.bmp":                                 100.00% - ok
Updating "rttr-et.mo":                                           100.00% - ok
Updating "midorfeed.wld":                                        100.00% - ok
Updating "rttr.command":                                         100.00% - ok
Updating "010.rle.nx11.ny11.bmp":                                100.00% - ok
Updating "rttr-lt.mo":                                           100.00% - ok
Updating "splash.bmp":                                           100.00% - ok
Updating "SNG_0004.OGG":                                         100.00% - ok
Updating "rttr-es.mo":                                           100.00% - ok
Updating "rttr-tr.mo":                                           100.00% - ok
Updating "rttr-fr.mo":                                           100.00% - ok
Updating "SNG_0006.OGG":                                         100.00% - ok
Updating "rttr-nds.mo":                                          100.00% - ok
Updating "20000.rle.nx0.ny0.bmp":                                100.00% - ok
Updating "rttr-de.mo":                                           100.00% - ok
Updating "wbab_z.lst":                                           100.00% - ok
Updating "011.rle.nx11.ny6.bmp":                                 100.00% - ok
Updating "put your S2-Installation in here":                       nan% - decompression failed: download failure?
/Users/Alex/Downloads/s25rttr_0.8.1/s25client.app/Contents/MacOS/rttr.command: line 58: syntax error near unexpected token `)'
/Users/Alex/Downloads/s25rttr_0.8.1/s25client.app/Contents/MacOS/rttr.command: line 58: `s25update -d $PWD)'
Alexs-MacBook-Pro-2:~ Alex$ 

Starting it again ... wooow it works :D :D .. didn't expect that.

Flamefire commented 8 years ago

So nightly works now? Just tested it in a VM and did not have any issues with a fresh copy downloaded from rttr.info

Fasudil commented 8 years ago

No its not nightly that is working, its 0.8.1.

But with 0.8.1. i can't start any game right now.

What I get is the following:

Last login: Tue May  3 15:05:45 on ttys001
localhost:~ Alex$ /tmp/rttr.command
Updating "put your S2-Installation in here":                       nan% - decompression failed: download failure?
lade "/Users/Alex/Library/Application Support/Return To The Roots/CONFIG.INI": fertig (0ms)
searching for drivers in ./share/s25rttr/driver/video/*.dylib
1 video drivers found!
searching for drivers in ./share/s25rttr/driver/audio/*.dylib
1 audio drivers found!
Failed loading glXSwapIntervalSGI: dlsym(0x7fff60409950, _glXSwapIntervalSGI): symbol not found
schreibe "/Users/Alex/Library/Application Support/Return To The Roots/CONFIG.INI": fertig

Starte das Spiel
lade "./share/s25rttr/S2/GFX/PALETTE/PAL5.BBM": fertig (0ms)
lade "./share/s25rttr/S2/GFX/PALETTE/PAL6.BBM": fertig (0ms)
lade "./share/s25rttr/S2/GFX/PALETTE/PAL7.BBM": fertig (2ms)
lade "./share/s25rttr/S2/GFX/PALETTE/PALETTI0.BBM": fertig (2ms)
lade "./share/s25rttr/S2/GFX/PALETTE/PALETTI1.BBM": fertig (1ms)
lade "./share/s25rttr/S2/GFX/PALETTE/PALETTI8.BBM": fertig (1ms)
lade "./share/s25rttr/RTTR/COLORS.ACT": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/splash.bmp": fertig (28ms)
lade "./share/s25rttr/S2/DATA/RESOURCE.DAT": fertig (146ms)
lade "./share/s25rttr/S2/DATA/IO/IO.DAT": fertig (23ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP013.LBM": fertig (52ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP015.LBM": fertig (56ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP666.LBM": fertig (56ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP667.LBM": fertig (48ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP801.LBM": fertig (57ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP802.LBM": fertig (66ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP803.LBM": fertig (61ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP804.LBM": fertig (63ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP805.LBM": fertig (54ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP806.LBM": fertig (60ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP810.LBM": fertig (50ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP811.LBM": fertig (51ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP895.LBM": fertig (47ms)
lade "./share/s25rttr/S2/GFX/PICS/SETUP896.LBM": fertig (45ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/AFRICA.LBM": fertig (55ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/AUSTRA.LBM": fertig (56ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/EUROPE.LBM": fertig (58ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/GREEN.LBM": fertig (59ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/JAPAN.LBM": fertig (52ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/NAMERICA.LBM": fertig (53ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/NASIA.LBM": fertig (56ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/SAMERICA.LBM": fertig (65ms)
lade "./share/s25rttr/S2/GFX/PICS/MISSION/SASIA.LBM": fertig (69ms)
lade "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0004.OGG": fertig
lade "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0006.OGG": fertig
lade "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0010.OGG": fertig
lade "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0014.OGG": fertig
Lade LST,BOB,IDX,BMP,TXT,GER,ENG Dateien aus "./share/s25rttr/RTTR/LSTS/"
lade "./share/s25rttr/RTTR/LSTS/CLIENT.GER": fertig (1ms)
lade Verzeichnis ./share/s25rttr/RTTR/LSTS/CREDITS.LST
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/demophobie.bmp": fertig (3ms)
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/flosoft.bmp": fertig (2ms)
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/jh.bmp": fertig (3ms)
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/nastx.bmp": fertig (3ms)
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/oliverr.bmp": fertig (3ms)
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/spikeone.bmp": fertig (2ms)
lade "./share/s25rttr/RTTR/LSTS/CREDITS.LST/z-stef.bmp": fertig (3ms)
lade "./share/s25rttr/RTTR/LSTS/LANG.GER": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/OUTLINE_FONTS.LST": fertig (5ms)
lade "./share/s25rttr/RTTR/LSTS/RTTR.LST": fertig (5ms)
lade Verzeichnis ./share/s25rttr/RTTR/LSTS/firework.LST
lade "./share/s25rttr/RTTR/LSTS/firework.LST/1.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/2.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/3.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/4.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/5.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/6.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/7.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/8.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/9.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/10.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/11.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/12.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/13.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/14.player.bmp": fertig (5ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/15.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/16.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/17.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/18.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/19.player.bmp": fertig (2ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/20.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/21.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/22.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/23.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/24.player.bmp": fertig (3ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/25.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/26.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/27.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/28.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/29.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/30.player.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/31.player.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/firework.LST/32.player.bmp": fertig (0ms)
lade Verzeichnis ./share/s25rttr/RTTR/LSTS/io_new.LST
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/000.rle.nx10.ny10.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/001.rle.nx10.ny10.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/002.rle.nx12.ny12.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/003.rle.nx15.ny12.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/004.rle.nx14.ny13.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/007.rle.nx17.ny23.bmp": fertig (0ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/008.rle.nx7.ny12.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/010.rle.nx11.ny11.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/io_new.LST/011.rle.nx11.ny6.bmp": fertig (1ms)
lade "./share/s25rttr/RTTR/LSTS/logo.bmp": fertig (2ms)
lade "./share/s25rttr/RTTR/LSTS/menu.bmp": fertig (75ms)
lade "./share/s25rttr/RTTR/LSTS/splash.bmp": fertig (15ms)
Ersetze Daten der vorher geladenen Datei
Ersetze Eintrag 0 durch untitled
fertig (256ms)
Lade LST,BOB,IDX,BMP,TXT,GER,ENG Dateien aus "/Users/Alex/Library/Application Support/Return To The Roots/LSTS/"
lade "/Users/Alex/Library/Application Support/Return To The Roots/LSTS/SOUND.LST": fertig (2ms)
fertig (3ms)
lade "./share/s25rttr/RTTR/MUSIC/S2_Standard.pll"
3 in_order
loading aijh: Computer 1 (AI) 
loading aijh: Computer 2 (AI) 
Verbinde mit 127.0.0.1:3665
Verbindung erfolgreich hergestellt mit localhost:3665
SERVER: Using gameframe length of 40ms
SERVER: Using networkframe length of 6ms
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 

/Users/Alex/Desktop/s25rttr_0.8.1/s25client.app/Contents/MacOS/rttr.command: line 63:  3114 Abort trap: 6           ./bin/s25client
localhost:~ Alex$ 

And the client crashes.

When I try to open nightly, it crashes right after double clicking the icon. The code is the same I posted earlier.

Flow86 commented 8 years ago

@Flamefire does the s25client now set its working directory to its "dirname"? because that would cause for not finding the video driver - since its started from MacOS, but its in MacOS/bin and therefor searching in MacOS/bin/share/... for video drivers?

Flamefire commented 8 years ago

@Flow86 No it does not. I made a PR which should help in finding the actual issue for this. Please merge if it compiles and let @Fasudil run this.

Fasudil commented 8 years ago

Okay is there anything I can do right now?

Flamefire commented 8 years ago

You can try the latest nightly and post its output now. Can you check which processor architecture your laptop has? (x64, x86, arm) or at least if it is 32 or 64 bit? @Flow86 I've seen something strange in the bug report though: After Das Spiel konnte nicht gestartet werden the function waiting for [RETURN] should be called and its output displayed. Instead the game crashes... There seems to be another issue here, though nothing general as it worked on my test-OSx.

Fasudil commented 8 years ago
Last login: Wed May  4 12:45:25 on ttys003
Alexs-MacBook-Pro-2:~ Alex$ /tmp/rttr.command
creating symlink Versions/Current/SDL_mixer
creating symlink A
creating symlink A
creating symlink Versions/Current/smpeg
creating symlink Versions/Current/mikmod
creating symlink A
creating symlink Versions/Current/Frameworks
creating symlink A
creating symlink Versions/Current/SDL
Starting in /Users/Alex/Downloads/s25rttr_20160503/s25client.app/Contents/MacOS
Loading "/Users/Alex/Library/Application Support/Return To The Roots/CONFIG.INI": done in 0ms
Searching for drivers in ./share/s25rttr/driver/video
1 video drivers found!
May  4 12:46:31 Alexs-MacBook-Pro-2.local s25client[1456] <Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x42732c0
Searching for drivers in ./share/s25rttr/driver/audio
1 audio drivers found!
Failed loading glXSwapIntervalSGI: dlsym(0x7fff667e4978, _glXSwapIntervalSGI): symbol not found
Schreibe "/Users/Alex/Library/Application Support/Return To The Roots/CONFIG.INI";fertig

Starte das Spiel
Lade ...
Loading settings...Done.
Connection to 127.0.0.1:3665
Sucessfully connected to localhost:3665
Loading settings...Done.
SERVER: Using gameframe length of 40ms
SERVER: Using networkframe length of 7 GFs (280ms)
/Users/Alex/Downloads/s25rttr_20160503/s25client.app/Contents/MacOS/rttr.command: line 67:  1456 Abort trap: 6           ./bin/s25client
Alexs-MacBook-Pro-2:~ Alex$ 

This is after launching s25 successfully and trying to start the first map.

My System: MacBook Pro, MacBookPro8,1, Intel Core i5, 2,4 GHz, OS X 10.10.5 (14F1713), Darwin 14.5.0

Flamefire commented 8 years ago

OS X 10.10? I tried with 10.9, so maybe yours is just to new? Strange that the crash is not caught by our crash reporter. You can try to compile it on your own or at least attach a debugger to it to find the function where it crashes. Compiling it on your own will probably work. I think the build server uses some older libraries by now. I suspect especially SDL as the cause, but only guessing.

Flow86 commented 8 years ago

"Abort Trap 6" sounds like the "align-double" problem we have on 32bit linux

Fasudil commented 8 years ago

The "crash reporter" gives me this:

Process:               s25client [2543]
Path:                  /Users/USER/Downloads/*/s25client.app/Contents/MacOS/./bin/s25client
Identifier:            s25client
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        sh [2522]
Responsible:           Terminal [2504]
User ID:               501

Date/Time:             2016-05-05 08:19:15.625 +0200
OS Version:            Mac OS X 10.10.5 (14F1713)
Report Version:        11
Anonymous UUID:        820B73FA-5205-ED37-CF19-74565899F58E

Sleep/Wake UUID:       1C8B7C3C-4418-4822-8B77-1C7E77240F72

Time Awake Since Boot: 120000 seconds
Time Since Wake:       59000 seconds

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

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff87c09286 __pthread_kill + 10
1   libsystem_c.dylib               0x00007fff8d67b9ab abort + 129
2   com.apple.driver.AppleIntelHD3000GraphicsGLDriver   0x00000001090254d6 glrAppleSyncState + 772
3   com.apple.driver.AppleIntelHD3000GraphicsGLDriver   0x0000000109345b4e glrRenderVertexArray + 1010
4   GLEngine                        0x00007fff8e57c9d7 glDrawArrays_ACC_Exec + 459
5   s25client                       0x000000010035026f glArchivItem_Bitmap::Draw(short, short, short, short, short, short, short, short, unsigned int) + 1029
6   s25client                       0x00000001001c9e20 Desktop::Draw_() + 126
7   s25client                       0x00000001000dae9a Window::Draw() + 46
8   s25client                       0x0000000100097b30 WindowManager::Draw() + 124
9   s25client                       0x000000010009055c GameManager::Run() + 796
10  s25client                       0x00000001000139c3 RunProgram(boost::program_options::variables_map&) + 547
11  s25client                       0x0000000100013ed6 SDL_main + 1087
12  s25client                       0x00000001003b9457 -[SDLMain applicationDidFinishLaunching:] + 78
13  com.apple.CoreFoundation        0x00007fff8600045c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
14  com.apple.CoreFoundation        0x00007fff85ef0634 _CFXNotificationPost + 3140
15  com.apple.Foundation            0x00007fff871deaa1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
16  com.apple.AppKit                0x00007fff86342a8b -[NSApplication _postDidFinishNotification] + 291
17  com.apple.AppKit                0x00007fff863427f6 -[NSApplication _sendFinishLaunchingNotification] + 191
18  com.apple.AppKit                0x00007fff8633f946 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 574
19  com.apple.AppKit                0x00007fff8633f385 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 244
20  com.apple.Foundation            0x00007fff87211818 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
21  com.apple.Foundation            0x00007fff87211689 _NSAppleEventManagerGenericHandler + 102
22  com.apple.AE                    0x00007fff9225043c aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 531
23  com.apple.AE                    0x00007fff922501b9 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 31
24  com.apple.AE                    0x00007fff922500c3 aeProcessAppleEvent + 295
25  com.apple.HIToolbox             0x00007fff8927bc6e AEProcessAppleEvent + 56
26  com.apple.AppKit                0x00007fff86338da2 _DPSNextEvent + 2249
27  com.apple.AppKit                0x00007fff86337e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
28  com.apple.AppKit                0x00007fff8632daf3 -[NSApplication run] + 594
29  s25client                       0x00000001003b92a0 CustomApplicationMain + 408
30  s25client                       0x00000001003b96d7 main + 240
31  s25client                       0x0000000100012505 _start + 227
32  s25client                       0x0000000100012421 start + 33

... 

Model: MacBookPro8,1, BootROM MBP81.0047.B2C, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.68f99
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393930353431372D3037342E413030472020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393930353431372D3037342E413030472020
Fasudil commented 8 years ago

Do you think an update to 10.11.4 could help?

Flow86 commented 8 years ago

okay it seems its crashing at https://github.com/Return-To-The-Roots/s25client/blob/master/src/ogl/glArchivItem_Bitmap.cpp#L87

could it be that its calling some gl functions before the video driver runs SDL_init ?

Flow86 commented 8 years ago

ah I've found this:

http://cegui.org.uk/forum/viewtopic.php?t=4334

-   glInterleavedArrays(GL_T2F_C4UB_V3F , 0, myBuff);
+   //glInterleavedArrays(GL_T2F_C4UB_V3F , 0, myBuff);
+
+   // this fixes an *access violation* exception on some video cards caused by
+   // glInterleavedArrays; i am assuming because that function is deprecated.
+   glEnableClientState(GL_TEXTURE_COORD_ARRAY);
+   glEnableClientState(GL_COLOR_ARRAY);
+   glEnableClientState(GL_VERTEX_ARRAY);
+   glTexCoordPointer(2, GL_FLOAT, sizeof(MyQuad), &myBuff[0].tex);
+   glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(MyQuad), &myBuff[0].color);
+   glVertexPointer(3, GL_FLOAT, sizeof(MyQuad), &myBuff[0].vertex);

perhaps we have to remove the glInterleavedArrays and replace it with the above stuff

but perhaps its simply some kind of alignment error with the interleaved arrays?

Flamefire commented 8 years ago

Bingo! https://www.opengl.org/wiki/Common_Mistakes:_Deprecated

Flow86 commented 8 years ago

perfect, so we should replace the rgba to one 32bit integer "color" in the struct, and use the strides from above

Flow86 commented 8 years ago

interesting,

I was able to gain access to a mac to test the problem out:

The normal game start works for me - so glInterleavedArrays cant be the problem, since we use it in drawing fonts etc too, only if I start a game, it crashes as if somethings corrupting the game on game start

Flamefire commented 8 years ago

VBO related Maybe?

Fasudil commented 8 years ago

@Flow86 that's the same problem I have.

Flamefire commented 8 years ago

@Fasudil Can you try to turn Vertex Buffer Objects off? @Flow86 I still replace them. They are marked as deprecated, advised to be avoided and causes crashs in other games too.

Fasudil commented 8 years ago

@Flamefire without Vertex Buffer, the game starts perfectly allright. I tried to play "anyways" and it worked.

For some reason, the older Versions are now crashing right at the start, so I cant even get to the menu.

Flamefire commented 8 years ago

Ok, good to know. Don't bother about the older versions. The current one needs to work ;) Edit: There are some fixes now which could already solve the issue with VBO. Can you test it with latest version and VBO on? More will come in #471, but that is not ready yet.

Fasudil commented 8 years ago

i got the s25rttr_20160503 version and its crashing with VBO, and actually crashing in the game from time to time, giving the same output as posted earlier. Its hard to determine which action this is related to - i couldn't figure it out yet.

Flow86 commented 8 years ago

you can figure it out by looking at the apple crash report ("Thread ? Crashed:"-Part) if there's something with gl....

Flamefire commented 8 years ago

There are some enhancements in https://github.com/Return-To-The-Roots/s25client/pull/471/commits/f14e2024d8f0c47329322aaa83e5656296f095cf (PR #471) which might fix this. VBO handling is currently quite ...simple. I'll drop a note, once that is merged and you can check this.

Flamefire commented 8 years ago

@Fasudil Please only 1 problem per issue. I moved that report to #475

Flamefire commented 8 years ago

@Fasudil Can you check again with the latest version?

Flamefire commented 8 years ago

@Fasudil @Flow86 Can you recheck this with the latest version? If there are no reports that this problem persists I'll consider this fixed :)