Page 1 of 1
std::bad_alloc
Posted: 05 Feb 2008, 23:19
by panthere noire
Hello / salut
Je ne parviens pas a re-voire la partie: (ryplay game)
Code: Select all
spring /home/tnt/Desktop/080205-Tropical-0.76b1-0.sdf
Using read-write data directory: /home/tnt/.spring/
Using read-only data directory: /usr/share/games/spring/
Using read-only data directory: /usr/lib/spring/
Created server on port 8452
Playing demo from /home/tnt/Desktop/080205-Tropical-0.76b1-0.sdf
Erreur:
merci / tanks
Re: std::bad_alloc
Posted: 06 Feb 2008, 00:49
by Peet
You get that error when spring is unable to allocate memory - usually because your pagefile is too small when it tries to path.
On va obtenir cette erreur quand le Spring ne peut pas allouer assez m├â┬®moire - probablement parce que ton m├â┬®moire virtuel n'est pas assez grand; Spring veux beaucoup de m├â┬®moire quand il fait la chargement.
Re: std::bad_alloc
Posted: 06 Feb 2008, 04:28
by panthere noire
2 go sdram and 400 swapfile (linux)
debian lenny (testing)
Code: Select all
free -m
total used free shared buffers cached
Mem: 2027 1973 53 0 69 1689
-/+ buffers/cache: 214 1812
Swap: 0 0 0
(utilisation actuelle 214 mo)
Code: Select all
lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G80 [GeForce 8800 GTX] (rev a2)
02:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
04:01.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 06)
Bug probable.
Note carte graphique 8800 gtx 768mo ddr3 !
core 2 duo 2,4 ghz (Nvidia)

Re: std::bad_alloc
Posted: 06 Feb 2008, 04:42
by Peet
Try using a larger swapfile, just to be sure. It could be a spring bug of some sort as well though...can you normally play it?
Re: std::bad_alloc
Posted: 06 Feb 2008, 09:55
by Tobi
Could you attach/upload the replay file with which this happens? (I take it it is 100% reproducable?)
Re: std::bad_alloc
Posted: 06 Feb 2008, 18:29
by panthere noire
La map semble être le problème :
Tropical.sd7
les autres map semble fonctionner.
le swap a ├â┬®t├â┬® agrandi:
Code: Select all
free -m
total used free shared buffers cached
Mem: 2027 331 1695 0 13 163
-/+ buffers/cache: 154 1873
Swap: 1325 0 1325
le fichier */demo fonctionne chez quelqu'un d'autres (file is ok)
je vai demander a quelqu'un me redonner la map pour voir si c est pas le fichier qui serai corrompu.
Le problème est 100% re - productible, mai la map semble être en cause, je vai demander a quelqu'un de me la fournir
Merci pour vos r├â┬®ponse.
Re: std::bad_alloc
Posted: 06 Feb 2008, 19:31
by panthere noire
la map est correct , mai le problème est toujours la.

Re: std::bad_alloc
Posted: 22 Mar 2008, 03:29
by shanepardue
I also have the same problem. It seems random and I can't reproduce the problem consistently. 2gb ram, 2gb swap, Ubuntu 7.10, compiled spring myself.
Re: std::bad_alloc
Posted: 03 Aug 2008, 01:24
by shanepardue
I still get this problem on a different machine altogether and with the ubuntu repository. Is this not a common issue?