project-navigation
Personal tools

Author Topic: Crash on entering battlescape  (Read 13381 times)

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Crash on entering battlescape
« on: February 28, 2010, 01:14:39 pm »
I tried the ufoai-2.3-dev-macosx-i386_r28688.dmg.

First thing I noticed is that the e-mail texts are not included.
Second thing is that manufacturing seems to take forever. It took a mont to make a single IR goggle with 10 workers. I'd like to see an estimated time to completion of a manufacturing run.
Third thing is that the research completion percentage might be rounded off to the nearest %.

Then I got a crash at the battlescape when entering a terror mission.

best wishes,
 Oscar

Crash log is attached. UFO console log to follow

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: Crash on entering battlescape
« Reply #1 on: February 28, 2010, 01:15:37 pm »
There's some warnings that may be of use.
I get the impression that lots of files are missing.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Crash on entering battlescape
« Reply #2 on: February 28, 2010, 03:16:38 pm »
only libvorbis and libogg are missing - that is a bug in mac related dmg-creation scripts.

http://ufoai.svn.sourceforge.net/viewvc/ufoai/ufoai/trunk/src/ports/macosx/installer/

^^ if you want to contribute a fix for the missing libs (sdl_mixer loads them at runtime to they are not linked and thus not found but the otool and others)

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: Crash on entering battlescape
« Reply #3 on: February 28, 2010, 06:49:52 pm »
Sorry, I am not good with coding and such.

I was wondering about missing files because the UFOconsole said that some of the alien ship-related files were size 0. And maybe lack of data for a ship was what is causing my game to crash when it has to show a ship.

But I could be wrong, of course ;).

Best wishes,
 Oscar

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Crash on entering battlescape
« Reply #4 on: March 01, 2010, 08:12:41 pm »
I was wondering about missing files because the UFOconsole said that some of the alien ship-related files were size 0. And maybe lack of data for a ship was what is causing my game to crash when it has to show a ship.

If files are 0 bytes long then you should check the free space on your drive for example. We don't have zero-files in the game even if something (like a model) is missing.

-geever

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: Crash on entering battlescape
« Reply #5 on: March 02, 2010, 10:28:12 am »
No worries about free space. 10+ GB free :).

I don't know if they are 0 size, but the ufoconsole said something along that line.

Offline smlacc

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Re: Crash on entering battlescape
« Reply #6 on: March 05, 2010, 01:40:26 am »
I also get this problem - crash as soon as I start a mission.  Is there a way I can log what happens so I can post an error log?


Offline jfrv24

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: Crash on entering battlescape
« Reply #7 on: March 05, 2010, 07:05:13 am »
There should be a log at ~/Documents/UFOAI-2.3-dev/base/ufoconsole.log

It may have some information on why it's crashing.

Offline jfrv24

  • Rookie
  • ***
  • Posts: 12
    • View Profile
Re: Crash on entering battlescape
« Reply #8 on: March 05, 2010, 07:29:26 am »
geever, I think ovvidc was talking about this from the console log:

Code: [Select]
2010/02/28 12:19:20 Campaign data loaded - size 4467040 bytes
2010/02/28 12:19:20 ...techs: 205
2010/02/28 12:19:20 ...buildings: 23
2010/02/28 12:19:20 ...ranks: 16
2010/02/28 12:19:20 ...nations: 8
2010/02/28 12:19:20 ...cities: 457
2010/02/28 12:19:20 2010/02/28 12:19:29 Sanity check for script data
2010/02/28 12:19:29 ...buildings ok
2010/02/28 12:19:29 ...tech ok
2010/02/28 12:19:29 ...aircraft ok
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_scout has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_fighter has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_harvester has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_bomber has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_ripper has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_mothership has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_gunboat has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_corrupter has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_carrier has zero size set.
2010/02/28 12:19:29 CP_ItemsSanityCheck: Item craft_ufo_supply has zero size set.
2010/02/28 12:19:29 ...items failed
2010/02/28 12:19:29 ...items ok
2010/02/28 12:19:29 NAT_ScriptSanityCheck Errors: 0
2010/02/28 12:19:29 ...nations ok

I don't think that means that the file size is zero, but I don't really know what it means.  I recognize it from my own console log, but it never seemed to cause any problems so I mostly ignored it.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Crash on entering battlescape
« Reply #9 on: March 05, 2010, 11:17:40 am »
geever, I think ovvidc was talking about this from the console log:

I don't think that means that the file size is zero, but I don't really know what it means.  I recognize it from my own console log, but it never seemed to cause any problems so I mostly ignored it.

You can ignore, it it's harmless.
The item size is not set (or set to zero) for these in scripts. "UFO Items" are depreciated and will be removed once I merged the save_breaker branch back...

-geever

Offline ovvldc

  • Rookie
  • ***
  • Posts: 59
    • View Profile
Re: Crash on entering battlescape
« Reply #10 on: March 05, 2010, 11:41:45 pm »
Ok, my bad. I just assumed a sanity check failing would be bad..

I'd be happy to run a debug build to help dig for the crash, but I cannot build UFO:AI myself. Otherwise all I can offer is crash logs.

Best wishes,
 Oscar


Offline smlacc

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Re: Crash on entering battlescape
« Reply #11 on: March 06, 2010, 02:39:46 pm »
Here's my ufoconsole.log at the time of the crash.  i can provide a full one if needed:

Code: [Select]
2010/03/04 19:35:23 -------------------------------------
2010/03/04 19:35:23 Connecting to localhost...
2010/03/04 19:35:23 connection attempt from loopback connection
2010/03/04 19:35:23 load material file: 'materials/farm.mat'
2010/03/04 19:35:30 Starting the game...
2010/03/04 19:35:30 smlacc has joined team 1
2010/03/04 19:35:30 music change to MarineFireFight (from PsymongN5)
2010/03/04 19:35:31 M_Start: Could not load music: 'music/MarineFireFight' (Failed loading /opt/local/lib/libvorbisfile.dylib: dlopen(/opt/local/lib/libvorbisfile.dylib, 2): image not found)
2010/03/04 19:35:31 music change to Marine01 (from MarineFireFight)
2010/03/04 19:35:31 M_Start: Could not load music: 'music/Marine01' (Failed loading /opt/local/lib/libvorbisfile.dylib: dlopen(/opt/local/lib/libvorbisfile.dylib, 2): image not found)
2010/03/04 19:35:33 (player 0) It's team 1's round
2010/03/04 19:35:33 smlacc has taken control over team 1.
2010/03/04 19:35:34 MN_ExecuteSetAction: node "root.team_selection.bt_actor8@disabled" doesn't exist (source: hud.huddeselect)
2010/03/04 19:35:34 MN_ExecuteSetAction: node "root.team_selection.bt_actor8@disabled" doesn't exist (source: hud.huddeselect)
2010/03/04 19:35:34 ********************
2010/03/04 19:35:34 ERROR: Unknown model type in R_DrawEntities entity chain: 0
2010/03/04 19:35:34 ********************
2010/03/04 19:35:34 Shutdown server: Server crashed.
2010/03/04 19:35:34 ==== ShutdownGame ====
2010/03/04 19:35:34 music change to karlmacklin_geoscape (from Marine01)
2010/03/04 19:35:34 ********************
2010/03/04 19:35:34 ERROR: Texture is already freed and no longer uploaded, texnum is invalid for model models/geoscape/base.md2
2010/03/04 19:35:34 ********************
2010/03/04 19:35:34 music change to van_geoscape (from karlmacklin_geoscape)
2010/03/04 19:35:34 ********************

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Crash on entering battlescape
« Reply #12 on: March 06, 2010, 02:42:18 pm »
looks like your version is not up-to-date.

Offline smlacc

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Re: Crash on entering battlescape
« Reply #13 on: March 07, 2010, 02:41:19 am »
This error log was from this version: http://destructavator.com/mattn/ufoai-2.3-dev-macosx-i386_r28688.dmg
Is there a newer version?

Smlacc

Offline tuk

  • Cannon Fodder
  • **
  • Posts: 1
    • View Profile
Crash on entering battlescape
« Reply #14 on: June 24, 2010, 04:48:35 pm »
UFOAI 2.3 loads the battlescape, and after one or two seconds the game crashes - any idea?

MacMini 1,83 GHz, 2 Gbyte RAM, OSX10.5.8, 20Gbyte space on Harddisk