std::bad_alloc

std::bad_alloc

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
panthere noire
Posts: 8
Joined: 03 Feb 2008, 03:42

std::bad_alloc

Post 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:

Code: Select all

std::bad_alloc

merci / tanks
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: std::bad_alloc

Post 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.
panthere noire
Posts: 8
Joined: 03 Feb 2008, 03:42

Re: std::bad_alloc

Post by panthere noire »

:shock:
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)

:roll: :?:
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: std::bad_alloc

Post 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?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: std::bad_alloc

Post by Tobi »

Could you attach/upload the replay file with which this happens? (I take it it is 100% reproducable?)
panthere noire
Posts: 8
Joined: 03 Feb 2008, 03:42

Re: std::bad_alloc

Post 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.
panthere noire
Posts: 8
Joined: 03 Feb 2008, 03:42

Re: std::bad_alloc

Post by panthere noire »

la map est correct , mai le problème est toujours la. :(
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Re: std::bad_alloc

Post 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.
shanepardue
Posts: 22
Joined: 14 Jan 2007, 06:39

Re: std::bad_alloc

Post by shanepardue »

I still get this problem on a different machine altogether and with the ubuntu repository. Is this not a common issue?
Post Reply

Return to “Help & Bugs”