← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/background_images into lp:widelands

 

Review: Needs Fixing

I compiled the branch and I can reproduce the crash.
Assert fail and backtrace (if you didn´t debug it already :) ):

widelands: ../src/graphic/graphic.cc:111: void Graphic::initialize(const Graphic::TraceGl&, int, int, bool): Assertion `SDL_BYTESPERPIXEL(disp_mode.format) == 4' failed.

Program received signal SIGABRT, Aborted.
0xb7fd6d09 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fd6d09 in __kernel_vsyscall ()
#1  0xb759a832 in __libc_signal_restore_set (set=0xbfffeabc) at ../sysdeps/unix/sysv/linux/nptl-signals.h:80
#2  __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3  0xb759bcc1 in __GI_abort () at abort.c:79
#4  0xb75927bb in __assert_fail_base (fmt=0xb76ee848 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=0x1463c28 "SDL_BYTESPERPIXEL(disp_mode.format) == 4", file=0x1463b66 "../src/graphic/graphic.cc", line=111, 
    function=0x1463d00 <Graphic::initialize(Graphic::TraceGl const&, int, int, bool)::__PRETTY_FUNCTION__> "void Graphic::initialize(const Graphic::TraceGl&, int, int, bool)") at assert.c:92
#5  0xb7592819 in __GI___assert_fail (assertion=0x1463c28 "SDL_BYTESPERPIXEL(disp_mode.format) == 4", 
    file=0x1463b66 "../src/graphic/graphic.cc", line=111, 
    function=0x1463d00 <Graphic::initialize(Graphic::TraceGl const&, int, int, bool)::__PRETTY_FUNCTION__> "void Graphic::initialize(const Graphic::TraceGl&, int, int, bool)") at assert.c:101
#6  0x00d8ec6b in Graphic::initialize (this=0x1b39b20, trace_gl=@0xbfffeecc: Graphic::TraceGl::kNo, window_mode_w=1270, window_mode_h=1710, 
    init_fullscreen=false) at ../src/graphic/graphic.cc:111
#7  0x00cbe0e2 in WLApplication::WLApplication (this=0x19bd5c0, argc=1, argv=0xbffff074) at ../src/wlapplication.cc:343
#8  0x00cbd8f1 in WLApplication::get (argc=1, argv=0xbffff074) at ../src/wlapplication.cc:262
#9  0x00cbca29 in main (argc=1, argv=0xbffff074) at ../src/main.cc:47

No idea what´s going wrong here...
-- 
https://code.launchpad.net/~widelands-dev/widelands/background_images/+merge/337629
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/background_images.


References