Trunk code crash during video playback

Discuss the future of Warzone 2100 with us.
User avatar
Vermithrax
Trained
Trained
Posts: 66
Joined: 22 May 2009, 06:34
Location: Tucson, Arizona

Trunk code crash during video playback

Post by Vermithrax »

While playing level 3 using a build of the trunk code, I experienced a persistent crash. During this level, after upgrading the power station, you have 15 minutes to load up the lander with units and take off. The crash occurred after the transport takes off, during the video playback for the next mission. The debug file is attached. The pertinent section is at the end.

I've attached the save game as well. All you need to do, after loading it, is click on the launch icon.

The build/run system is an NVIDIA GeForce 8800 GS equipped iMac running OS X version 10.5.7. Xcode version was 3.1.2.
You do not have the required permissions to view the files attached to this post.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Trunk code crash during video playback

Post by Buginator »

A good ole assert...
and it ends here.
User avatar
Vermithrax
Trained
Trained
Posts: 66
Joined: 22 May 2009, 06:34
Location: Tucson, Arizona

Re: Trunk code crash during video playback

Post by Vermithrax »

Want more?

Okay. Well, if I repeat the process described above without the videos present, I get the results in the attached debug file.

As with the previous log, the end of the file coincides with the crash.
You do not have the required permissions to view the files attached to this post.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Trunk code crash during video playback

Post by Buginator »

No, I just meant that, that 'crash' was from a assert.

Just as a reminder... nothing more.
and it ends here.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Trunk code crash during video playback

Post by Zarel »

Are you sure it was just an assert? A lot of the time, the game crashes right after asserting.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Trunk code crash during video playback

Post by Buginator »

Zarel wrote:Are you sure it was just an assert? A lot of the time, the game crashes right after asserting.
O_o

Code: Select all

/Users/jpallant/Development/Warzone2100/trunk/macosx/../src/mapgrid.c:255: failed assertion `nx >= 0 && nx < gridWidth && ny >= 0 && ny < gridHeight'
The problem is, since it is a campaign game, and is changing missions, it thinks the transport is out of bounds... You can ignore the assert (or play a 'release' build).

This isn't one of those cases where getting a assert means if you ignore it, it will crash the game.
and it ends here.
User avatar
Vermithrax
Trained
Trained
Posts: 66
Joined: 22 May 2009, 06:34
Location: Tucson, Arizona

Re: Trunk code crash during video playback

Post by Vermithrax »

Just for grins and giggles, I replayed to this point in the game again. I didn't play in exactly the same way. Much faster, not anywhere near as much construction, and concentrated on just getting to a point where I could launch the mission.

I had the same results.

I'm curious. Has anyone had the same results playing on a PC?
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Trunk code crash during video playback

Post by Buginator »

Vermithrax wrote:Just for grins and giggles, I replayed to this point in the game again. I didn't play in exactly the same way. Much faster, not anywhere near as much construction, and concentrated on just getting to a point where I could launch the mission.

I had the same results.

I'm curious. Has anyone had the same results playing on a PC?
All of our official builds have been 'release' builds, and these assert issues don't show up on anything but debug builds.
and it ends here.