Update of bug #19782 (project wesnoth):

                Priority:                7 - High => 5 - Normal             
                  Status:             In Progress => None                   
             Assigned to:                  nephro => crab                   

    _______________________________________________________

Follow-up Comment #1:

Some more info.
Attached is a version of mattsc's AI demos which reproduces it. You must not
have the WesnothLuaPack installed.
This is 1.11.0-svn@r54373.
backtrace goes through confusing lua AI engine loading code:
++
        msvcr90d.dll!_NMSG_WRITE(int rterrnum=10)  Zeile 198    C
        msvcr90d.dll!abort()  Zeile 59 + 0x7 Bytes      C
        wesnoth.exe!luaD_throw(lua_State * L=0x0798dc68, int errcode=2)  Zeile 
136 +
0x8 Bytes       C++
        wesnoth.exe!luaG_errormsg(lua_State * L=0x0798dc68)  Zeile 567  C++
        wesnoth.exe!luaG_runerror(lua_State * L=0x0798dc68, const char *
fmt=0x02dc00e8, ...)  Zeile 576 C++
        wesnoth.exe!luaG_typeerror(lua_State * L=0x0798dc68, const lua_TValue *
o=0x0dbf8550, const char * op=0x02dbff34)  Zeile 513    C++
        wesnoth.exe!luaV_settable(lua_State * L=0x0798dc68, const lua_TValue *
t=0x0dbf8550, lua_TValue * key=0x0dbf8560, lua_TValue * val=0x0dbf8558)  Zeile
157     C++
        wesnoth.exe!lua_setfield(lua_State * L=0x0798dc68, int idx=-2, const 
char *
k=0x02d5c7a4)  Zeile 760 + 0x21 Bytes   C++
>       wesnoth.exe!ai::lua_ai_context::set_persistent_data(const config &
cfg={...})  Zeile 95 + 0x12 Bytes       C++
        wesnoth.exe!ai::engine_lua::engine_lua(ai::readonly_context & 
context={...},
const config & cfg={...})  Zeile 212    C++
        
wesnoth.exe!ai::register_engine_factory<ai::engine_lua>::get_new_instance(ai::readonly_context
& ai={...}, const config & cfg={...})  Zeile 154 + 0x36 Bytes   C++
        wesnoth.exe!ai::engine_cpp::do_parse_engine_from_config(const config &
cfg={...},
std::back_insert_iterator<std::vector<boost::shared_ptr<ai::engine>,std::allocator<boost::shared_ptr<ai::engine>
> > > b={...})  Zeile 128 + 0x3c Bytes  C++
        wesnoth.exe!ai::engine::parse_engine_from_config(ai::readonly_context &
context={...}, const config & cfg={...},
std::back_insert_iterator<std::vector<boost::shared_ptr<ai::engine>,std::allocator<boost::shared_ptr<ai::engine>
> > > b={...})  Zeile 72 + 0x2b Bytes   C++
        wesnoth.exe!ai::readonly_context_impl::on_readonly_context_create()  
Zeile
225 + 0x29 Bytes        C++
        wesnoth.exe!ai::holder::init(int side=1)  Zeile 75 + 0x17 Bytes C++
        wesnoth.exe!ai::holder::get_ai_ref()  Zeile 126 C++
        wesnoth.exe!ai::manager::get_active_ai_for_side(int side=1)  Zeile 783  
C++
        wesnoth.exe!ai::manager::play_turn(int side=1)  Zeile 733 + 0x9 Bytes   
C++
        wesnoth.exe!playsingle_controller::play_ai_turn()  Zeile 840 + 0xf
Bytes   C++
        wesnoth.exe!playsingle_controller::play_side(const unsigned int
side_number=1, bool save=true)  Zeile 658 + 0x8 Bytes   C++
        wesnoth.exe!playsingle_controller::play_turn(bool save=true)  Zeile 588 
+
0x21 Bytes      C++
        wesnoth.exe!playsingle_controller::play_scenario(const
std::pair<config::const_child_iterator,config::const_child_iterator> &
story=({i_=... },{i_=... }), bool skip_replay=false)  Zeile 388 + 0x1a
Bytes   C++
        wesnoth.exe!playsingle_scenario(const config & game_config={...}, const
config * level=0x0012e684, display & disp={...}, game_state &
state_of_game={...}, const
std::pair<config::const_child_iterator,config::const_child_iterator> &
story=({i_=... },{i_=... }), bool skip_replay=false, end_level_data &
end_level={...})  Zeile 130 + 0x14 Bytes        C++
        wesnoth.exe!play_game(display & disp={...}, game_state & 
gamestate={...},
const config & game_config={...}, io_type_t io_type=IO_NONE, bool
skip_replay=false)  Zeile 367 + 0x28 Bytes      C++
        
wesnoth.exe!game_controller::launch_game(game_controller_abstract::RELOAD_GAME_DATA
reload=RELOAD_DATA)  Zeile 1266 + 0x4b Bytes    C++
        wesnoth.exe!do_gameloop(int argc=2, char * * argv=0x0012feb0)  Zeile 
582 +
0x2d Bytes      C++
        wesnoth.exe!SDL_main(int argc=2, char * * argv=0x0012feb0)  Zeile 638 + 
0xd
Bytes   C++
        wesnoth.exe!_main()  + 0xf5 Bytes       C
        wesnoth.exe!_WinMain@16()  + 0xae Bytes C
        wesnoth.exe!__tmainCRTStartup()  Zeile 574 + 0x35 Bytes C
        wesnoth.exe!WinMainCRTStartup()  Zeile 399      C

--
Perhaps the error thrown upon loading the code is never caught.

(file #15798)
    _______________________________________________________

Additional Item Attachment:

File name: AI-demos.zip                   Size:101 KB


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19782>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to