On Thu, 26 Jul 2001, Christoph Reichenbach wrote:

> Hi,
>
> > On Wed, Jul 25, 2001 at 02:49:16PM -0700, Matt wrote:
> > > gfx_line.c(89) is where the first fault happens. y and finaly are
> > > both 400. Next time, same line, y is 400 and finaly is 401.
>
> OK. finaly := line.y + line.yl, so invalid parameters were passed from
> somewhere. Could you provide a complete stack trace- including call
> parameters- for this one, please? (If possible)

Stack trace is below. Interesting thing to note:

At the point of gfxop_draw_rectangle, line.y is 338 and line.yl is 64.
At _gfxop_draw_line_clipped, line.yl changes to 62.

line.y + line.yl are still out of bounds.

As a reminder, this happens in SQ3 1.018 in the first scene when you start
typing anything and the input box is drawn.

_gfx_draw_line_buffer_1(unsigned char * 0x02f67f90, int 640, rect_t {...},
unsigned int 255) line 89 + 461 bytes
gfx_draw_line_pixmap_i(gfx_pixmap_t * 0x02cd1118, rect_t {...}, int 255)
line 98 + 280 bytes
sdl_draw_line(_gfx_driver * 0x10191180 _gfx_driver_sdl, rect_t {...},
gfx_color_t {...}, int 2, int 0) line 497 + 148 bytes
_gfxop_draw_line_clipped(gfx_state_t * 0x00427510 static_gfx_state, rect_t
{...}, gfx_color_t {...}, int 2, int 0) line 996 + 238 bytes
gfxop_draw_rectangle(gfx_state_t * 0x00427510 static_gfx_state, rect_t
{...}, gfx_color_t {...}, int 2, int 0) line 1083 + 195 bytes
_gfxwop_rect_draw(_gfxw_widget * 0x02d51560, point_t {...}) line 589 + 573
bytes
_gfxwop_container_draw_contents(_gfxw_widget * 0x02f03c20, _gfxw_widget *
0x02e18978) line 1397 + 148 bytes
_gfxwop_list_draw(_gfxw_widget * 0x02f03c20, point_t {...}) line 1607 + 50
bytes
_gfxwop_port_draw(_gfxw_widget * 0x02cb42e8, point_t {...}) line 1986 +
140 bytes
_gfxwop_container_draw_contents(_gfxw_widget * 0x02d7ae80, _gfxw_widget *
0x02c13b60) line 1397 + 148 bytes
_gfxwop_port_draw(_gfxw_widget * 0x02d7ae80, point_t {...}) line 1993 + 50
bytes
_gfxwop_container_draw_contents(_gfxw_widget * 0x02ba2470, _gfxw_widget *
0x02ba2640) line 1397 + 148 bytes
_gfxwop_visual_draw(_gfxw_widget * 0x02ba2470, point_t {...}) line 1841 +
50 bytes
kNewWindow(_state * 0x03290058, int 19, int 9, unsigned short 33922) line
2169 + 168 bytes
run_vm(_state * 0x03290058, int 0) line 769 + 545 bytes
_game_run(_state * 0x03290058, int 0) line 1554 + 96 bytes
game_run(_state * * 0x00427508 gamestate) line 1620 + 35 bytes



Reply via email to