UFO:Alien Invasion

Technical support => Mac => Topic started by: ovvldc on February 28, 2010, 01:14:39 pm

Title: Crash on entering battlescape
Post by: ovvldc 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
Title: Re: Crash on entering battlescape
Post by: ovvldc 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.
Title: Re: Crash on entering battlescape
Post by: Mattn 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)
Title: Re: Crash on entering battlescape
Post by: ovvldc 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
Title: Re: Crash on entering battlescape
Post by: geever 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
Title: Re: Crash on entering battlescape
Post by: ovvldc 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.
Title: Re: Crash on entering battlescape
Post by: smlacc 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?

Title: Re: Crash on entering battlescape
Post by: jfrv24 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.
Title: Re: Crash on entering battlescape
Post by: jfrv24 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.
Title: Re: Crash on entering battlescape
Post by: geever 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
Title: Re: Crash on entering battlescape
Post by: ovvldc 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

Title: Re: Crash on entering battlescape
Post by: smlacc 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 ********************
Title: Re: Crash on entering battlescape
Post by: Mattn on March 06, 2010, 02:42:18 pm
looks like your version is not up-to-date.
Title: Re: Crash on entering battlescape
Post by: smlacc 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
Title: Crash on entering battlescape
Post by: tuk 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
Title: Re: Crash on entering battlescape
Post by: geever on June 24, 2010, 06:52:38 pm
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

Yes, the released 2.3: http://sourceforge.net/projects/ufoai/files/

-geever
Title: Re: Crash on entering battlescape
Post by: unifiedreality on June 27, 2010, 10:58:20 pm
This game is a tremendous achievment, but so far the 2.3 release for Mac is unplayable. I thoroughly enjoyed playing 2.2.1, and was eagerly awaiting this new release - so dissapointed to find out that the stable release is crashing more or less every time I play on the battlescape. The old version didn't have these problems. Will the 2.3 release be re-released? 
Title: Re: Crash on entering battlescape
Post by: Mattn on June 28, 2010, 06:21:35 pm
there will be a 2.3.1 "soon" - but we need mac developers or testers to help us to nail down the problem(s)
Title: Re: Crash on entering battlescape
Post by: keybounce on June 28, 2010, 06:31:26 pm
Are you having PPC issues or x86 issues?
Title: Re: Crash on entering battlescape
Post by: fetterkey on July 01, 2010, 05:29:24 am
I eagerly downloaded the new version but quickly found myself stymied-- as soon as I entered the battlescape, some kind of graphical glitch occurred, and now my program won't open at all. I'm running version 2.3 downloaded from the link on the main page on a MacBook Pro. I would be happy to help test things if you guys have stuff to do, but right now the game doesn't work for me at all.
Title: Re: Crash on entering battlescape
Post by: searsandrew on July 17, 2010, 04:17:12 am
I too downloaded 3.2 and crash on every battlescape. I copied and pasted the info from my "Send to Apple" pop-up when the game crashed. Would that help you developers?

Andrew
Title: Re: Crash on entering battlescape
Post by: InterFan on July 25, 2010, 06:18:42 pm
It's my 1st ever attempt to play a X-COM related game since "Terror from the deep".

MacBook pro(Intel), MacOS 10.6.3.

Craches everytime I get into a battlefield. (Another reason to prefer Windows over Mac :-) )
Title: Re: Crash on entering battlescape
Post by: MikeTheRat on December 27, 2010, 08:39:15 am
2010/12/27 10:25:55 -------------------------------------
2010/12/27 10:25:55 Connecting to localhost...
2010/12/27 10:25:55 connection attempt from loopback connection
2010/12/27 10:25:55 load material file: 'materials/africa.mat'
2010/12/27 10:26:00 added light, ambient=0.476837
2010/12/27 10:26:00 model "models/animals/cow/cow.md2" doesn't have animation "idle"
2010/12/27 10:26:00 R_AnimChange: No such animation: idle (model: models/animals/cow/cow.md2)
2010/12/27 10:26:00 LM_Register: Could not change anim of model 'idle'
2010/12/27 10:26:01 Starting the game...
2010/12/27 10:26:01 MikeTheRat has joined team 1
2010/12/27 10:26:01 ********************
2010/12/27 10:26:01 ERROR: Model with no skins
2010/12/27 10:26:01 ********************
2010/12/27 10:26:01 Shutdown server: Server crashed.
2010/12/27 10:26:01 ==== ShutdownGame ====

Can someone help me to fix this issue? :(
Title: Re: Crash on entering battlescape
Post by: Kildor on December 27, 2010, 09:08:07 am
Mike, can you add some more lines of log? We need to know what map exactly is wrong.
Title: Re: Crash on entering battlescape
Post by: MikeTheRat on December 27, 2010, 02:45:26 pm
Damn, I tried to start playing this game all day - and no result. And few hours ago I started the game... and played absolutely stable. :o
If I'll get some issues in future - I will post a more informative log.

Thanks for help anyway.
Title: Re: Crash on entering battlescape
Post by: geever on December 27, 2010, 02:56:02 pm
Mike, can you add some more lines of log? We need to know what map exactly is wrong.

The cow model is on +farm if I'm right. But I don't think it's a problem with the model, it worked for me fine.

Maybe it is a Mac specific issue.
@MikeTheRat do you have a PPC or an Intel Mac?

Damn, I tried to start playing this game all day - and no result. And few hours ago I started the game... and played absolutely stable. :o
If I'll get some issues in future - I will post a more informative log.

Maybe this case the map tile on which the cow is was not assembled to the map. Lucky RMA (Random Map Assembly).

-geever
Title: Re: Crash on entering battlescape
Post by: MikeTheRat on December 27, 2010, 03:22:03 pm
Maybe this case the map tile on which the cow is was not assembled to the map. Lucky RMA (Random Map Assembly).
I know. I tried to load many different maps to find a cow and test this issue. Finally I found a map with the cow, and played without any troubles.
Is there different cow models?

P.S.
And yes, I have an Intel Mac with Nvidia graphic card.
Title: Re: Crash on entering battlescape
Post by: H-Hour on December 27, 2010, 05:50:58 pm
2010/12/27 10:25:55 load material file: 'materials/africa.mat'

It's africa/af_house5.map and the cow has property anim set to "idle". Don't know anything about misc_model animations, though. Maybe MCR or mattn knows about this?

The cow in +farm  is in farm/f_stables_a.map and it also has the same anim property set to "idle".

MikeTheRat, could you try the +farm map in skirmish mode, make sure it loads with a cow and see if you get the same error?
Title: Re: Crash on entering battlescape
Post by: MCR on December 27, 2010, 06:32:09 pm
I know. I tried to load many different maps to find a cow and test this issue. Finally I found a map with the cow, and played without any troubles.
Is there different cow models?

We have just one cow model.
Title: Re: Crash on entering battlescape
Post by: MikeTheRat on December 28, 2010, 07:59:03 am
MikeTheRat, could you try the +farm map in skirmish mode, make sure it loads with a cow and see if you get the same error?
Well, today I tried to load +farm maps (small, medium and large) with cows about 10 times. Everything works perfect.
Anyhow, seems the problem is resolved.

Thanks for help everyone.