Comment 2 for bug 372936

Revision history for this message
Ying-Chun Liu (paulliu) wrote : Re: English Tsukihime crashes before title screen

I made a backtrace on Tsukihime v1.1 English version.

(gdb) bt
#0 0xb7e271ee in SDL_SetAlpha () from /usr/lib/libSDL-1.2.so.0
#1 0x0806705f in ONScripterLabel::btndefCommand (this=0xbff0fe00)
    at ONScripterLabel_command.cpp:2892
#2 0x0805e6bd in ONScripterLabel::parseLine (this=0xbff0fe00)
    at ONScripterLabel.cpp:924
#3 0x0805ec01 in ONScripterLabel::executeLabel (this=0xbff0fe00)
    at ONScripterLabel.cpp:881
#4 0x080785c9 in ONScripterLabel::timerEvent (this=0xbff0fe00)
    at ONScripterLabel_event.cpp:1013
#5 0x08078af8 in ONScripterLabel::eventLoop (this=0xbff0fe00)
    at ONScripterLabel_event.cpp:1090
#6 0x0804b1b2 in main (argc=1, argv=0xbff11d88) at onscripter.cpp:210
(gdb) up
#1 0x0806705f in ONScripterLabel::btndefCommand (this=0xbff0fe00)
    at ONScripterLabel_command.cpp:2892
2892 SDL_SetAlpha( btndef_info.image_surface, DEFAULT_BLIT_FLAG, SDL_ALPHA_OPAQUE );
(gdb) print btndef_info.image_surface
$1 = (SDL_Surface *) 0x0

So the problem is btndef_info.image_surface is NULL in ONScripterLabel_command.cpp:2892 ONScripterLabel::btndefCommand ()

I'll see if new version solves the problem or not.