spring crashes on start with "realloc(): invalid next size"

spring crashes on start with "realloc(): invalid next size"

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Aste88
Posts: 2
Joined: 10 May 2010, 12:25

spring crashes on start with "realloc(): invalid next size"

Post by Aste88 »

Hi everyone,
I've spent last four days trying to install and configure spring with no success.

My machine is a HP pavillion dv6790el laptop with nVidia GeForce 8400M GS video card running ubuntu 10.04 LTS.

I first installed the spring-engine and spring-lobby packages from ubuntu's repo, spring seemed to work fine if but springlobby couldn't start the game. I then purged the packages and proceeded to compile both programs from source.
Compilation went fine except a few warnings, now springlobby works better but the game still won't start.

This is the error I'm getting (running in single player mode, I haven't tried yet multiplayer):

Code: Select all

aste@dv6790el:~$ springlobby 

(springlobby:4168): Gtk-CRITICAL **: gtk_window_move: assertion `GTK_IS_WINDOW (window)' failed

(springlobby:4168): Gtk-CRITICAL **: gtk_window_resize: assertion `GTK_IS_WINDOW (window)' failed

(springlobby:4168): Gtk-CRITICAL **: gtk_window_unmaximize: assertion `GTK_IS_WINDOW (window)' failed
LogOutput initialized.
Spring 0.81.2.1
Build date/time: May  9 2010 22:35:53
Available log subsystems: ArchiveScanner, VFS-detail, VFS, unitsync
Enabled log subsystems: unitsync
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Using read-write data directory: /home/aste/.spring/
Using read-only  data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/aste/.spring/maps
Scanning: /home/aste/.spring/base
Scanning: /home/aste/.spring/mods
unitsync: loaded, 0.81.2.1
Using read-write data directory: /home/aste/.spring/
Using read-only  data directory: /usr/local/share/games/spring/
Scanning: /usr/local/share/games/spring/base
Scanning: /home/aste/.spring/maps
Scanning: /home/aste/.spring/base
Scanning: /home/aste/.spring/mods
unitsync: initialized, 0.81.2.1
unitsync: hosting
unitsync: archive checksum: /home/aste/.spring/maps/1944_Kiev_V4.sd7
unitsync: archive checksum: /home/aste/.spring/maps/2 Continents Remake.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Data_Cache_L1.sd7
unitsync: archive checksum: /home/aste/.spring/maps/DeltaSiegeDry.sd7
unitsync: archive checksum: /home/aste/.spring/maps/DeltaSiegeX.sd7
unitsync: archive checksum: /home/aste/.spring/maps/DigitalDivide_PT2.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Direct_Memory_Access_0.5c_beta.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Direct_Memory_Access_0.5e_beta.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Emain_Macha.sd7
unitsync: archive checksum: /home/aste/.spring/maps/FolsomDamFinal.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Kappa_Basin.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Major_Madness3.0.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Marble_Madness_Map.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Mearth_v4.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Palladium_0.5_(beta).sd7
unitsync: archive checksum: /home/aste/.spring/maps/Small_Supreme_Battlefield_V2.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Speed_Balls_16_Way.sdz
unitsync: archive checksum: /home/aste/.spring/maps/Spooler_Buffer_0.5_beta.sd7
unitsync: archive checksum: /home/aste/.spring/maps/TheRockFinal.sd7
unitsync: archive checksum: /home/aste/.spring/maps/Tropical.sd7
unitsync: archive checksum: BA712.sd7
unitsync: archive checksum: ca-stable-7761.sdz
unitsync: archive checksum: Kernel_Panic_3.6.sd7
unitsync: archive checksum: NOTA162.sd7
unitsync: archive checksum: S44Lyuban_v106.sdz
unitsync: archive checksum: XTAPEV96.sdz
unitsync: initfindvfs: Saves/*.ssf
unitsync: findfilesvfs: 0
unitsync: initfindvfs: demos/*.sdf
unitsync: findfilesvfs: 0
unitsync: findfilesvfs: 1
unitsync: findfilesvfs: 2
unitsync: findfilesvfs: 3
unitsync: findfilesvfs: 4
unitsync: findfilesvfs: 5
unitsync: initfindvfs: demos/*.sdf
unitsync: findfilesvfs: 0
unitsync: findfilesvfs: 1
unitsync: findfilesvfs: 2
unitsync: findfilesvfs: 3
unitsync: findfilesvfs: 4
unitsync: findfilesvfs: 5
unitsync: adding archive: /home/aste/.spring/mods/BA712.sd7
unitsync: adding archive: /usr/local/share/games/spring/base/springcontent.sdz
unitsync: adding archive: /usr/local/share/games/spring/base/spring/bitmaps.sdz
unitsync: parseOption: key startmetal exists already
unitsync: parseOption: key startenergy exists already
*** glibc detected *** /usr/local/bin/spring: realloc(): invalid next size: 0x000000000239f6b0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f68fc5195b6]
/lib/libc.so.6(+0x7dd66)[0x7f68fc51fd66]
/lib/libc.so.6(realloc+0xf0)[0x7f68fc520080]
/usr/lib/nvidia-current/libGL.so.1(+0x46849)[0x7f68ff41e849]
======= Memory map: ========
00400000-01148000 r-xp 00000000 08:01 14053365                           /usr/local/bin/spring
01348000-0134a000 r--p 00d48000 08:01 14053365                           /usr/local/bin/spring
0134a000-0134d000 rw-p 00d4a000 08:01 14053365                           /usr/local/bin/spring
0134d000-01896000 rw-p 00000000 00:00 0 
0239f000-023f7000 rw-p 00000000 00:00 0                                  [heap]
7f68e8000000-7f68e8021000 rw-p 00000000 00:00 0 
7f68e8021000-7f68ec000000 ---p 00000000 00:00 0 
7f68ef3af000-7f68ef3b0000 ---p 00000000 00:00 0 
7f68ef3b0000-7f68efbb0000 rw-p 00000000 00:00 0 
7f68f3590000-7f68f359c000 r-xp 00000000 08:01 3670127                    /lib/libnss_files-2.11.1.so
7f68f359c000-7f68f379b000 ---p 0000c000 08:01 3670127                    /lib/libnss_files-2.11.1.so
7f68f379b000-7f68f379c000 r--p 0000b000 08:01 3670127                    /lib/libnss_files-2.11.1.so
7f68f379c000-7f68f379d000 rw-p 0000c000 08:01 3670127                    /lib/libnss_files-2.11.1.so
7f68f379d000-7f68f37a7000 r-xp 00000000 08:01 3670137                    /lib/libnss_nis-2.11.1.so
7f68f37a7000-7f68f39a6000 ---p 0000a000 08:01 3670137                    /lib/libnss_nis-2.11.1.so
7f68f39a6000-7f68f39a7000 r--p 00009000 08:01 3670137                    /lib/libnss_nis-2.11.1.so
7f68f39a7000-7f68f39a8000 rw-p 0000a000 08:01 3670137                    /lib/libnss_nis-2.11.1.so
7f68f39a8000-7f68f39b0000 r-xp 00000000 08:01 3670123                    /lib/libnss_compat-2.11.1.so
7f68f39b0000-7f68f3baf000 ---p 00008000 08:01 3670123                    /lib/libnss_compat-2.11.1.so
7f68f3baf000-7f68f3bb0000 r--p 00007000 08:01 3670123                    /lib/libnss_compat-2.11.1.so
7f68f3bb0000-7f68f3bb1000 rw-p 00008000 08:01 3670123                    /lib/libnss_compat-2.11.1.so
7f68f3db7000-7f68f3dce000 r-xp 00000000 08:01 13896597                   /usr/lib/libbluetooth.so.3.5.0
7f68f3dce000-7f68f3fcd000 ---p 00017000 08:01 13896597                   /usr/lib/libbluetooth.so.3.5.0
7f68f3fcd000-7f68f3fce000 r--p 00016000 08:01 13896597                   /usr/lib/libbluetooth.so.3.5.0
7f68f3fce000-7f68f3fd0000 rw-p 00017000 08:01 13896597                   /usr/lib/libbluetooth.so.3.5.0
7f68f3fd0000-7f68f3fe4000 r-xp 00000000 08:01 13897827                   /usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
7f68f3fe4000-7f68f41e3000 ---p 00014000 08:01 13897827                   /usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
7f68f41e3000-7f68f41e4000 r--p 00013000 08:01 13897827                   /usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
7f68f41e4000-7f68f41e5000 rw-p 00014000 08:01 13897827                   /usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
7f68f41e5000-7f68f41f7000 r-xp 00000000 08:01 13897089                   /usr/lib/libjack.so.0.0.28
7f68f41f7000-7f68f43f6000 ---p 00012000 08:01 13897089                   /usr/lib/libjack.so.0.0.28
7f68f43f6000-7f68f43f7000 r--p 00011000 08:01 13897089                   /usr/lib/libjack.so.0.0.28
7f68f43f7000-7f68f43f9000 rw-p 00012000 08:01 13897089                   /usr/lib/libjack.so.0.0.28
7f68f43f9000-7f68f4401000 rw-p 00000000 00:00 0 
7f68f4401000-7f68f44db000 r-xp 00000000 08:01 13896566                   /usr/lib/libasound.so.2.0.0
7f68f44db000-7f68f46db000 ---p 000da000 08:01 13896566                   /usr/lib/libasound.so.2.0.0
7f68f46db000-7f68f46e1000 r--p 000da000 08:01 13896566                   /usr/lib/libasound.so.2.0.0
7f68f46e1000-7f68f46e2000 rw-p 000e0000 08:01 13896566                   /usr/lib/libasound.so.2.0.0
7f68f46e2000-7f68f470d000 r-xp 00000000 08:01 13897277                   /usr/lib/libportaudio.so.2.0.0
7f68f470d000-7f68f490c000 ---p 0002b000 08:01 13897277                   /usr/lib/libportaudio.so.2.0.0
7f68f490c000-7f68f490d000 r--p 0002a000 08:01 13897277                   /usr/lib/libportaudio.so.2.0.0
7f68f490d000-7f68f490e000 rw-p 0002b000 08:01 13897277                   /usr/lib/libportaudio.so.2.0.0
7f68f490e000-7f68f490f000 rw-p 00000000 00:00 0 
7f68f490f000-7f68f4ad2000 r-xp 00000000 08:01 13897453                   /usr/lib/libvorbisenc.so.2.0.6
7f68f4ad2000-7f68f4cd2000 ---p 001c3000 08:01 13897453                   /usr/lib/libvorbisenc.so.2.0.6
7f68f4cd2000-7f68f4ce9000 r--p 001c3000 08:01 13897453                   /usr/lib/libvorbisenc.so.2.0.6
7f68f4ce9000-7f68f4cea000 rw-p 001da000 08:01 13897453                   /usr/lib/libvorbisenc.so.2.0.6
7f68f4cea000-7f68f4d33000 r-xp 00000000 08:01 13896436                   /usr/lib/libFLAC.so.8.2.0
7f68f4d33000-7f68f4f33000 ---p 00049000 08:01 13896436                   /usr/lib/libFLAC.so.8.2.0
7f68f4f33000-7f68f4f34000 r--p 00049000 08:01 13896436                   /usr/lib/libFLAC.so.8.2.0
7f68f4f34000-7f68f4f35000 rw-p 0004a000 08:01 13896436                   /usr/lib/libFLAC.so.8.2.0
7f68f4f35000-7f68f4f4c000 r-xp 00000000 08:01 3670121                    /lib/libnsl-2.11.1.so
7f68f4f4c000-7f68f514b000 ---p 00017000 08:01 3670121                    /lib/libnsl-2.11.1.so
7f68f514b000-7f68f514c000 r--p 00016000 08:01 3670121                    /lib/libnsl-2.11.1.so
7f68f514c000-7f68f514d000 rw-p 00017000 08:01 3670121                    /lib/libnsl-2.11.1.so
7f68f514d000-7f68f514f000 rw-p 00000000 00:00 0 
7f68f514f000-7f68f5153000 r-xp 00000000 08:01 3670203                    /lib/libuuid.so.1.3.0
7f68f5153000-7f68f5352000 ---p 00004000 08:01 3670203                    /lib/libuuid.so.1.3.0
7f68f5352000-7f68f5353000 r--p 00003000 08:01 3670203                    /lib/libuuid.so.1.3.0
7f68f5353000-7f68f5354000 rw-p 00004000 08:01 3670203                    /lib/libuuid.so.1.3.0
7f68f5354000-7f68f5391000 r-xp 00000000 08:01 3670073                    /lib/libdbus-1.so.3.4.0
7f68f5391000-7f68f5591000 ---p 0003d000 08:01 3670073                    /lib/libdbus-1.so.3.4.0
7f68f5591000-7f68f5592000 r--p 0003d000 08:01 3670073                    /lib/libdbus-1.so.3.4.0
7f68f5592000-7f68f5593000 rw-p 0003e000 08:01 3670073                    /lib/libdbus-1.so.3.4.0Aborted
This error happens with any map and mod (and bot), after a few try sometimes the game starts but dies before loading with the following error:

Code: Select all

Segmentation fault (SIGSEGV) in spring 0.81.2.1
Stacktrace:
/usr/local/bin/spring() [0xd45255]
/lib/libc.so.6(+0x33af0) [0x7fa752952af0]
/usr/local/bin/spring(_ZNKSt4lessIiEclERKiS2_+0x14) [0x71eb3e]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(_ZNSt8_Rb_treeIiSt4pairIKiSt6vectorItSaItEEESt10_Select1stIS5_ESt4lessIiESaIS5_EE17_M_insert_unique_ESt23_Rb_tree_const_iteratorIS5_ERKS5_+0x88) [0x7fa722373f6c]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(_ZNSt3mapIiSt6vectorItSaItEESt4lessIiESaISt4pairIKiS2_EEE6insertESt17_Rb_tree_iteratorIS7_ERKS7_+0x3e) [0x7fa722371d7e]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(_ZNSt3mapIiSt6vectorItSaItEESt4lessIiESaISt4pairIKiS2_EEEixERS6_+0xd7) [0x7fa722370585]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(+0xf2f7e) [0x7fa72236cf7e]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(+0xf195a) [0x7fa72236b95a]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(+0xce568) [0x7fa722348568]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(+0x123f0e) [0x7fa72239df0e]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(+0x1238a1) [0x7fa72239d8a1]
/usr/local/share/games/spring/AI/Skirmish/E323AI/3.18.1/libSkirmishAI.so(handleEvent+0x65) [0x7fa722397afe]
/usr/local/bin/spring() [0xde2283]
/usr/local/bin/spring() [0xe0f45a]
/usr/local/bin/spring() [0xe221b5]
/usr/local/bin/spring() [0xdd84ed]
/usr/local/bin/spring() [0xe24299]
/usr/local/bin/spring() [0x7e26b2]
/usr/local/bin/spring() [0x70cf9b]
/usr/local/bin/spring() [0x70daf2]
/usr/local/bin/spring() [0x709593]
/usr/local/bin/spring() [0xd35267]
/usr/local/bin/spring() [0xd355e1]
/usr/local/bin/spring() [0xce0a6e]
/usr/local/bin/spring() [0xce0d71]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7fa75293dc4d]
/usr/local/bin/spring() [0x6ec109]
Translated Stacktrace:
AL lib: ALc.c:1874: exit(): closing 1 Device
AL lib: ALc.c:1798: alcCloseDevice(): destroying 1 Context(s)
AL lib: ALc.c:1808: alcCloseDevice(): deleting 251 Buffer(s)
I hope I've provided enough infos and I apologize for any lexical mistake I might have made (I'm Italian).
Any help would be very appreciated!
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: spring crashes on start with "realloc(): invalid next size"

Post by hoijui »

hey! :-)
in the future, please always give complete infologs, and attach them as file or through pastebin.com.
springlobby had a bug in version.. 0.79 (i think), which made spring crash in singleplayer games. sounds like you suffered from that. this is now fixed though, and you seem to have compiled a version in which it is fixed already.

so you could remove the spring you compiled yourself (/usr/local/ stuff), and try the default spring from ubuntu with the self compiled springlobby. this seems not to be your problem though. it looks like a GFK card/driver related crash (the first one, second is in the AI). so using different drivers, or different graphic settings for spring might help.
Aste88
Posts: 2
Joined: 10 May 2010, 12:25

Re: spring crashes on start with "realloc(): invalid next size"

Post by Aste88 »

I've found a solution by installing the nVidia driver from their website (195.36.24 instead of 195.36.15).

Basically you have to remove and blacklist the new 2d nouveu driver and any nvidia driver installed from the repository, then stop the X server and run the executable downloaded from http://www.nvidia.com/object/unix.html.

Works great now!
Post Reply

Return to “Help & Bugs”