This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Frequent SIGSEGV's


>Yeah, I updated from CVS and I've been getting SIGSEGV's too.  It
>seems to have something to do with pressing several keys in rapid
>succession (well, at least that's what I was doing both times)...
>
>In the enclosed code the fault is line 3978 and the variable "uimg" is NULL.
>
>3975            if (emblem_position(uimg, ename, eimf, sw, sh, &ex,
>&ey, &ew, &eh)) {
>3976                    /* Make sure emblem stays within the cell when
>drawing a single big icon
>3977                    (should fix emblem_position instead of doing
>this in the interfaces). */
>3978                    if (uimg->h > mapw->vp->uh) {
>3979                            sy += (mapw->vp->hh - mapw->vp->uh) /
>2;
>3980                            /* Tweaked by hand. */

Thanks. The fix is easy enough: just check that uimg exists. This bug
sneaked in back in February, so it has nothing to do with the recent
changes to the unit view code.

Hans



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]