Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1486 closed bug (fixed (in master))

Crash happening upon monster death

Reported by: chance2 Owned by:
Milestone: 3.3.0 Keywords: blocker


Currently being discussed in forum thread Crash occasionally happens when landing the killing blow on a monster, presumably as a result of its item drops. If you run the game from the command line (or redirect stderr to capture it in a file), you can see the error text, which is: "angband: object/identify.c:132: object_flavor_is_aware: Assertion `o_ptr->kind' failed." By putting in some debugging code, I managed to figure out that the routine that was calling object_flavor_is_aware before the crash was squelch_item_ok. Further debugging code to go one step further out showed that squelch_item_ok was being called by map_info to trigger this bug.

Change History (3)

comment:1 Changed 9 years ago by myshkin

  • Keywords blocker added
  • Milestone changed from Triage to 3.3.0
  • Status changed from new to confirmed

Commit 9fcd10b in staging fixes at least part of this bug. compact_monsters_aux() was moving items around without updating mimics' mimicked_o_idx member. I'm not sure whether there are other ways to get this crash, but I can no longer produce it through summoning mimics and forcing compacting.

comment:2 Changed 9 years ago by myshkin

  • Status changed from confirmed to pending

CunningGabe? found a further necessary update, merged to staging in fd51c57.

comment:3 Changed 9 years ago by magnate

  • Resolution set to fixed
  • Status changed from pending to closed


Note: See TracTickets for help on using tickets.