URL:
  <http://gna.org/bugs/?23336>

                 Summary: assertion falure about synced context in LoW
scenario 3
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: So 01 Mär 2015 03:39:33 UTC
                Category: Bug
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group: Multiplayer
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13-0
        Operating System: windows

    _______________________________________________________

Details:

I just played LoW on current master (b60809e623d89d3667009330cf50e9b96e0aeb0d)
and got an assertion error assertion failed
'synced_context::get_synced_state() == synced_context::UNSYNCED' with the
folowing stacktrace:


>       wesnoth.exe!set_scontext_synced::init()  Zeile 384 + 0x20 Bytes C++
        wesnoth.exe!set_scontext_synced::set_scontext_synced()  Zeile 358       
C++
        wesnoth.exe!play_controller::do_init_side()  Zeile 379  C++
        wesnoth.exe!turn_info::process_network_data(const config & cfg)  Zeile
217     C++
        wesnoth.exe!turn_info::sync_network()  Zeile 79 C++
        wesnoth.exe!playmp_controller::pull_remote_choice()  Zeile 493  C++
        wesnoth.exe!syncmp_registry::pull_remote_choice()  Zeile 56 + 0x6 Bytes 
C++
        wesnoth.exe!synced_context::pull_remote_user_input()  Zeile 241 C++
        wesnoth.exe!synced_context::ask_server_for_seed()  Zeile 314    C++
        wesnoth.exe!synced_context::generate_random_seed()  Zeile 169 + 0x11
Bytes   C++
        
wesnoth.exe!boost::detail::function::function_invoker0<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>
(__cdecl*)(void),std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::invoke(boost::detail::function::function_buffer & function_ptr)  Zeile 95
+ 0x10 Bytes    C++
        
wesnoth.exe!boost::function0<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::operator()()  Zeile 760 + 0x11 Bytes       C++
        wesnoth.exe!random_new::synced_rng::next_random_impl()  Zeile 33 + 0xd
Bytes   C++
        wesnoth.exe!random_new::rng::get_random_int_in_range_zero_to(int max)  
Zeile
72 + 0xc Bytes  C++
        wesnoth.exe!unit::generate_traits(bool musthaveonly)  Zeile 813 C++
        wesnoth.exe!unit::advance_to(const config & old_cfg, const unit_type &
u_type, bool use_traits)  Zeile 941     C++
        wesnoth.exe!unit::unit(const config & cfg, bool use_traits, const 
vconfig *
vcfg)  Zeile 367        C++
        wesnoth.exe!unit_creator::add_unit(const config & cfg, const vconfig * 
vcfg)
 Zeile 173 + 0x36 Bytes C++
        wesnoth.exe!game_events::wml_func_unit(const game_events::queued_event &
__formal, const vconfig & cfg)  Zeile 1775      C++
        wesnoth.exe!game_lua_kernel::cfun_wml_action(lua_State * L)  Zeile 4129 
+
0x59 Bytes      C++
        
wesnoth.exe!boost::detail::function::function_obj_invoker1<boost::_bi::bind_t<int,boost::_mfi::mf1<int,game_lua_kernel,lua_State
*>,boost::_bi::list2<boost::_bi::value<game_lua_kernel *>,boost::arg<1> >
>,int,lua_State *>::invoke(boost::detail::function::function_buffer &
function_obj_ptr, lua_State * a0)  Zeile 133    C++
        wesnoth.exe!lua_cpp::intf_closure_dispatcher(lua_State * L)  Zeile 104  
C++
        wesnoth.exe!luaD_precall(lua_State * L, lua_TValue * func, int 
nresults) 
Zeile 344       C++
        wesnoth.exe!luaV_execute(lua_State * L)  Zeile 721 + 0x28 Bytes C++
        wesnoth.exe!f_call(lua_State * L, void * ud)  Zeile 917 + 0x5c Bytes    
C++
        wesnoth.exe!luaD_rawrunprotected(lua_State * L, void (lua_State *, void 
*)*
f, void * ud)  Zeile 155 + 0x23 Bytes   C++
        wesnoth.exe!luaD_pcall(lua_State * L, void (lua_State *, void *)* func, 
void
* u, int old_top, int ef)  Zeile 625 + 0x1d Bytes       C++
        wesnoth.exe!lua_pcallk(lua_State * L, int nargs, int nresults, int 
errfunc,
int ctx, int (lua_State *)* k)  Zeile 943 + 0x1d Bytes  C++
        wesnoth.exe!luaW_pcall(lua_State * L, int nArgs, int nRets, bool
allow_wml_error)  Zeile 72 + 0x20 Bytes C++
        wesnoth.exe!game_lua_kernel::run_wml_action(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & cmd,
const vconfig & cfg, const game_events::queued_event & ev)  Zeile 4168  C++
        wesnoth.exe!game_events::event_handler::handle_event(const
game_events::queued_event & event_info,
boost::shared_ptr<game_events::event_handler> & handler_p, game_lua_kernel &
lk)  Zeile 132 + 0x3d Bytes     C++
        
wesnoth.exe!game_events::t_pump::process_event(boost::shared_ptr<game_events::event_handler>
& handler_p, const game_events::queued_event & ev)  Zeile 304   C++
        wesnoth.exe!game_events::t_pump::operator()()  Zeile 560 + 0xd Bytes    
C++
        wesnoth.exe!game_events::t_pump::fire(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & event,
const game_events::entity_location & loc1, const game_events::entity_location
& loc2, const config & data)  Zeile 479 + 0x7 Bytes     C++
        wesnoth.exe!play_controller::fire_start()  Zeile 312 + 0x7f Bytes       
C++
        wesnoth.exe!playsingle_controller::play_scenario_init()  Zeile 261      
C++
        wesnoth.exe!playsingle_controller::play_scenario(const
std::pair<config::const_child_iterator,config::const_child_iterator> & story,
bool skip_replay)  Zeile 352    C++
        wesnoth.exe!playmp_scenario(const config & game_config, const
boost::shared_ptr<terrain_type_data> & tdata, display & disp, saved_game &
state_of_game, const
std::pair<config::const_child_iterator,config::const_child_iterator> & story,
bool skip_replay, bool blindfold_replay, io_type_t & io_type, end_level_data &
end_level)  Zeile 226   C++
        wesnoth.exe!play_game(game_display & disp, saved_game & gamestate, const
config & game_config, const boost::shared_ptr<terrain_type_data> & tdata,
io_type_t io_type, bool skip_replay, bool network_game, bool blindfold_replay,
bool is_unit_test)  Zeile 290 + 0x1e Bytes      C++
        wesnoth.exe!enter_connect_mode(game_display & disp, const config &
game_config, saved_game & state, bool local_players_only)  Zeile 522 + 0x2f
Bytes   C++
        wesnoth.exe!enter_configure_mode(game_display & disp, const config &
game_config, saved_game & state, bool local_players_only)  Zeile 619 + 0x17
Bytes   C++
        wesnoth.exe!enter_create_mode(game_display & disp, const config &
game_config, saved_game & state, bool local_players_only)  Zeile 575 + 0x11
Bytes   C++
        wesnoth.exe!enter_lobby_mode(game_display & disp, const config &
game_config, saved_game & state)  Zeile 733 + 0x16 Bytes        C++
        wesnoth.exe!mp::start_client(game_display & disp, const config &
game_config, saved_game & state, const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > & host) 
Zeile 920 + 0x10 Bytes  C++
        wesnoth.exe!game_launcher::play_multiplayer()  Zeile 964 + 0x23 Bytes   
C++
        wesnoth.exe!do_gameloop(const
std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> > > & args)  Zeile 774 + 0x14 Bytes   C++
        wesnoth.exe!SDL_main(int argc, char * * argv)  Zeile 970        C++
        wesnoth.exe!_main()  + 0xf5 Bytes       C
        wesnoth.exe!_WinMain@16()  + 0xae Bytes C
        wesnoth.exe!__tmainCRTStartup()  Zeile 547 + 0x1c Bytes C


It seems like te assertion failure is caused by a [change_controller] received
while waiting for a serversided random seed during s start event:
init_side_done_ is false it tried to do an do_init_side during that.




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


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

Reply via email to