2025-07-21 16:08 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002143Spring engineAIpublic2010-11-23 01:40
Reportergajop 
Assigned Toabma 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0002143: RAI crashes at the beginning of the game when assigned to team 1
DescriptionAs said in summary, RAI crashes when testing against my AI if it's assigned to AI1, that is, team 1. It works fine if it's in team 0, AI0.
It crashes somewhere after line 142 of RAI.cpp, writting "Loading Global RAI...".
AI produces no logs and infolog isn't very informative.

It was tested on Comet Catcher Redux and Altair Crossing.
Additional Informationscript that fails
[GAME]
{
    HostIP=;
    HostPort=8452;
    IsHost=1;
    MyPlayerName=gajop;

    ModHash=2721138577;
    MapHash=311717275;
    Mapname=Altair_Crossing-V1;
    GameType=Balanced Annihilation V7.15;

    startpostype=3;
    [mapoptions]
    {
    }
    [modoptions]
    {
        disablemapdamage=0;
        fixedallies=0;
        ghostedbuildings=1;
        limitdgun=0;
        mo_comgate=0;
        mo_coop=0;
        mo_enemywrecks=1;
        mo_greenfields=0;
        mo_noowner=0;
        mo_noshare=1;
        mo_nowrecks=0;
        mo_preventdraw=0;
        mo_progmines=0;
        maxspeed=30;
        maxunits=500;
        minspeed=15;
        startenergy=1000;
        startmetal=1000;
        deathmode=com;
        gamemode=0;
    }
    NumRestrictions=0;
    [RESTRICT]
    {
    }

    NumPlayers=1;
    NumUsers=3;

    [PLAYER2]
    {
        Name=gajop;
        CountryCode=;
        Spectator=1;
        Rank=0;
        IsFromDemo=0;
        Team=1;
    }
    [AI0]
    {
        Name=Self;
        ShortName=MyAI;
        Version=0.1;
        Team=0;
        IsFromDemo=0;
        Host=2;
        [Options]
        {
        }
    }
    [AI1]
    {
        Name=RAI;
        ShortName=RAI;
        Version=0.601;
        Team=1;
        IsFromDemo=0;
        Host=2;
        [Options]
        {
        }
    }

    [TEAM0]
    {
        TeamLeader=2;
        StartPosX=496;
        StartPosZ=1924;
        AllyTeam=1;
        RGBColor=0.976471 1 0;
        Side=ARM;
        Handicap=0;
    }
    [TEAM1]
    {
        TeamLeader=2;
        StartPosX=3755;
        StartPosZ=2037;
        AllyTeam=0;
        RGBColor=0.509804 0.498039 1;
        Side=ARM;
        Handicap=0;
    }

    [ALLYTEAM1]
    {
        NumAllies=0;
    }
    [ALLYTEAM0]
    {
        NumAllies=0;
    }
}

script that works:

[GAME]
{
    HostIP=;
    HostPort=8452;
    IsHost=1;
    MyPlayerName=gajop;

    ModHash=2721138577;
    MapHash=311717275;
    Mapname=Altair_Crossing-V1;
    GameType=Balanced Annihilation V7.15;

    startpostype=3;
    [mapoptions]
    {
    }
    [modoptions]
    {
        disablemapdamage=0;
        fixedallies=0;
        ghostedbuildings=1;
        limitdgun=0;
        mo_comgate=0;
        mo_coop=0;
        mo_enemywrecks=1;
        mo_greenfields=0;
        mo_noowner=0;
        mo_noshare=1;
        mo_nowrecks=0;
        mo_preventdraw=0;
        mo_progmines=0;
        maxspeed=30;
        maxunits=500;
        minspeed=15;
        startenergy=1000;
        startmetal=1000;
        deathmode=com;
        gamemode=0;
    }
    NumRestrictions=0;
    [RESTRICT]
    {
    }

    NumPlayers=1;
    NumUsers=3;

    [PLAYER2]
    {
        Name=gajop;
        CountryCode=;
        Spectator=1;
        Rank=0;
        IsFromDemo=0;
        Team=1;
    }
    [AI0]
    {
        Name=RAI;
        ShortName=RAI;
        Version=0.601;
        Team=0;
        IsFromDemo=0;
        Host=2;
        [Options]
        {
        }
    }
    [AI1]
    {
        Name=Self;
        ShortName=MyAI;
        Version=0.1;
        Team=1;
        IsFromDemo=0;
        Host=2;
        [Options]
        {
        }
    }

    [TEAM0]
    {
        TeamLeader=2;
        StartPosX=3755;
        StartPosZ=2037;
        AllyTeam=1;
        RGBColor=0.976471 1 0;
        Side=ARM;
        Handicap=0;
    }
    [TEAM1]
    {
        TeamLeader=2;
        StartPosX=496;
        StartPosZ=1924;
        AllyTeam=0;
        RGBColor=0.509804 0.498039 1;
        Side=ARM;
        Handicap=0;
    }

    [ALLYTEAM1]
    {
        NumAllies=0;
    }
    [ALLYTEAM0]
    {
        NumAllies=0;
    }
}

TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (11,215 bytes) 2010-09-23 18:38 -
    LogOutput initialized.
    Spring 0.82.5.1
    Build date/time: Sep 18 2010 01:30:16
    Available log subsystems: CollisionVolume, unit, VFS-detail, VFS, ArchiveScanner, Sound
    Enabled log subsystems: Sound
    Enable or disable log subsystems using the LogSubsystems configuration key
      or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
    using default configuration source "/home/gajop/.springrc"
    [CMyMath::Init] CPU SSE mask: 126, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  1
    	SSE 4.1:  1,  SSE 4.2:  0
    	SSE 4.0A: 0,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 64bit native mode
    Using read-write data directory: /home/gajop/.spring/
    Using read-only data directory: /usr/share/spring/
    Scanning: /usr/share/spring/base
    Scanning: /home/gajop/.spring/maps
    Scanning: /home/gajop/.spring/mods
    Error opening /home/gajop/.spring/mods/XTAPEV96.sdz
    Unable to open archive: /home/gajop/.spring/mods/XTAPEV96.sdz
    Supported Video modes: 1920x1080, 1680x1050, 1400x1050, 1280x1024, 1280x960, 1152x864, 1024x768, 960x720, 928x696, 896x672, 832x624, 800x600, 720x400, 700x525, 640x512, 640x480, 640x400, 640x350, 576x432, 512x384, 416x312, 400x300, 360x200, 320x240, 320x200, 320x175
    Video mode set to 800x600/32bit (windowed)
    [      0] SDL:  1.2.14
    [      0] GL:   3.3.0 NVIDIA 256.53
    [      0] GL:   NVIDIA Corporation
    [      0] GL:   GeForce 8800 GT/PCI/SSE2
    [      0] GLSL: 3.30 NVIDIA via Cg compiler
    [      0] GLEW: 1.5.5
    [      0] Joysticks found: 0
    [      0] Joystick 0 not found
    [      0] Loading startscript from: rai2.txt
    [      0] Connecting to local server
    [      0] Sound: MaxSounds set to 0, sound is disabled
    [      0] Starting GameServer: 3 ms
    [      0] Starting demo recording
    [      0] Using map Altair_Crossing-V1
    [      0] Recording demo demos/20100923_183308_Altair_Crossing-V1_0.82.5.sdf
    [      0] Using mod Balanced Annihilation V7.15
    [      0] Using mod archive BA715.sd7
    [      0] Loading client data: 29 ms
    [      0] User number 0 (team 0, allyteam 1)
    [      0] Sound:  parsed 25 sounds from gamedata/sounds.lua
    [      0] Loading sounds: 1 ms
    [      0] Camera and mouse: 39 ms
    [      0] Parsing unit icons
    [      0] Loading GameData Definitions
    [      0] Loading all definitions:  0.346000
    [      0] Loading GameData Definitions: 372 ms
    [      0] Parsing Map Information
    [      0] Loading SMF
    [      0] Loading Map
    [      0] Calculating smooth height mesh
    [      0] Calculating smooth mesh: 21 ms
    [      0] Number of damage types: 40
    [      0] Creating unit textures
    [      0] Loading weapon definitions
    [      0] Loading unit definitions
    [      0] Loading feature definitions
    [      0] Initializing map features
    [      0] Reading estimate path costs
    [      0] [CPathManager] pathing data checksum: 68a8ea49
    [      0] shadows disabled or required OpenGL extension missing
    [      0] Loading .smt tile-file "maps/Altair_Crossing-V1.smt"
    [      0] Loading 3418 tiles from file 1/1
    [      0] Reading tiles
    [      0] Reading tile map
    [      0] generating MipMaps: 1 ms
    [      0] Creating Projectile Textures
    [      0] Loading console: 1 ms
    [      0] Loading LuaRules
    [      0] Loaded gadget:  No Self-D           <unit_prevent_share_selfd.lua>
    [      0] Loaded gadget:  Air Release         <unit_air_release_manager.lua>
    [      0] Loaded gadget:  AirPlantParents     <unit_air_plants.lua>
    [      0] Loaded gadget:  DirectControl       <unit_direct_control.lua>
    [      0] Loaded gadget:  DragonsDisguise     <unit_set_neutral.lua>
    [      0] Loaded gadget:  DroppedStartPos     <unit_fix_dropped_startpos.lua>
    [      0] Loaded gadget:  FinishedBuilding    <unit_finished_building.lua>
    [      0] Loaded gadget:  MissileControl      <unit_missile_delay.lua>
    [      0] Loaded gadget:  Napalm              <lups_napalm.lua>
    [      0] Loaded gadget:  No Land Damage      <unit_no_land_damage.lua>
    [      0] Loaded gadget:  No Self Pwn         <unit_noselfpwn.lua>
    [      0] Loaded gadget:  NoCost              <cmd_nocost.lua>
    [      0] Loaded gadget:  PassiveBuilders     <unit_passive_builders.lua>
    [      0] Loaded gadget:  Prevent Lab Hax     <unit_prevent_lab_hax.lua>
    [      0] Loaded gadget:  Prevent Load Hax    <unit_prevent_load_hax.lua>
    [      0] Loaded gadget:  Prevent Range Hax   <unit_prevent_range_hax.lua>
    [      0] Loaded gadget:  Prevent Strange Orders  <unit_prevent_strange_orders.lua>
    [      0] Loaded gadget:  Reclaim Fix         <unit_reclaim_fix.lua>
    [      0] Loaded gadget:  ShieldDrain         <unit_shield_watch.lua>
    [      0] Loaded gadget:  Shockwaves          <lups_shockwaves.lua>
    [      0] Loaded gadget:  Spawn               <init_game_spawn.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  fx_reclaim_shards   <fx_reclaim_shards.lua>
    [      0] Loaded gadget:  lups_wrapper.lua    <lups_wrapper.lua>
    [      0] Loaded gadget:  mo_enemywrecks      <mo_enemywrecks.lua>
    [      0] Loaded gadget:  mo_noshare          <mo_noshare.lua>
    [      0] Loaded gadget:  Area Attack         <areaattack.lua>
    [      0] Loaded gadget:  C Is For Control    <comiscontrol.lua>
    [      0] Loaded gadget:  Team Com Ends       <teamcomends.lua>
    [      0] Loaded gadget:  LupsSyncedManager   <lups_manager.lua>
    [      0] Loaded gadget:  Mex Upgrader Gadget  <unit_mex_upgrader.lua>
    [      0] Loaded gadget:  Air Release         <unit_air_release_manager.lua>
    [      0] Loaded gadget:  AirPlantParents     <unit_air_plants.lua>
    [      0] Loaded gadget:  DragonsDisguise     <unit_set_neutral.lua>
    [      0] Loaded gadget:  DroppedStartPos     <unit_fix_dropped_startpos.lua>
    [      0] Loaded gadget:  FinishedBuilding    <unit_finished_building.lua>
    [      0] Loaded gadget:  MissileControl      <unit_missile_delay.lua>
    [      0] Loaded gadget:  Napalm              <lups_napalm.lua>
    [      0] Loaded gadget:  NoCost              <cmd_nocost.lua>
    [      0] Loaded gadget:  PassiveBuilders     <unit_passive_builders.lua>
    [      0] Loaded gadget:  Reclaim Fix         <unit_reclaim_fix.lua>
    [      0] Loaded gadget:  ShieldDrain         <unit_shield_watch.lua>
    [      0] Loaded gadget:  Shockwaves          <lups_shockwaves.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  fx_reclaim_shards   <fx_reclaim_shards.lua>
    [      0] Loaded gadget:  mo_enemywrecks      <mo_enemywrecks.lua>
    [      0] Loaded gadget:  mo_greenfields      <mo_greenfields.lua>
    [      0] Loaded gadget:  mo_noowner          <mo_noowner.lua>
    [      0] Loaded gadget:  mo_noshare          <mo_noshare.lua>
    [      0] Loaded gadget:  mo_nowrecks         <mo_nowrecks.lua>
    [      0] Loaded gadget:  Area Attack         <areaattack.lua>
    [      0] Loaded gadget:  C Is For Control    <comiscontrol.lua>
    [      0] Loaded gadget:  LupsSyncedManager   <lups_manager.lua>
    [      0] Loaded gadget:  Mex Upgrader Gadget  <unit_mex_upgrader.lua>
    [      0] Loaded gadget:  Lups                <lups_wrapper.lua>
    [      0] Loading LuaGaia
    [      0] Loading LuaUI
    [      0] Using LUAUI_DIRNAME = LuaUI/
    [      0] Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
    [      0] LuaUI: bound F11 to the widget selector
    [      0] LuaUI: bound CTRL+F11 to tweak mode
    [      0] Hardware is incompatible with Xray shader requirements
    [      0] Hardware is incompatible with Xray shader requirements
    [      0] Loaded widget from mod:   Red_UI_Framework    <red_ui_framework.lua>
    [      0] blur api: your hardware does not support shaders
    [      0] Loaded widget from mod:   BlurApi             <api_gfx_blur.lua>
    [      0] Loaded widget from mod:   Red Tooltip         <gui_red_tooltip.lua>
    [      0] Loaded widget from mod:   MexUpg Helper       <helper.lua>
    [      0] Loaded widget from mod:   Commander Name Tags   <unit_comm_nametags.lua>
    [      0] Loaded widget from mod:   HealthBars          <unit_healthbars.lua>
    [      0] Loaded widget from user:  CommanderEnds       <gui_comm_ends.lua>
    [      0] Loaded widget from mod:   BuildETA            <gui_build_eta.lua>
    [      0] Loaded widget from mod:   Share Tracker       <unit_share_tracker.lua>
    [      0] Loaded widget from mod:   CustomIcons         <unit_customicons.lua>
    [      0] Loaded widget from mod:   Red_Drawing         <red_ui_framework_drawing.lua>
    [      0] Loaded widget from mod:   Red Resource Bars   <gui_red_resourcebars.lua>
    [      0] Loaded widget from mod:   Red Console         <gui_red_console.lua>
    [      0] Loaded widget from mod:   Auto First Build Facing  <autofirstbuildfacing.lua>
    [      0] Loaded widget from mod:   Autoquit            <autoquit.lua>
    [      0] Loaded widget from mod:   ComCounter          <unit_com_counter.lua>
    [      0] Loaded widget from mod:   Display DPS         <gui_display_dps.lua>
    [      0] Loaded widget from mod:   Loop Select         <unit_loop_select.lua>
    [      0] Loaded widget from mod:   MoreSounds          <unit_more_sounds.lua>
    [      0] Loaded widget from mod:   Red Build/Order Menu  <gui_red_buildordermenu.lua>
    [      0] Loaded widget from mod:   ReclaimInfo         <gui_reclaiminfo.lua>
    [      0] Loaded widget from mod:   Pause Screen        <gui_pausescreen.lua>
    [      0] Loaded widget from user:  CameraShake         <camera_shake.lua>
    [      0] Loaded widget from user:  FactoryGuard        <unit_factory_guard.lua>
    [      0] MohoExploiter widget disabled for spectators
    [      0] Loaded widget from mod:   MohoExploiter       <unit_moho_exploiter.lua>
    [      0] Loaded widget from user:  ImmobileBuilder     <unit_immobile_buider.lua>
    [      0] Loaded widget from user:  MetalMakers         <unit_metal_maker.lua>
    [      0] Loaded widget from mod:   Build Split         <cmd_buildsplit.lua>
    [      0] Loaded widget from mod:   Defense Range       <gui_defenserange.lua>
    [      0] Loaded widget from mod:   GameTypeInfo        <gui_game_type_info.lua>
    [      0] Loaded widget from mod:   Ghost Site          <unit_ghostsite.lua>
    [      0] Loaded widget from mod:   Prospector          <gui_prospector.lua>
    [      0] Loaded widget from mod:   Red Minimap         <gui_red_minimap.lua>
    [      0] Loaded widget from mod:   Attack AoE          <gui_attack_aoe.lua>
    [      0] Loaded widget from mod:   BA Waypoint Dragger  <unit_waypoint_dragger_2.lua>
    [      0] Loaded widget from user:  HighlightUnit       <gui_hilight_unit.lua>
    [      0] Loaded widget from mod:   LupsManager         <gfx_lups_manager.lua>
    [      0] Loaded widget from mod:   BA_AllyCursors      <gui_ba_ally_cursors.lua>
    [      0] Loaded widget from mod:   Lups                <lups_wrapper.lua>
    [      0] Loaded widget from mod:   CustomFormations2   <unit_customformations2.lua>
    [      0] LuaUI v0.3
    [      0] Finalizing...
    [      0] <Ghost Site> Spectator mode. Widget removed.
    [      0] Video mode set to 1920x1004/32bit (windowed)
    [      0] Connection attempt from gajop
    [      0]  -> Version: 0.82.5.1
    [      0]  -> Connection established (given id 0)
    [      0] Spectator gajop finished loading and is now ingame
    [      0] Speed set to 15.0 [server]
    [      0] GameID: 4d819b4c31137bccc621cbc81cdf4421
    [      0] SkirmishAI (with team ID = 0) is using cheats!
    [      0] ResourceMapAnalyzer by Krogothe, initialized for resource 0(Metal)
    
    txt file icon infolog.txt (11,215 bytes) 2010-09-23 18:38 +

-Relationships
+Relationships

-Notes

~0005642

gajop (developer)

on some more further inspections these crashes don't happen when playing against a human player or a C interface based AI Skirmish bots, it only seems to happen when playing against java based bots (tested it for my ai, NullJavaAI and NullOOJavaAI)

~0005960

abma (administrator)

doesn't crash in current spring (0.82.6.1), please reopen if bug persists.
+Notes

-Issue History
Date Modified Username Field Change
2010-09-23 18:38 gajop New Issue
2010-09-23 18:38 gajop File Added: infolog.txt
2010-09-24 00:58 gajop Note Added: 0005642
2010-11-23 01:28 abma Note Added: 0005960
2010-11-23 01:28 abma Status new => resolved
2010-11-23 01:28 abma Resolution open => fixed
2010-11-23 01:28 abma Assigned To => abma
2010-11-23 01:40 abma Project AI => Spring engine
+Issue History