Graphic problems at Fedora x64_86

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Karbas
Posts: 1
Joined: December 12th, 2010, 9:37 pm

Graphic problems at Fedora x64_86

Post by Karbas »

At any attempt to scroll to the right, the rightmost column of tiles is replicated over the whole screen. This happens in any campaign, tutorial, e.t.c. and requires no special tricks to reproduce (in my configuration)

Image


[me@localhost ~]$ uname -r
2.6.35.9-64.fc14.x86_64
[me@localhost ~]$ rpm -qi wesnoth
Name : wesnoth Relocations: (not relocatable)
Version : 1.8.5 Vendor: Fedora Project
Release : 2.fc14 Build Date: Wed 06 Oct 2010 12:05:36 AM MSD
Install Date: Wed 03 Nov 2010 12:21:55 AM MSK Build Host: x86-10.phx2.fedoraproject.org
Group : Amusements/Games Source RPM: wesnoth-1.8.5-2.fc14.src.rpm
Size : 18698964 License: GPLv2+
Signature : RSA/SHA256, Wed 06 Oct 2010 06:21:59 PM MSD, Key ID 421caddb97a1071f
Packager : Fedora Project
URL : http://www.wesnoth.org
Summary : Turn-based strategy game with a fantasy theme
Description :
User avatar
Crendgrim
Moderator Emeritus
Posts: 1328
Joined: October 15th, 2010, 10:39 am
Location: Germany

Re: Graphic problems at Fedora x64_86

Post by Crendgrim »

I just spoke to someone on IRC who had the same problem on Fedora. It's me who posts, because he hasn't got a forum account.
Here's a screenshot of his problem: http://www.abload.de/image.php?img=import1jg00.png

He's also using Fedora 64bit and had these graphic issues on both 1.8.5 and 1.9.3 (compiled from source). We guessed it could be a problem with the Fedora x64_86 Intel Graphic driver.

Here's an extract of the log:
[20:33] <Mike1> Hi! Does anyone here know this visual glitches and propably a fix? http://www.abload.de/image.php?img=import1jg00.png
[20:38] <Crendgrim> @Mike1: I saw something similar in the forums today... wait a moment, I'll search for it
[20:41] <Crendgrim> @Mike1: Your problem looks a bit like this: http://forums.wesnoth.org/viewtopic.php?f=4&t=32423
[20:41] <Crendgrim> I don't know whether this helps..
[20:41] <Mike1> Crendgrim: yeah, it’s exactly the same problem
[20:41] <Crendgrim> (I mean, if bookmarking that thread is helpful since you've got the same problem.)
[20:42] <Mike1> I wonder if that guy uses an Intel Graphics HD too, I’m suspecting the drivers …
[20:43] <Crendgrim> could be possible...
[20:43] <Mike1> he uses Fedora too, could be a Fedora-specific problem
[20:43] <Crendgrim> do you also use Fedora?
[20:43] <Mike1> yes
[20:44] <Crendgrim> 32 or 64 bit?
[20:44] <Mike1> 64bits
[20:45] <Crendgrim> maybe the Fedora Intel 64bit driver ...
[20:45] <Mike1> though I use a custom 2.6.36 kernel
[20:48] <Mike1> which does not matter because the problem occured with the 2.6.35 fedora kernel too
In the following he compiled 1.9.3 from source and had the same problems as in 1.8.5.

I hope this will help finding the source of this annoying bug.


Crend
UMC Story Images — Story images for your campaign!
thonsew
Posts: 1
Joined: January 25th, 2011, 2:57 pm

Re: Graphic problems at Fedora x64_86

Post by thonsew »

Hello,
I also had the same problem, while running wesnoth on fedora. The problem is that SDL_BlitSurface is copying from one surface onto itself and duplicating content from the right side of the screen. The problem can be fixed by making the changes indicated in the diff below in the file wesnoth-1.8.5/src/display.cpp. This creates a copy of the screen and prevents corruption.

Thonsew

diff display.cpp.old display.cpp
1425,1426d1424
< surface screen(screen_.getSurface());
<
1435,1436c1433,1437
< if (!screen_.update_locked())
< SDL_BlitSurface(screen,&srcrect,screen,&dstrect);
---
> if (!screen_.update_locked()){
> surface screen(screen_.getSurface());
> surface screen_copy = make_neutral_surface(screen);
> SDL_BlitSurface(screen_copy,&srcrect,screen,&dstrect);
> }
cuc
Posts: 3
Joined: April 23rd, 2008, 3:51 pm

Re: Graphic problems at Fedora x64_86

Post by cuc »

same problems on ubuntu 11.04 with wesnoth 1.8.5 using either nouveau or nvidia bin blob...

the problem didnt exist on ubuntu 10.10 using wesnoth 1.8.5 :)
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: Graphic problems at Fedora x64_86

Post by Gambit »

It's been reported. It's just waiting for someone to test and apply the patch I guess.
Post Reply