bugBattle for Wesnoth - Bugs: bug #14525, Crash while trying to scroll with...

Show feedback again

bug #14525: Crash while trying to scroll with keyboard in the selector window of STD scenario

Submitted by:  Pee Vee <petevine>
Submitted on:  Wed 14 Oct 2009 09:35:41 PM UTC  
Category: BugSeverity: 4 - Important
Priority: 5 - NormalItem Group: Graphics
Status: FixedPrivacy: Public
Assigned to: Mark de Wever <mordante>Open/Closed: Closed
Release: 1.6.5Operating System: Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sun 01 Nov 2009 12:15:26 PM UTC, SVN revision 39557:

Add better protection for images not fitting.

Some UMC uses listbox rowes with less than 20 pixes which caused images
to be resized to x - 20 which is negative and resulted into huge
positive numbers.

Modified the WML to return 0 in these cases and also added protection in
the engine to ignore those images. (The latter is needed since people
can create their own themes which might have this problem as well.)

Fixes bug #14525 and probably bug #14002.

(Browse SVN revision 39557)

Mark de Wever <mordante>
Project MemberIn charge of this item.
Fri 30 Oct 2009 06:18:46 PM UTC, comment #7:

Thanks for the additional information, I managed to reproduce the problem.

Mark de Wever <mordante>
Project MemberIn charge of this item.
Fri 30 Oct 2009 08:04:37 AM UTC, comment #6:

OK, so I looked into wml and how the campaigns are written and managed to run STD (had to change @campaigns to ~add-ons) in the latest 1.7.7+svn and sure enough it crashes exactly in the same way.

Pee Vee <petevine>
Thu 29 Oct 2009 09:43:49 PM UTC, comment #5:

Marking this "Need Info" since it can no longer be reproduced and may have been a build glitch. I think we need a recipe to reproduce under 1.7.x to hold it open past the next release.

Eric S. Raymond <esr>
Project Member
Sat 17 Oct 2009 04:16:49 PM UTC, comment #4:

Ok will try to reproduce it later myself, if you're able to reproduce it in 1.7.x please post a follow up.

Mark de Wever <mordante>
Project MemberIn charge of this item.
Thu 15 Oct 2009 09:19:24 PM UTC, comment #3:

Sorry, doesn't load in 1.7.6 so I can't check it. I think the bug should manifest itself in other campaigns but so far I've tried to do something similar in another one (the great race) and it didn't crash.

Pee Vee <petevine>
Thu 15 Oct 2009 09:13:23 PM UTC, comment #2:

I don't think there's STD for the dev version, but I'll try to run it anyway.

Pee Vee <petevine>
Thu 15 Oct 2009 07:47:18 PM UTC, comment #1:

We don't expect to do more 1.6 releases, could you test whether the bug is still present in the development version?

Mark de Wever <mordante>
Project MemberIn charge of this item.
Wed 14 Oct 2009 09:35:41 PM UTC, original submission:


I've stumbled on a reproducible crash in BfW 1.6.5 while playing the Solo Tower Defense scenario. During the game, after bringing up the tower upgrade window, pressing the down arrow immediately crashes wesnoth. Selecting with the mouse works fine. Also, STD for Wesnoth 1.4.7 with its old, narrower selector window doesn't cause this problem.

The program crashes with the following mesaage:

wesnoth: sdl_utils.cpp:286: surface scale_surface(const surface&, int, int, bool): Assertion `h >= 0' failed.

And gdb says:

(gdb) backtrace
#0 0x40781681 in __kill () at __kill:-1
#1 0x4016a47d in pthread_kill (thread=10329, signo=0) at signals.c:65
#2 0x4016a9fb in raise (sig=1075272444) at signals.c:236
#3 0x40782e89 in abort () at ../sysdeps/generic/abort.c:88
#4 0x4077b622 in __assert_fail (assertion=0x0, file=0x0, line=0,
function=0x8493fc0 "surface scale_surface(const surface&, int, int, bool)")
at assert.c:74

Can anyone try to reproduce the crash on their own system? I'm not sure if there's something wrong with my build (compiled with gcc 4.4.1 for athlon-xp architecture) or the bug is genuine.


Pee Vee <petevine>


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by esr (Posted a comment)
  • -unavailable- added by mordante (Posted a comment)
  • -unavailable- added by petevine (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 Nov 2009 05:03:07 PM UTCesrOpen/ClosedOpen=>Closed
    Sun 01 Nov 2009 12:16:06 PM UTCmordanteStatusNeed Info=>Fixed
      Assigned toNone=>mordante
    Fri 30 Oct 2009 06:18:46 PM UTCmordanteStatusNeed Info=>Confirmed
      Release1.6.5=>1.6.5 / 1.7.7+svn
    Thu 29 Oct 2009 09:43:49 PM UTCesrStatusNone=>Need Info
    Sat 17 Oct 2009 04:16:49 PM UTCmordanteStatusNeed Info=>None
    Thu 15 Oct 2009 07:47:18 PM UTCmordanteStatusNone=>Need Info
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup