project-navigation
Personal tools

Author Topic: [Fixed] Surprising critical errors during the mission.  (Read 3043 times)

Offline Halleth

  • Rookie
  • ***
  • Posts: 52
    • View Profile
[Fixed] Surprising critical errors during the mission.
« on: December 06, 2009, 11:08:42 am »
Actor "A" without TU was chosen. I wanted to click on actor "B". however, I missed and I clicked one tile too far.

What should happen: nothing.
What happened: kick with the message:

ufo: src/common/cmodel.c:2026: Grid_MoveLength: Assertion `to[2] < 8' failed.

Tile was at the same level, 1/4 map away from current actor.

I won't be able to reproduce it easily, though.


I encountered also another problem. It ends with a different error code and shows up without any assertions. It happens once per two played maps so very often. I try to move an actor and the game suddenly crashes.


/*** Backtrace removed ***/
« Last Edit: December 09, 2009, 10:03:37 pm by Halleth »

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Surprising critical errors during the mission.
« Reply #1 on: December 06, 2009, 06:33:24 pm »
It would be nice if you could translate offsets to function names and line numbers via addr2line.

-geever

Offline Halleth

  • Rookie
  • ***
  • Posts: 52
    • View Profile
Re: Surprising critical errors during the mission.
« Reply #2 on: December 06, 2009, 10:51:27 pm »
Meanwhile, I updated UFO:AI so addr2line wouldn't work. However, I encountered the same problem in the most recent revision (r27407):

Halleth has taken control over team 1.
ufoai_2.3/src/ports/unix/unix_main.c:493
ufoai_2.3/src/ports/unix/unix_main.c:519
/lib/libc.so.6[0x7f14fac83040]
./base/game.so(G_ActorDoTurn+0x14)[0x7f14f05fb384]
./base/game.so(G_ClientMove+0xb50)[0x7f14f0612b03]
./base/game.so(G_ClientAction+0x12f)[0x7f14f0603f7f]
ufoai_2.3/src/server/sv_user.c:262
ufoai_2.3/src/server/sv_main.c:435
ufoai_2.3/src/common/net.c:457
ufoai_2.3/src/common/common.c:1156
ufoai_2.3/src/ports/linux/linux_main.c:53
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f14fac6e5a6]
/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
ufoai_2.3/src/ports/unix/unix_main.c:493
ufoai_2.3/src/ports/unix/unix_main.c:87
ufoai_2.3/src/ports/unix/unix_main.c:526
/lib/libc.so.6[0x7f14fac83040]
./base/game.so(G_ActorDoTurn+0x14)[0x7f14f05fb384]
./base/game.so(G_ClientMove+0xb50)[0x7f14f0612b03]
./base/game.so(G_ClientAction+0x12f)[0x7f14f0603f7f]
ufoai_2.3/src/server/sv_user.c:262
ufoai_2.3/src/server/sv_main.c:435
ufoai_2.3/src/common/net.c:457
ufoai_2.3/src/common/common.c:1156
ufoai_2.3/src/ports/linux/linux_main.c:53
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f14fac6e5a6]
/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
Error: Received signal 11.



Also happened during UFO turn:


Team 1 ended round, team 7's round started!
ufoai_2.3/src/ports/unix/unix_main.c:493
ufoai_2.3/src/ports/unix/unix_main.c:519
/lib/libc.so.6[0x7fd7f70dd040]
./base/game.so(G_ActorDoTurn+0x14)[0x7fd7ed1c3384]
./base/game.so(G_ClientMove+0xb50)[0x7fd7ed1dab03]
./base/game.so[0x7fd7ed1c74d7]
./base/game.so(AI_ActorThink+0x40c)[0x7fd7ed1c7a8f]
./base/game.so(AI_Run+0x18c)[0x7fd7ed1c7db7]
./base/game.so(G_RunFrame+0x16e)[0x7fd7ed1d7aec]
ufoai_2.3/src/server/sv_game.c:418
ufoai_2.3/src/server/sv_main.c:775
ufoai_2.3/src/common/common.c:984
ufoai_2.3/src/common/common.c:1132
ufoai_2.3/src/ports/linux/linux_main.c:53
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fd7f70c85a6]
/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
ufoai_2.3/src/ports/unix/unix_main.c:493
ufoai_2.3/src/ports/unix/unix_main.c:87
ufoai_2.3/src/ports/unix/unix_main.c:526
/lib/libc.so.6[0x7fd7f70dd040]
./base/game.so(G_ActorDoTurn+0x14)[0x7fd7ed1c3384]
./base/game.so(G_ClientMove+0xb50)[0x7fd7ed1dab03]
./base/game.so[0x7fd7ed1c74d7]
./base/game.so(AI_ActorThink+0x40c)[0x7fd7ed1c7a8f]
./base/game.so(AI_Run+0x18c)[0x7fd7ed1c7db7]
./base/game.so(G_RunFrame+0x16e)[0x7fd7ed1d7aec]
ufoai_2.3/src/server/sv_game.c:418
ufoai_2.3/src/server/sv_main.c:775
ufoai_2.3/src/common/common.c:984
ufoai_2.3/src/common/common.c:1132
ufoai_2.3/src/ports/linux/linux_main.c:53
/lib/libc.so.6(__libc_start_main+0xe6)[0x7fd7f70c85a6]
/build/buildd/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
Error: Received signal 11.
« Last Edit: December 06, 2009, 11:05:45 pm by Halleth »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Surprising critical errors during the mission.
« Reply #3 on: December 08, 2009, 08:21:45 am »
the latter reported bug should be fixed - feedback is welcome - also see report https://sourceforge.net/tracker/?func=detail&aid=2910256&group_id=157793&atid=805242

Offline Halleth

  • Rookie
  • ***
  • Posts: 52
    • View Profile
Re: [Fixed] Surprising critical errors during the mission.
« Reply #4 on: December 09, 2009, 10:06:37 pm »
So far I played only 3 missions, however everything is fine now :) If I notice something suspicious, I'll report back.

Thanks for your work, guys!