2025-07-27 02:26 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002170Spring engineGeneralpublic2010-12-13 20:15
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionunable to reproduce 
Product Version 
Target VersionFixed in Version 
Summary0002170: current spring-master hangs on exit
Descriptionafters starting current spring/master and clicking "Test Game", the screen only flickers and after a while it crashes.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (14,519 bytes) 2010-10-10 23:38 -
    LogOutput initialized.
    Spring 0.82+.4.0 (Debug)
    Build date/time: Oct  9 2010 11:35:10
    Available log subsystems: CollisionVolume, unit, ArchiveScanner, VFS-detail, VFS, 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/abma/.springrc"
    [CMyMath::Init] CPU SSE mask: 888, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  0
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 1,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 64bit native mode
    Adding /home/abma/.spring/ to directories
    Skipping already added directory /home/abma/.spring/
    Adding /home/abma/local/spring/master/share/games/spring/ to directories
    Using read-write data directory: /home/abma/.spring/
    Using read-only data directory: /home/abma/local/spring/master/share/games/spring/
    Scanning: /home/abma/local/spring/master/share/games/spring/base
    Scanning: /home/abma/.spring/maps
    Scanning: /home/abma/.spring/mods
    Scanning: /home/abma/.spring/packages
    Supported Video modes: 1680x1050, 1600x1200, 1440x900, 1400x1050, 1366x768, 1360x768, 1280x1024, 1280x960, 1280x800, 1280x768, 1280x720, 1152x864, 1152x648, 1024x768, 800x600, 720x480, 640x480
    Video mode set to 800x600/32bit (windowed)
    [      0] SDL:  1.2.14
    [      0] GL:   3.2.9756 Compatibility Profile Context
    [      0] GL:   ATI Technologies Inc.
    [      0] GL:   ATI Radeon HD 4200
    [      0] GLSL: 1.50
    [      0] GLEW: 1.5.2
    [      0] ATI hacks enabled
    [      0] Joysticks found: 0
    [      0] Joystick 0 not found
    [      0] Connecting to local server
    [      0] Starting GameServer: 8 ms
    [      0] Starting demo recording
    [      0] Using map Altair_Crossing-V1
    [      0] Recording demo demos/20101010_233751_Altair_Crossing-V1_0.82+.4.sdf
    [      0] Using mod Balanced Annihilation mytweaks
    [      0] Using mod archive BA15.sdd
    [      0] Loading client data: 78 ms
    [      0] User number 0 (team 0, allyteam 0)
    [      0] Sound: OpenAL info:
    [      0] Sound:   Vendor:     OpenAL Community
    [      0] Sound:   Version:    1.1 ALSOFT 1.12.854
    [      0] Sound:   Renderer:   OpenAL Soft
    [      0] Sound:   AL Extensions: AL_EXTX_buffer_sub_data AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
    [      0] Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context
    [      0] Sound:                   ALC_EXT_EFX found (required for air absorption): yes
    [      0] Sound:   Device:     PulseAudio Software
    [      0] Sound:   Available Devices:  
    [      0] Sound:                       PulseAudio Software
    [      0] Sound: air absorption enabled: 0.1
    [      0] Loading Radar Icons
    [      0] Loading GameData Definitions
    [      0] Loading all definitions:  0.397000
    [      0] Loading GameData Definitions: 439 ms
    [      0] Loading Sound Definitions
    [      0] Sound:  parsed 25 sounds from gamedata/sounds.lua
    [      0] Loading Sound Definitions: 0 ms
    [      0] Parsing Map Information
    [      0] Loading SMF
    [      0] Loading Map
    [      0] Creating Smooth Height Mesh
    [      0] Creating Smooth Mesh: 696 ms
    [      0] Creating QuadField & CEGs
    [      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 PathCosts [8]
    [      0] Reading Estimate PathCosts [32]
    [      0] [CPathManager] pathing data checksum: d81323dd
    [      0] Creating GroundDrawer
    [      0] Loading Tile Files
    [      0] Loading Tile Map
    [      0] generating MipMaps: 6 ms
    [      0] Creating TreeDrawer
    [      0] Creating Projectile Textures
    [      0] Creating Sky & Water
    [      0] Camera and mouse: 64 ms
    [      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:  Game End            <game_end.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:  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] Failed to load: unit_waypoint_dragger_2.lua  (duplicate name)
    [      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 mod:   Ally Resource Bars  <gui_ally_res.lua>
    [      0] Loaded widget from mod:   AdvPlayersList      <gui_advplayerslist.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:   Auto First Build Facing  <autofirstbuildfacing.lua>
    [      0] Loaded widget from mod:   Autoquit            <autoquit.lua>
    [      0] Loaded widget from mod:   CustomIcons         <unit_customicons.lua>
    [      0] Loaded widget from mod:   Display DPS         <gui_display_dps.lua>
    [      0] BuildBar Warning: you deactivated the "blurApi" widget, please reactivate it.
    [      0] Loaded widget from mod:   BuildBar            <gui_buildbar.lua>
    [      0] Loaded widget from mod:   Red_Drawing         <red_ui_framework_drawing.lua>
    [      0] Loaded widget from mod:   Red Console         <gui_red_console.lua>
    [      0] Loaded widget from mod:   Red Resource Bars   <gui_red_resourcebars.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:   Pause Screen        <gui_pausescreen.lua>
    [      0] Loaded widget from mod:   Point Tracker       <gui_point_tracker.lua>
    [      0] Loaded widget from mod:   MohoExploiter       <unit_moho_exploiter.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:   Share Tracker       <unit_share_tracker.lua>
    [      0] Loaded widget from mod:   Transporting        <gui_transporting.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 user:  RelativeMinimap     <minimap_relative.lua>
    [      0] Loaded widget from user:  Specific Unit Reclaimer  <unit_specific_unit_reclaimer.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:   NoDuplicateOrders   <cmd_no_duplicate_orders.lua>
    [      0] Loaded widget from mod:   Ghost Site          <unit_ghostsite.lua>
    [      0] Loaded widget from mod:   Unit Marker         <unit_marker.lua>
    [      0] Loaded widget from user:  Easy Facing         <gui_easyFacing.lua>
    [      0] Loaded widget from mod:   GameTypeInfo        <gui_game_type_info.lua>
    [      0] Loaded widget from mod:   Improved MetalMakers  <unit_improved_metal_maker.lua>
    [      0] Loaded widget from mod:   Take Reminder       <gui_take_remind.lua>
    [      0] Loaded widget from mod:   Attack AoE          <gui_attack_aoe.lua>
    [      0] Loaded widget from user:  BA Waypoint Dragger  <unit_waypoint_dragger.lua>
    [      0] Loaded widget from mod:   Select n Center!    <gui_center_n_select.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] LolUI is now known as RedUI: if you prefer the old LolUI this can be downloaded to your local widgets
    [      0] Loaded widget from mod:   LolUI               <lolui.lua>
    [      0] Loaded widget from mod:   CustomFormations2   <unit_customformations2.lua>
    [      0] LuaUI v0.3
    [      0] Finalizing
    [      0] Aborted (SIGABRT) in spring 0.82+.4.0 (Debug)
    [      0] Stacktrace:
    [      0] /home/abma/local/spring/master/bin/spring() [0xdc0e47]
    [      0] /lib/libc.so.6(+0x33af0) [0x7f2b721fdaf0]
    [      0] /lib/libc.so.6(gsignal+0x35) [0x7f2b721fda75]
    [      0] /lib/libc.so.6(abort+0x180) [0x7f2b722015c0]
    [      0] /lib/libc.so.6(__assert_fail+0xf1) [0x7f2b721f6941]
    [      0] /home/abma/local/spring/master/bin/spring() [0x7100a7]
    [      0] /home/abma/local/spring/master/bin/spring() [0x70e57e]
    [      0] /home/abma/local/spring/master/bin/spring() [0x70e78d]
    [      0] /home/abma/local/spring/master/bin/spring() [0x70e830]
    [      0] /home/abma/local/spring/master/bin/spring() [0xd89ab9]
    [      0] /home/abma/local/spring/master/bin/spring() [0xd89e77]
    [      0] /home/abma/local/spring/master/bin/spring() [0xd8e4be]
    [      0] /home/abma/local/spring/master/bin/spring() [0xd8f1be]
    [      0] /home/abma/local/spring/master/bin/spring() [0xd8f131]
    [      0] /home/abma/local/spring/master/bin/spring() [0xd8f0f0]
    [      0] /usr/lib/libboost_thread.so.1.40.0(thread_proxy+0x60) [0x7f2b73e04b70]
    [      0] /lib/libpthread.so.0(+0x69ca) [0x7f2b754d59ca]
    [      0] /lib/libc.so.6(clone+0x6d) [0x7f2b722b06fd]
    [      0] Translated Stacktrace:
    [      0] /home/abma/dev/spring/master/rts/System/Platform/Linux/CrashHandler.cpp:249
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    [      0] /usr/include/boost/thread/pthread/recursive_mutex.hpp:63
    [      0] /home/abma/dev/spring/master/rts/Game/LoadScreen.cpp:132
    [      0] /home/abma/dev/spring/master/rts/Game/LoadScreen.cpp:155
    [      0] /home/abma/dev/spring/master/rts/Game/LoadScreen.cpp:212
    [      0] /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1064
    [      0] /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1197
    [      0] /home/abma/dev/spring/master/rts/System/Main.cpp:54
    [      0] /usr/include/boost/bind/bind.hpp:386
    [      0] /usr/include/boost/bind/bind_template.hpp:21
    [      0] /usr/include/boost/thread/detail/thread.hpp:57
    [      0] ??:0
    [      0] ??:0
    [      0] ??:0
    
    txt file icon infolog.txt (14,519 bytes) 2010-10-10 23:38 +
  • png file icon shot1.png (98,652 bytes) 2010-10-11 00:08 -
    png file icon shot1.png (98,652 bytes) 2010-10-11 00:08 +
  • png file icon shot2.png (108,711 bytes) 2010-10-11 00:08 -
    png file icon shot2.png (108,711 bytes) 2010-10-11 00:08 +

-Relationships
related to 0002167resolvedabma crash at start with 0.82.3-759-g17eb3f0 
related to 0002178resolvedhoijui Content Error is not always thrown for missing s3o textures 
+Relationships

-Notes

~0005714

Kloot (developer)

Last edited: 2010-10-11 00:15

Caused by http://github.com/spring/spring/commit/f801d303cad52ca6dd752a4bbba97b78ef6f4777 (as is 2167).

~0005715

abma (administrator)

Last edited: 2010-10-11 00:19

gdb stacktrace is slightly more verbose:

(gdb) bt all
#0 0x00007ffff4655a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff46595c0 in *__GI_abort () at abort.c:92
#2 0x00007ffff464e941 in *__GI___assert_fail (assertion=0xefdbf4 "!pthread_mutex_destroy(&m)",
    file=<value optimized out>, line=62, function=0xefe1a0 "boost::recursive_mutex::~recursive_mutex()") at assert.c:81
0000003 0x00000000007100a7 in ~recursive_mutex (this=0x7fffd417ac30, __in_chrg=<value optimized out>)
    at /usr/include/boost/thread/pthread/recursive_mutex.hpp:62
0000004 0x000000000070e57e in ~CLoadScreen (this=0x7fffd417abe0, __in_chrg=<value optimized out>)
    at /home/abma/dev/spring/master/rts/Game/LoadScreen.cpp:132
0000005 0x000000000070e78d in CLoadScreen::DeleteInstance () at /home/abma/dev/spring/master/rts/Game/LoadScreen.cpp:154
#6 0x000000000070e830 in CLoadScreen::Update (this=0x7fffd417abe0)
    at /home/abma/dev/spring/master/rts/Game/LoadScreen.cpp:209
#7 0x0000000000d89ab9 in SpringApp::Update (this=0x7fffde912c80)
    at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1064
#8 0x0000000000d89e77 in SpringApp::Run (this=0x7fffde912c80, argc=5, argv=0x7fffffffe7b8)
    at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1197
#9 0x0000000000d8e4be in MainFunc (argc=5, argv=0x7fffffffe7b8, ret=0x7fffffffe68c)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:54
0000010 0x0000000000d8f1be in boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> >::operator()<void (*)(int, char**, int*), boost::_bi::list0> (this=0x24439a0, f=@0x2443998, a=...)
    at /usr/include/boost/bind/bind.hpp:385
#11 0x0000000000d8f131 in boost::_bi::bind_t<void, void (*)(int, char**, int*), boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> > >::operator() (this=0x2443998)
    at /usr/include/boost/bind/bind_template.hpp:20
---Type <return> to continue, or q <return> to quit---
0000012 0x0000000000d8f0f0 in boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(int, char**, int*), boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> > > >::run (this=0x2443890)
    at /usr/include/boost/thread/detail/thread.hpp:56
0000013 0x00007ffff625cb70 in thread_proxy () from /usr/lib/libboost_thread.so.1.40.0
0000014 0x00007ffff792d9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#15 0x00007ffff47086fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

~0005717

zerver (reporter)

Better now, but not fixed.

http://github.com/spring/spring/commit/65c386ad26586916d6b7259cf3ab965511d5e79a

I see some graphical glitches in the load screen during creation of unit textures. The glitch seems to be caused by the loading thread switching frame buffers. The code at FarTextureHandler.cpp:58 for instance. Can anyone else see some glithes, or is my driver bugged?

~0005719

abma (administrator)

i got this "crash" once:
Loading LuaRules
X Error of failed request: BadGC (invalid GC parameter)
  Major opcode of failed request: 60 (X_FreeGC)
  Resource id in failed request: 0x3c0007e
  Serial number of failed request: 430
  Current serial number in output stream: 1846
Lua LoadCode pcall error = 2, LuaRules/main.lua, error = 2, LuaRules/gadgets.lua, error = 4, LuaGadgets/setupdefs.lua, not enough memory
Loading LuaGaia
AL lib: ALc.c:1879: exit(): closing 1 Device
AL lib: ALc.c:1808: alcCloseDevice(): destroying 1 Context(s)
AL lib: ALc.c:1420: alcDestroyContext(): deleting 128 Source(s)
AL lib: ALc.c:1818: alcCloseDevice(): deleting 251 Buffer(s)

~0005720

abma (administrator)

Last edited: 2010-10-11 20:56

and after your patch it always hangs when shutting down spring: but it seems to work, i don't see glithes
(gdb) bt
#0 pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00007f84028ac7f9 in boost::thread::join() ()
   from /usr/lib/libboost_thread.so.1.40.0
#2 0x0000000000d8e8b0 in Run (argc=1, argv=0x7fff488787d8)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:71
0000003 0x0000000000d8e915 in main (argc=1, argv=0x7fff488787d8)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:89

~0005721

zerver (reporter)

Better now? Otherwise plz show me a "bt full".

~0005722

abma (administrator)

Last edited: 2010-10-11 23:24

still hangs :-/

edit: with 100% cpu!

(gdb) bt full
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1 0x00007f0708c847f9 in boost::thread::join() () from /usr/lib/libboost_thread.so.1.40.0
No symbol table info available.
#2 0x0000000000d8e8b0 in Run (argc=1, argv=0x7fff07498db8) at /home/abma/dev/spring/master/rts/System/Main.cpp:71
        ret = 0
        mainThread = 0x2dcd850
0000003 0x0000000000d8e915 in main (argc=1, argv=0x7fff07498db8) at /home/abma/dev/spring/master/rts/System/Main.cpp:89
No locals.
(gdb)

~0005723

abma (administrator)

maybe this is more usefull:

(gdb) bt all
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1 0x00007f1ade1997f9 in boost::thread::join() () from /usr/lib/libboost_thread.so.1.40.0
#2 0x0000000000d8e8bc in Run (argc=1, argv=0x7fff6c2ccec8) at /home/abma/dev/spring/master/rts/System/Main.cpp:71
0000003 0x0000000000d8e921 in main (argc=1, argv=0x7fff6c2ccec8) at /home/abma/dev/spring/master/rts/System/Main.cpp:89
(gdb) step



^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7f1ac6850710 (LWP 3140)]
0x00007f1adc637f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
    in ../sysdeps/unix/sysv/linux/poll.c
(gdb) bt all
#0 0x00007f1adc637f83 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007f1adb11b29a in ?? () from /usr/lib/libxcb.so.1
#2 0x00007f1adb11b7d7 in ?? () from /usr/lib/libxcb.so.1
0000003 0x00007f1adb11ba85 in xcb_writev () from /usr/lib/libxcb.so.1
0000004 0x00007f1adec0e6fa in _XSend () from /usr/lib/libX11.so.6
0000005 0x00007f1adec0e839 in _XReply () from /usr/lib/libX11.so.6
#6 0x00007f1adec022c3 in XSync () from /usr/lib/libX11.so.6
#7 0x00007f1adfd75db7 in ?? () from /usr/lib/fglrx/libGL.so.1
#8 0x00007f1ac50339ac in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#9 0x00007f1ac50340c9 in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
0000010 0x00007f1adfd7bd2d in ?? () from /usr/lib/fglrx/libGL.so.1
#11 0x00007f1adfd7bd6a in ?? () from /usr/lib/fglrx/libGL.so.1
0000012 0x00007f1adebe8295 in _XFreeExtData () from /usr/lib/libX11.so.6
0000013 0x00007f1adebf587d in _XFreeDisplayStructure () from /usr/lib/libX11.so.6
0000014 0x00007f1adebe0e7f in XCloseDisplay () from /usr/lib/libX11.so.6
#15 0x00007f1adfabd2f4 in ?? () from /usr/lib/libSDL-1.2.so.0
#16 0x00007f1adfaaec12 in SDL_VideoQuit () from /usr/lib/libSDL-1.2.so.0
#17 0x00007f1adfa87655 in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
#18 0x00007f1adfa876ee in SDL_Quit () from /usr/lib/libSDL-1.2.so.0
#19 0x0000000000d8a142 in SpringApp::Shutdown () at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1243
0000020 0x0000000000d8a02f in SpringApp::Run (this=0x7f1ac684fc80, argc=1, argv=0x7fff6c2ccec8) at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1221
#21 0x0000000000d8e4ba in MainFunc (argc=1, argv=0x7fff6c2ccec8, ret=0x7fff6c2ccd9c) at /home/abma/dev/spring/master/rts/System/Main.cpp:54
#22 0x0000000000d8f1ba in boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> >::operator()<void (*)(int, char**, int*), boost::_bi::list0> (this=0x2d099a0,
    f=@0x2d09998, a=...) at /usr/include/boost/bind/bind.hpp:385
#23 0x0000000000d8f12d in boost::_bi::bind_t<void, void (*)(int, char**, int*), boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> > >::operator() (this=0x2d09998)
    at /usr/include/boost/bind/bind_template.hpp:20
0000024 0x0000000000d8f0ec in boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(int, char**, int*), boost::_bi::list3<boost::_bi::value<int>, boost::_bi::value<char**>, boost::_bi::value<int*> > > >::run (this=0x2d09890) at /usr/include/boost/thread/detail/thread.hpp:56
#25 0x00007f1ade198b70 in thread_proxy () from /usr/lib/libboost_thread.so.1.40.0
0000026 0x00007f1adf8699ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
0000027 0x00007f1adc6446fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#28 0x0000000000000000 in ?? ()

~0005724

abma (administrator)

strange: i commented this line out:
rts/System/SpringApp.cpp:1243
SDL_Quit()

and it works...

~0005748

abma (administrator)

Last edited: 2010-10-16 14:35

with this commit, hang is gone on shutdown in single threaded:
http://github.com/spring/spring/commit/2b45d558154233d3669e59d7f5e571e0a7bd217c

but i get an
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "??"
      after 145 requests (144 known processed) with 0 events remaining.

but no stacktrace or so...

zerver, is this commit fine? (ok, this solves not the real reason for the hang, but maybe helps to find why it hangs...)

~0005750

zerver (reporter)

Actually I have no idea, but that error message is a bit worrying. Maybe your graphics driver is the root cause of the whole problem. Did you try different drivers? It runs fine here, I did not have any hang on exit.

~0005775

hoijui (reporter)

while abma has ATI, i do have NV. i get the hang still, when spring tries to exit after a content_error. see eg http://springrts.com/mantis/view.php?id=2178 for a bt full. i guess you can also reproduce it with a hard-coded content_error somewhere.

~0005850

abma (administrator)

http://bugzilla.libsdl.org/show_bug.cgi?id=922

zerver, which version of sdl do you have installed?

$ lsb_release -d
Description: Ubuntu 10.04.1 LTS

$ grep SDL ~/.spring/infolog.txt
[ 0] SDL: 1.2.14

~0005852

zerver (reporter)

[ 0] SDL: 1.2.10

~0005853

hoijui (reporter)

i have SDL: 1.2.13

~0006070

abma (administrator)

seems to be fixed... i didn't get a crash at exit/hang on start...
+Notes

-Issue History
Date Modified Username Field Change
2010-10-10 23:38 abma New Issue
2010-10-10 23:38 abma File Added: infolog.txt
2010-10-11 00:08 abma File Added: shot1.png
2010-10-11 00:08 abma File Added: shot2.png
2010-10-11 00:09 Kloot Relationship added related to 0002167
2010-10-11 00:12 Kloot Note Added: 0005714
2010-10-11 00:15 abma Note Edited: 0005714
2010-10-11 00:17 abma Summary current spring-master branch crashes when starting without parameters + clicking on "Test Game" => current spring-master branch crashes in loadscreen
2010-10-11 00:18 abma Note Added: 0005715
2010-10-11 00:19 abma Note Edited: 0005715
2010-10-11 18:04 zerver Note Added: 0005717
2010-10-11 20:55 abma Note Added: 0005719
2010-10-11 20:56 abma Note Added: 0005720
2010-10-11 20:56 abma Note Edited: 0005720
2010-10-11 21:31 zerver Note Added: 0005721
2010-10-11 23:22 abma Note Added: 0005722
2010-10-11 23:24 abma Note Edited: 0005722
2010-10-11 23:38 abma Note Added: 0005723
2010-10-11 23:51 abma Note Added: 0005724
2010-10-16 13:40 abma Note Added: 0005748
2010-10-16 14:30 abma Note Edited: 0005748
2010-10-16 14:33 abma Note Edited: 0005748
2010-10-16 14:35 abma Note Edited: 0005748
2010-10-17 02:58 zerver Note Added: 0005750
2010-10-21 15:07 hoijui Relationship added parent of 0002178
2010-10-21 15:07 hoijui Relationship deleted parent of 0002178
2010-10-21 15:07 hoijui Relationship added related to 0002178
2010-10-21 15:16 hoijui Note Added: 0005775
2010-11-08 04:53 abma Note Added: 0005850
2010-11-08 22:09 abma Summary current spring-master branch crashes in loadscreen => current spring-master hangs on exit
2010-11-09 02:08 zerver Note Added: 0005852
2010-11-09 11:42 hoijui Note Added: 0005853
2010-12-13 20:15 abma Note Added: 0006070
2010-12-13 20:15 abma Status new => resolved
2010-12-13 20:15 abma Resolution open => unable to reproduce
2010-12-13 20:15 abma Assigned To => abma
+Issue History