UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #2319 G_EdictsGetNext: Assertion `lastEnt < endOfEnts&#039; failed.
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    Battlescape
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    4. Useful
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/2319 Item 2319] imported from sourceforge.net tracker on 2013-01-28 19:30:37

src/game/g_utils.c:81: G_EdictsGetNext: Assertion `lastEnt < endOfEnts&#039; failed.

reported in the irc channel: it happended when I was in mission. It was probably during alien turn when my soldier returned to fire
===== Comments Ported from Sourceforge =====

====== tlh2000 (2010-01-24 17:19:21) ======

stacktrace
====== tlh2000 (2010-01-24 17:20:54) ======

maybe because an ai actor died during the loop?
====== aduke1 (2010-01-25 15:20:11) ======

Probably NOT fixed in r28273 unlike I wrote in the comment :(
====== tlh2000 (2010-01-25 15:24:13) ======

are you sure that this is correct? https://sourceforge.net/apps/trac/ufoai/changeset/28273/ufoai/trunk/src/game/g_client.c
====== aduke1 (2010-01-25 15:34:30) ======

"are you sure that this is correct?"
Yes. If we set ent to the first edict (==world) and not NULL, GetNext will return the next edict as the name implies ;) I stepped into that trap too...

"maybe because an ai actor died during the loop?"
Probably not.
The assert indicates indexing beyond globals.num_edicts.
If an actor dies, the edict is marked as not in use, but not removed.
====== bekoszaf (2010-01-25 16:30:18) ======

definitly not fixed in r28273. Game just crashed:

ufo: src/game/g_utils.c:81: G_EdictsGetNext: Assertion >>lastEnt < endOfEnts

The last ai actor run into sentry fire and probably died. Exactly the same happend so me on another map but with the same situation.

ufo: src/game/g_utils.c:81: G_EdictsGetNext: Zusicherung >>lastEnt < endOfEnts<< nicht erf?llt.
./ufo(Sys_Backtrace+0x1c)[0x565ee9]
./ufo[0x565f4b]
/lib/libc.so.6[0x7f13772e7ea0]
/lib/libc.so.6(gsignal+0x3b)[0x7f13772e7dfb]
/lib/libc.so.6(abort+0x10e)[0x7f13772e91de]
/lib/libc.so.6(__assert_fail+0xef)[0x7f13772e13df]
./base/game.so(G_EdictsGetNext+0xa4)[0x7f13712c3666]
./base/game.so(G_EdictsGetNextInUse+0x29)[0x7f13712c3779]
./base/game.so(G_EdictsGetNextLivingActor+0x2c)[0x7f13712c37b6]
./base/game.so(AI_Run+0x157)[0x7f13712abfef]
./base/game.so(G_RunFrame+0x16a)[0x7f13712bb9a2]
./ufo(SV_RunGameFrame+0x14)[0x52a6c5]
./ufo(SV_Frame+0x72)[0x52cb1e]
./ufo[0x5078f1]
./ufo(Qcommon_Frame+0x70)[0x507db4]
./ufo(main+0x57)[0x564db5]

====== tlh2000 (2010-01-25 20:07:12) ======

should be fixed in r28275
====== bekoszaf (2010-01-27 13:57:22) ======

Seems to work fine with r28275. I stress tested this a lot this morning and the game never crashed because of this any more.
====== sf-robot (2010-02-09 02:20:14) ======

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif