[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] Can you test
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] Can you test |
Date: |
Fri, 4 Apr 2003 23:34:37 +0200 |
On Fri, 04 Apr 2003 21:22:20 +0200 Joël Vennin wrote:
> Hello all, there is a bug with maybe my sdl installation. Get the
> branch 0.4 version and compile joltest. Run joltest with a font and
> try to enter some characters. When you enter the first character
> normaly you get a segfault.
I'm still using SDL 1.2.4 here, so I'm not sure whether this is of any
help. It crashes just as you say: here's all the output (just in case):
Filename : MORPHEUS.TTF
Number face : 1
Num_glyphs : 258
Fixed size : 0
Num char map: 3
New Image: 15 26
Copy to Bitmap done
New Image: 23 21
Copy to Bitmap done
New Image: 21 30
Copy to Bitmap done
New Image: 16 24
Copy to Bitmap done
Draw String begin
First Line 0 3 200 200
NeXt
First Line 14 8 200 200
NeXt
First Line 42 0 200 200
NeXt
First Line 63 5 200 200
NeXt
Draw String end
New Image: 4 5
Copy to Bitmap done
Draw String begin
First Line 102 26 200 200
And here is the backtrace:
(gdb) bt
#0 0x4002a9b6 in SDL_RLEBlit (src=0x816b390, srcrect=0xbffff55c,
dst=0x8155f40, dstrect=0x8145ab0) at SDL_RLEaccel.c:549
#1 0x400406f2 in SDL_LowerBlit (src=0x816b390, srcrect=0xbffff55c,
dst=0x8155f40, dstrect=0x8145ab0) at SDL_surface.c:369
#2 0x400408be in SDL_UpperBlit (src=0x816b390, srcrect=0x8145ab8,
dst=0x8155f40, dstrect=0x8145ab0) at SDL_surface.c:459
#3 0x8080269 in gfx::surface::draw (this=0x816b378, x=103, y=26, sx=0,
#sy=0,
sl=4, sh=5, da_opt=0x0, target=0xbffff738) at surface.cc:85
#4 0x810e10d in gfx::surface::draw (this=0x816b378, x=103, y=26,
#da_opt=0x0,
target=0xbffff738) at surface.h:137
#5 0x807835a in gui::label::draw_string (this=0xbffff738,
#at_cursor=true)
at label.cc:511
#6 0x807748b in gui::label::build (this=0xbffff738, erase_all=false)
at label.cc:163
#7 0x807733d in gui::label::add_text (this=0xbffff738,
address@hidden)
at label.cc:101
#8 0x8078d02 in gui::label_input::input_update (this=0xbffff738)
at label_input.cc:66
#9 0x8075eb4 in main (argc=2, argv=0xbffff834) at joltest.cc:64
#10 0x402c9c6f in __libc_start_main () from /lib/libc.so.6
The same as yours, but mine also displays the line numbers of the SDL
code. Not that this would help much, as the code in question is quite
tricky :(.
OTOH, could it be a problem with our own code? Wouldn't be the first
time ...
On the matter of wstring and g++ 2.95: to my surprise, wstring is
defined in /usr/include/g++/string, however, that line is commented!
I didn't want to mess with the system headers, so I typedef'd it in our
code, and it works fine.
Kai