<URL: http://bugs.freeciv.org/Ticket/Display.html?id=29557 >

> [dmarks - Do 21. Dez 2006, 01:23:50]:
> 
> This was the last output before the crash:
> 
> 2: clear_surface(0x1547790, 0x15b1358)
> 2: clear_surface() finished
> Segmentation fault
> 
> It's worth noting that the crash doesn't occur when switching from
> fullscreen 1024x768 to windowed 1024x768. However, now the client
> defaults to windowed 1024x768 and crashes upon startup:
> 
> ibg3:~ daniel$ ./freeciv-sdl/bin/civclient
> 2: Using Video Output: Quartz
> 2: clear_surface(0x1556820, 0x0)
> 2: clear_surface() finished
> 2: clear_surface(0x1556820, 0x0)
> 2: clear_surface() finished
> 2: clear_surface(0x15a1fc0, 0x0)
> 2: clear_surface() finished
> 2: clear_surface(0x159a120, 0x0)
> 2: clear_surface() finished
> 2: clear_surface(0x15ae2a0, 0x0)
> 2: clear_surface() finished
> Segmentation fault
> 

Seems like it crashes in the SDL_SetVideoMode() function in SDL. Some
googling found a similar bug report for Wesnoth:
http://www.wesnoth.org/forum/viewtopic.php?t=3231&start=0&postdays=0&postorder=asc&highlight=

Does the attached little program also crash? You can compile it with
"gcc `pkg-config --cflags sdl` `pkg-config --libs sdl` -o sdl-crashtest
sdl-crashtest.c"

#include <stdio.h>
#include <SDL.h>

int main() {

  if (SDL_Init(SDL_INIT_VIDEO) < 0) {
    printf("SDL_Init() failed.\n");
    exit(1);
  }

  if (SDL_SetVideoMode(0, 0, 0, SDL_SWSURFACE | SDL_ANYFORMAT | SDL_RESIZABLE) < 0) {
    printf("SDL_SetVideoMode() failed.\n");
    exit(1);
  }

  printf("Video mode change successful.\n");

  return 0;
}
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to