std::bad_alloc

std::bad_alloc

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

std::bad_alloc

Post by KDR_11k »

Is there any investigation into the std::bad_alloc error? It seems to appear randomly in mid-game (independent of the mod used). When it happens there's only a message box saying "std::bad_alloc", no stacktrace is written. AFAIK in a multiplayer game all players receive the error simultaneously if it happens.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: std::bad_alloc

Post by imbaczek »

memory leak somewhere?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: std::bad_alloc

Post by lurker »

So, this may be the same bug, it may not, but meh.
.give a block of units that overlaps some enemy units, and also is large enough that it would go off the edge of the map. Instant crash for host, and bad_alloc for others, with what looks like memory corruption.
Post Reply

Return to “Engine”