2025-07-18 11:47 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000582Spring engineGeneralpublic2007-08-13 10:54
ReporterDragon45 
Assigned Toimbaczek 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000582: GroupAI selection/deselection crash
DescriptionIf i select a unit and hit select GroupAI button on its menu by accident, sometimes pressing Esc or some other method (click off it) for deselection of the button crashes the game.
Additional InformationSee infolog
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (7,625 bytes) 2007-08-11 22:19 -
    Connecting to server
    Connected to 82.227.75.26:8452 using number 13
    Using script Commanders
    Map: 2_Mountains_Battlefield_v2_(polar_edition).smf
    Mod: "Balanced Annihilation V5.5" from BA55.sd7
    You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
    TransportHover: 0 
    Opening map file
    Loading Map
    Loading detail textures
    Creating overhead texture
    Creating ground shading
    Loading tile file
    Reading tiles
    Reading tile map
    Creating projectile texture
    Number of damage types: 42
    Loading units and weapons
    Initializing map features
    Parsing unit icons
    Creating unit textures
    Reading estimate path costs
    Analyzing map accessability "8"
    Calculating estimate path costs "8" 0/20
    Calculating estimate path costs "8" 1/20
    Calculating estimate path costs "8" 2/20
    Calculating estimate path costs "8" 3/20
    Calculating estimate path costs "8" 4/20
    Calculating estimate path costs "8" 5/20
    Calculating estimate path costs "8" 6/20
    Calculating estimate path costs "8" 7/20
    Calculating estimate path costs "8" 8/20
    Calculating estimate path costs "8" 9/20
    Calculating estimate path costs "8" 10/20
    Calculating estimate path costs "8" 11/20
    Calculating estimate path costs "8" 12/20
    Calculating estimate path costs "8" 13/20
    Calculating estimate path costs "8" 14/20
    Calculating estimate path costs "8" 15/20
    Calculating estimate path costs "8" 16/20
    Calculating estimate path costs "8" 17/20
    Calculating estimate path costs "8" 18/20
    Calculating estimate path costs "8" 19/20
    Reading estimate path costs
    Analyzing map accessability "32"
    Calculating estimate path costs "32" 0/20
    Calculating estimate path costs "32" 1/20
    Calculating estimate path costs "32" 2/20
    Calculating estimate path costs "32" 3/20
    Calculating estimate path costs "32" 4/20
    Calculating estimate path costs "32" 5/20
    Calculating estimate path costs "32" 6/20
    Calculating estimate path costs "32" 7/20
    Calculating estimate path costs "32" 8/20
    Calculating estimate path costs "32" 9/20
    Calculating estimate path costs "32" 10/20
    Calculating estimate path costs "32" 11/20
    Calculating estimate path costs "32" 12/20
    Calculating estimate path costs "32" 13/20
    Calculating estimate path costs "32" 14/20
    Calculating estimate path costs "32" 15/20
    Calculating estimate path costs "32" 16/20
    Calculating estimate path costs "32" 17/20
    Calculating estimate path costs "32" 18/20
    Calculating estimate path costs "32" 19/20
    Creating sky
    Spring 0.75b2
    Player LBPB joined as 0
    Player joda joined as 2
    Player nollyflip joined as 3
    Player x3no joined as 7
    x3no added point: Start 6
    Player [[ITER]]Satirik joined as 6
    Player [PL1LQ]Account joined as 5
    Player Fatal_Fr joined as 4
    Player thopol joined as 1
    Player LetoII joined as 15
    [PL1LQ]Account added point: Start 5
    Player Fredpeace joined as 16
    LBPB added point: Start 0
    LBPB added point: Start 0
    Player [arf]Allergic joined as 11
    Player yababa joined as 12
    LetoII added point: Start 14
    x3no added point: Start 6
    Player Dzsoni87 joined as 10
    x3no added point: Start 6
    x3no added point: Start 6
    x3no added point: Start 6
    Player rnikkila joined as 8
    Player deepseaangler joined as 13
    <[arf]Allergic> Ah, I remember that map
    Player Si_nein joined as 14
    Player cloudct84 joined as 9
    <LBPB> I revamped her
    cloudct84 added point: Start 8
    <thopol> ;/
    joda added point: Start 2
    Si_nein added point: Start 13
    Si_nein added point: Start 13
    <x3no> having 0 tidal power sucks
    <[arf]Allergic> Played it once.. 1,5 years ago or so, heh.
    cloudct84 added point: Start 8
    <LBPB> Allies: its shallow water
    <x3no> Allies: oh
    <Fredpeace> OMG
    <Fredpeace> account u reeeeeeeeeebo
    <x3no> Allies: so kbots can go through?
    <Fredpeace> ready up
    <LBPB> Allies: yep
    <Si_nein> Allies:  jeah
    <[PL1LQ]Account> Allies: :)
    deepseaangler added point: Start 12
    <Dzsoni87> forcestart
    deepseaangler added point: Start 12
    <x3no> Allies: k
    deepseaangler added point: Start 12
    deepseaangler added point: Start 12
    <nollyflip> start ?
    <[arf]Allergic> Aita, eh?
    <Fredpeace> ye
    Lost connection to Si_nein
    <deepseaangler> .take
    Team13 (Si_nein) forgot to turn off the stove
    <LBPB> take him
    Buildings set to face West
    <LBPB> Allies: rush to the front
    deepseaangler added point: Ill try and get sea
    <LBPB> Allies: omg
    <deepseaangler> Allies: ?
    deepseaangler added point: 
    <LBPB> Allies: you cant
    <deepseaangler> Allies:  what
    <LBPB> Allies: you cant go ships
    <deepseaangler> Allies: omg you right
    <deepseaangler> Allies:  omg
    <deepseaangler> Allies: :O
    <deepseaangler> Allies:  who's comm
    <LBPB> Allies: mine
    <LBPB> Allies: and ennemy
    <deepseaangler> Allies:  im reclaiming with planes
    <LBPB> Allies: k go
    LBPB added point: 
    LBPB added point: *
    deepseaangler added point: help plz
    <Fredpeace> ehm why cant i move my mouse cursor
    <Fredpeace> to the right
    <Fredpeace> i got some problems
    <Fredpeace> sry for that guys
    deepseaangler added point: wtf
    <Fredpeace> U LISTENING TO ME U RETARD?
    <Fredpeace> I GOT SOME PROBLEMS
    <Fredpeace> STOP SPAMMING MY BASE WITH UR WTF
    Jeffy is being attacked
    Jeffy is being attacked
    deepseaangler added point: comm
    deepseaangler added point: haha omg
    deepseaangler added point: k
    deepseaangler added point: `gatat
    Flash is being attacked
    Flash is being attacked
    Flash is being attacked
    Flash is being attacked
    Flash is being attacked
    Flash is being attacked
    Flash is being attacked
    Spring 0.75b2 has crashed.
    Exception: Access violation (0xc0000005)
    Exception Address: 0x00000000
    DLL information:
    0x00400000	spring
    0x77940000	ntdll
    0x77530000	kernel32
    0x77770000	ADVAPI32
    0x762f0000	RPCRT4
    0x71310000	dsound
    0x763f0000	msvcrt
    0x76200000	USER32
    0x762a0000	GDI32
    0x77620000	ole32
    0x74910000	WINMM
    0x767f0000	OLEAUT32
    0x748d0000	OLEACC
    0x75550000	POWRPROF
    0x70180000	GLU32
    0x6e530000	OPENGL32
    0x70010000	DDRAW
    0x75190000	DCIMAN32
    0x76600000	SETUPAPI
    0x736a0000	dwmapi
    0x765d0000	IMAGEHLP
    0x74c40000	WSOCK32
    0x778c0000	WS2_32
    0x77610000	NSI
    0x10000000	SDL
    0x7c340000	MSVCR71
    0x01030000	DevIL
    0x66fc0000	freetype6
    0x61b80000	zlib1
    0x00240000	glew32
    0x00270000	ILU
    0x763d0000	IMM32
    0x77ab0000	MSCTF
    0x763c0000	LPK
    0x769e0000	USP10
    0x752a0000	uxtheme
    0x01290000	mskoeplg
    0x75900000	VERSION
    0x73d40000	COMCTL32
    0x76a60000	SHELL32
    0x76790000	SHLWAPI
    0x752e0000	WINTRUST
    0x75b60000	CRYPT32
    0x75cb0000	MSASN1
    0x760b0000	USERENV
    0x76090000	Secur32
    0x74fa0000	comctl32
    0x02850000	ig4icd32
    0x02bd0000	ig4dev32
    0x75890000	mswsock
    0x75530000	wshtcpip
    0x76880000	CLBCatQ
    0x753a0000	MMDevApi
    0x746d0000	audioses
    0x745d0000	audioeng
    0x75460000	AVRT
    0x761f0000	PSAPI
    0x05cb0000	MexUpgraderAI
    0x6f4e0000	dbghelp
    Stacktrace:
    (0) Unknown [0x00000000]
    (1) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0xe94f6) [0x0067CF56]
    (2) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0x399508) [0x0092CF68]
    (3) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0x286031) [0x00819A91]
    (4) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0x28e208) [0x00821C68]
    (5) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0x28e5d8) [0x00822038]
    (6) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0x28e809) [0x00822269]
    (7) C:\Program Files\Spring\spring.exe(UnitDef_GetBuildOption+0x37b6e7) [0x0090F147]
    (8) C:\Program Files\Spring\spring.exe [0x00401292]
    (9) C:\Program Files\Spring\spring.exe [0x004012DD]
    (10) C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0x12) [0x77573833]
    (11) C:\Windows\system32\ntdll.dll(LdrInitializeThunk+0x4d) [0x7797A9BD]
    
    txt file icon infolog.txt (7,625 bytes) 2007-08-11 22:19 +

-Relationships
related to 0000597resolvedimbaczek Crashes when attempting to deslect via minimap 
+Relationships

-Notes

~0001085

imbaczek (reporter)

confirmed in r4179

~0001086

imbaczek (reporter)

this is on a non-debug build:

Program received signal SIGSEGV, Segmentation fault.
0xabababab in ?? ()
(gdb) bt
#0 0xabababab in ?? ()
#1 0x00899c83 in CMouseHandler::MouseRelease ()
#2 0x0089ae6a in CMouseHandler::HandleSDLMouseEvent ()
0000003 0x0041408f in SpringApp::Run ()
0000004 0x004143cf in Run ()
0000005 0x004145e1 in WinMain@16 ()
#6 0x008eb348 in main ()
(gdb)

~0001088

imbaczek (reporter)

debug version:

Program received signal SIGSEGV, Segmentation fault.
0xabababab in ?? ()
(gdb) bt
#0 0xabababab in ?? ()
#1 0x0089e643 in CMouseHandler::MouseRelease (this=0xe7f7be0, x=95, y=557,
    button=1) at rts/Game/UI/MouseHandler.cpp:323
#2 0x0089f82a in CMouseHandler::HandleSDLMouseEvent (this=0xe7f7be0,
    event=@0x23fe0c) at rts/Game/UI/MouseHandler.cpp:230
0000003 0x0041420f in SpringApp::Run (this=0x23fea4, argc=1, argv=0x34288)
    at rts/System/Main.cpp:935
0000004 0x0041454f in Run (argc=1, argv=0x34288) at rts/System/Main.cpp:1075
0000005 0x00414761 in WinMain@16 (hInstanceIn=0x400000, hPrevInstance=0x0,
    lpCmdLine=0x251f32 "", nCmdShow=10) at rts/System/Main.cpp:1137
#6 0x008efd08 in main () at c:/mingw/include/c++/4.2.1/bits/stl_tree.h:421

this doesn't look good. 0xabababab is a special value set by Windows when allocating memory.

    if(activeReceiver){
/*323*/ activeReceiver->MouseRelease(x,y,button);
        activeReceiver=0;
        return;
    }

I don't know what to make out of it. Maybe testing on linux will help.

To reproduce the issue, just build some stuff, some units, select all and click Select AI on/off until spring crashes. Moving the mouse occasionally might help, as may pressing Esc. Don't know wheter pressing Esc alone to get rid of groupai window causes a crash.

~0001089

Kloot (developer)

Last edited: 2007-08-13 08:58

Here's a more reliable way to reproduce this:

1) select the commander
2) click on the Group AI button
3) repeat the previous step, but hold the LMB down
4) press ESC so the menu disappears
5) release the LMB
6) die

Somewhere between 4 and 5 the activeReceiver pointer
is invalidated and should probably be set to zero; one
possible (but maybe not the best) place to do so is
CglList::KeyPressed():

if (k == SDLK_ESCAPE) {
    if (cancelPlace >= 0) {
        place = cancelPlace;
        mouse->activeReceiver = 0; // ESC closes any menu
        Select();
        return true;
    }
} ...

edit: fixed in r4182

~0001095

imbaczek (reporter)

r4182.

btw, I wonder if there are more places like this and would those be the reason of LuaUI crashes.
+Notes

-Issue History
Date Modified Username Field Change
2007-08-11 22:19 Dragon45 New Issue
2007-08-11 22:19 Dragon45 File Added: infolog.txt
2007-08-12 22:03 imbaczek Note Added: 0001085
2007-08-12 22:03 imbaczek Status new => confirmed
2007-08-12 22:15 imbaczek Note Added: 0001086
2007-08-12 23:01 imbaczek Note Added: 0001088
2007-08-13 00:37 Kloot Note Added: 0001089
2007-08-13 00:37 Kloot Note Edited: 0001089
2007-08-13 08:58 Kloot Note Edited: 0001089
2007-08-13 10:54 imbaczek Status confirmed => resolved
2007-08-13 10:54 imbaczek Resolution open => fixed
2007-08-13 10:54 imbaczek Assigned To => imbaczek
2007-08-13 10:54 imbaczek Note Added: 0001095
2007-08-18 11:12 imbaczek Relationship added related to 0000597
+Issue History