project-navigation
Personal tools

Author Topic: Gamecrash on Battlescape (VM)  (Read 5795 times)

Offline hoiba

  • Rookie
  • ***
  • Posts: 42
    • View Profile
Gamecrash on Battlescape (VM)
« on: November 27, 2014, 01:58:06 pm »
Hey everybody. Me again :)

I was fooling around with UFO:AI within a VM because I like the opportunity to pause a long fight (e.g. alien base) and resume the next day by suspending and restoring the VM.

After having a little struggle with sound-issues an other minor bugs the game runs fine within a Debian7 VM but when it comes to battlescape the game crashes. Unfortunately without any entry in the ufoconsole.log file.
When starting the game in a shell I get some error messages (see attached code).

Someone having a idea how to fix it? Google is not a big help, maybe its not a OS but an application issue.

I've tried a WinXP instead a Debian7 guest VM... here everything works great. But I don't like using a Win-Box.. especially the old XP one.


Many thanks for your ideas!

Hoiba

Code: [Select]
====== UFO Initialized ======
=============================
Switch grab input off
Change gametype to 'Skirmish mode'
Starting skirmish with 12 soldiers and 0 ugvs
setting game random seed to 14047
------- Loading game.so -------
not found at '/usr/local/lib/'
not found at '/home/hoiba/.ufoai/2.6-dev/base'
found at './base'
tiles: -africa/af_ +craft_ufo_bomber +craft_drop_firebird +empty6c +empty6a +house3 +fence3 +house1a +house1 +house2 +house4 +house6 +house2 +house6a +house3 +house2a +misc1 +empty6 +fence3 +house1 +house1a +house1 +house3 +house1a +well1 +house6 +nature_01 +house6b +house2 +empty6 +fence1 +fence1 +empty6b
pos: 0 -32 0 -40 -8 0 32 -32 0 32 -24 0 32 -16 0 32 -8 0 32 0 0 32 16 0 32 24 0 -40 -32 0 -40 -24 0 -40 -16 0 -32 -24 0 -24 -32 0 -24 -24 0 -8 -24 0 -16 -32 0 -8 -32 0 -24 -16 0 -16 -16 0 -8 -16 0 -8 -8 0 -16 0 0 -8 0 0 -8 8 0 -16 16 0 -40 8 0 -24 8 0 -24 16 0 -40 24 0 -32 24 0 -24 24 0
tiles: 32
CM_LoadMap: "-africa/af_ +craft_ufo_bomber +craft_drop_firebird +empty6c +empty6a +house3 +fence3 +house1a +house1 +house2 +house4 +house6 +house2 +house6a +house3 +house2a +misc1 +empty6 +fence3 +house1 +house1a +house1 +house3 +house1a +well1 +house6 +nature_01 +house6b +house2 +empty6 +fence1 +fence1 +empty6b" "0 -32 0 -40 -8 0 32 -32 0 32 -24 0 32 -16 0 32 -8 0 32 0 0 32 16 0 32 24 0 -40 -32 0 -40 -24 0 -40 -16 0 -32 -24 0 -24 -32 0 -24 -24 0 -8 -24 0 -16 -32 0 -8 -32 0 -24 -16 0 -16 -16 0 -8 -16 0 -8 -8 0 -16 0 0 -8 0 0 -8 8 0 -16 16 0 -40 8 0 -24 8 0 -24 16 0 -40 24 0 -32 24 0 -24 24 0"
Rerouted 1222 cols for RMA in   1.0s
checksum for the map '+africa': 3237176925
ufo script checksum 243461283
ufo: src/libs/lua/lapi.c:545: lua_getfield: Zusicherung >>L->top < L->ci->top<< nicht erf?llt.
Error: Received signal 6.
« Last Edit: November 27, 2014, 02:00:20 pm by hoiba »

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #1 on: November 27, 2014, 11:25:35 pm »
Hi

Well it works fine for me here (openSUSE 12.3) it seems like a stack overflow in lua, are you using the system lua (which version) or the lua bundled with the game?

Offline hoiba

  • Rookie
  • ***
  • Posts: 42
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #2 on: November 28, 2014, 08:20:04 am »
Hi DarkRain

I'm using the lua bundled with the game (the path in the error message points to the games lua). However... liblua 5.1 is present in the system also.
This problem seems to be VM-specific. I'm running a Debian7 Laptop on which I can compile and play 2.6dev without any issues.
The error above only appears in the Debian-VM.

I'm downloading openSUSE 12.3 right now for a try.
I've already tested Fedora and Ubuntu, both having sound issues I couldn't solve. Only Debian seems to work with sound in VM.


###EDIT###

Just tried the openSUSE 12.3 VM (clean install, KDE, all updates applied, zyppered all packages & dependencies, compiled 2.6dev) with the same 'entering battlescanpe error' as posted before.

Code: [Select]
"version" is "UFO: Alien Invasion 2.6-dev IA-32 Nov 28 2014 Linux DEBUG"

ufo: src/libs/lua/lapi.c:545: lua_getfield: Zusicherung >>L->top < L->ci->top<< nicht erf?llt.
failed to upload file 'crashdump.txt': Timeout was reached
failed to upload file '/home/hoiba/.ufoai/2.6-dev/base/ufoconsole.log': Timeout was reached
Error: Received signal 6.


If the solution to this problem requires lots of time and research for you DarkRain, please just leave it. You coders have enough to do elsewhere in the project. I'll just use the WinXP-VM instead. As a mentioned above, 2.6dev runs fine in this VM ..although I don't like the feeling  ::)
« Last Edit: November 28, 2014, 02:13:28 pm by hoiba »

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #3 on: November 28, 2014, 09:33:07 pm »
Hi,

Actually I think i got this one, can you test if it's fixed in latest master?

(the path in the error message points to the games lua).
How did I overlook that?
« Last Edit: November 28, 2014, 09:38:22 pm by DarkRain »

Offline hoiba

  • Rookie
  • ***
  • Posts: 42
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #4 on: November 28, 2014, 10:19:45 pm »
Hi,

Actually I think i got this one, can you test if it's fixed in latest master?


Sure. I'll be able to test it monday (all Linux-VMs are on my computer at work ^^ ).


How did I overlook that?

You're replying late in the night. That's how ;)

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #5 on: November 29, 2014, 02:32:55 am »
Ok, then I'll wait s few days, Freakyd reported it fixed on IRC, but if you can still test it later, that would be great :)

Offline hoiba

  • Rookie
  • ***
  • Posts: 42
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #6 on: November 29, 2014, 02:27:45 pm »
Found my original Linux-VM at home, tested with the latest master ---> problem FIXED, WinXP-VM shredded already :)

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: Gamecrash on Battlescape (VM)
« Reply #7 on: November 30, 2014, 03:52:17 am »
Ah, that's great to hear, happy hunting ;)