Opened 11 years ago

Closed 9 years ago

#2085 closed defect (needsinfo)

[NEEDSINFO] JavaScript OOM causes segfault on Linux

Reported by: crosstalk Owned by:
Priority: Must Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

When starting a multiplayer game, the client crashes. It reports a JavaScript OOM error then segfaults.

The attachments were created joining another player's game, but both instances crashed.

Attachments (2)

interestinglog.html (527 bytes ) - added by crosstalk 11 years ago.
gdb_bt.txt (1.1 KB ) - added by crosstalk 11 years ago.
Backtrace, obtained via GDB

Download all attachments as: .zip

Change History (9)

by crosstalk, 11 years ago

Attachment: interestinglog.html added

by crosstalk, 11 years ago

Attachment: gdb_bt.txt added

Backtrace, obtained via GDB

comment:1 by B. Guns, 11 years ago

Milestone: BacklogAlpha 14
Priority: Should HaveRelease Blocker

comment:2 by historic_bruno, 11 years ago

Which version of the game are you using, Alpha 13 or building from SVN? Which OS, 32-bit or 64-bit? Does this happen with every multiplayer game you try?

Also the GDB bt isn't really useful since it's missing debug symbols. If you're using a release package, maybe you can install a debug package to get symbols and a more useful bt (for future reference; in this case it doesn't matter so much, since the OOM crash is easily reproduced on *nix).

comment:3 by crosstalk, 11 years ago

Alpha 13, from the Ubuntu 13.04 repositories. It is a 64-bit Linux Mint install. It does not not occur with every multiplayer game -- just this one scenario.

The map was Deep Forest and one player was playing as the Persians -- after changing those two settings, we managed to successfully start a game (I assume the map is more likely to affect the AI players than another player's civilization).

I figured the backtrace wouldn't be useful, but I thought I'd post it anyway. It doesn't appear that there are pre-built Ubuntu packages with debug/GDB symbols available -- some time I might learn how to build my own packages, but it'll probably be a while before I have enough time to do so.

comment:4 by historic_bruno, 11 years ago

Yeah, deep forest is probably more vulnerable to this than other maps, due to the huge number of entities it can have. The good news is in SVN we've increased simulation runtime size from 16MB to 32MB, so I doubt you will have the same error in A14. It's not a fix for the crash, but it means you're less likely to have OOM in the first place :)

(By the way, if you do have time to test, it's pretty easy to check out SVN or git and build, see BuildInstructions - A14 should be out in weeks)

comment:5 by historic_bruno, 11 years ago

Milestone: Alpha 14Alpha 15
Priority: Release BlockerMust Have
Summary: JavaScript OOM and Segfault starting a multiplayer gameJavaScript OOM causes segfault on Linux

See also r13794.

I'm bumping this to A15 and keeping the ticket open because the segfault from lack of handling OOM conditions is the worse problem, no separate ticket exists for that (the closest is #742).

comment:6 by historic_bruno, 10 years ago

Milestone: Alpha 15Backlog

comment:7 by Stan, 9 years ago

Milestone: Backlog
Resolution: needsinfo
Status: newclosed
Summary: JavaScript OOM causes segfault on Linux[NEEDSINFO] JavaScript OOM causes segfault on Linux

Is it still accurate ? We updated spidermonkey so I guess such memory leak are invalid. Closing it as needinfo feel free to reopen it.

Note: See TracTickets for help on using tickets.