← Back to team overview

widelands-dev team mailing list archive

Re: graphics problem

 

Alright, it is bit strange - on that notebook without external monitors the
widelands can not run, with/on external monitor - it runs. So it is ok

2014-12-16 21:54 GMT+01:00 Holger Rapp <HolgerRapp@xxxxxxx>:
>
>
> On 16.12.2014, at 21:53, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
>
> I will check...
>
> but what about this line:
>  size 960 -1080474760
> nonsensical, isn't it?
>
>
> Yup, seems like the display height did not get set properly. Maybe try
> nuking ~/.widelands/config.
>
>
> 2014-12-16 21:51 GMT+01:00 Holger Rapp <HolgerRapp@xxxxxxx>:
>>
>> There is so assert in graphics.cc at this line in trunk.
>>
>> In line 141 though, there is this assert:
>>                 assert(SDL_BYTESPERPIXEL(disp_mode.format) == 4);
>>
>> which checks that you got 32bit graphics depth. If you did not get that,
>> Widelands will not work (we assume 32bit depth in many places in the game).
>> What is your display giving you?
>>
>>
>> On 16.12.2014, at 18:33, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
>>
>> > What can this mean?
>> >
>> > Widelands executable directory: /var/widelands/installed-trunk/
>> > full path: /var/widelands/installed-trunk/share/widelands
>> > Adding directory: /var/widelands/installed-trunk/share/widelands
>> > selected language: (system language)
>> > using locale en_US
>> > Graphics: Try to set Videomode 1280x960
>> > Graphics: OpenGL: Version "3.0 Mesa 10.3.2"
>> > Graphics: OpenGL: Double buffering enabled
>> > Graphics: OpenGL: Max texture size: 8192
>> > **** GRAPHICS REPORT ****
>> >  VIDEO DRIVER x11
>> >  pixel fmt 3071808544
>> >  size 960 -1080474760
>> > **** END GRAPHICS REPORT ****
>> > widelands: /var/widelands/trunk/src/graphic/graphic.cc:159:
>> Graphic::Graphic(int, int, bool): Assertion `(((disp_mode.format) &&
>> ((((disp_mode.format) >> 28) & 0x0F) != 1)) ? ((((disp_mode.format) ==
>> SDL_PIXELFORMAT_YUY2) || ((disp_mode.format) == SDL_PIXELFORMAT_UYVY) ||
>> ((disp_mode.format) == SDL_PIXELFORMAT_YVYU)) ? 2 : 1) :
>> (((disp_mode.format) >> 0) & 0xFF)) == 4' failed.
>> > Aborted
>> >
>> >
>> > I dont think this is widelands problem, it will be a problem of OS
>> after upgrade to jessie.
>> >
>> >
>> > _______________________________________________
>> > Mailing list: https://launchpad.net/~widelands-dev
>> > Post to     : widelands-dev@xxxxxxxxxxxxxxxxxxx
>> > Unsubscribe : https://launchpad.net/~widelands-dev
>> > More help   : https://help.launchpad.net/ListHelp
>>
>>
>

References