Modify

Ticket #81 (closed bug: fixed)

Opened 3 years ago

Last modified 21 months ago

Game crashes during saving after building a derrick

Reported by: Tycho451 Owned by:
Priority: major Milestone:
Component: Campaign Version: git/master
Keywords: crash save savegame tagfile Cc: Per
Blocked By: Blocking:
Operating System: All/Non-Specific

Description

When you start a campaign start bulding a derrick. After the first ingame video try to save and the game will crash.

It seems this bug was introduced with revision 6081.

The output hints toward a problem with the tagfile.

I have attached the relevant part of the debug=all output and the warzone2100.gdmp.

Attachments

output.txt (7.1 KB) - added by Tycho451 3 years ago.
warzone2100.gdmp (14.2 KB) - added by Tycho451 3 years ago.

Change History

Changed 3 years ago by Tycho451

Changed 3 years ago by Tycho451

comment:1 Changed 3 years ago by Tycho451

6077 is the last working Version savegame-wise.

When validating the savegame the game reads an invalid tagtype:

map |000000049588: [mapLoadTagged] * Texture[27]: 78 error |000000049588: [tf_error] Invalid value type in buffer

The invalid Tagtype value is different every time and can be as high as 134, so it's definitly no tagtype (I first hoped this was a simple oversight of including all tagtypes in the switch construct). I guess "readsize = PHYSFS_read(handle, &tag_type, 1, 1);" reads the tagtype but since I can't find where it's writen I'm stuck.

Since I lack any deeper understanding of the way the code works and am unfamiliar with C in general I might be talking nonsense.

comment:2 follow-up: ↓ 3 Changed 3 years ago by anonymous

The code producing the fault has been reverted.

comment:3 in reply to: ↑ 2 Changed 3 years ago by Giel

  • Cc Per added
  • Milestone set to 2.2

Replying to anonymous:

The code producing the fault has been reverted.

Was that you per? If so, can you close this report (need to be logged in for that) marking it fixed?

Also what revision fixed it?

comment:4 Changed 3 years ago by Per

  • Status changed from new to closed
  • Resolution set to fixed

r6102 should have fixed it. Closing.

comment:5 Changed 21 months ago by Buginator

  • Milestone 2.2 deleted

Milestone 2.2 deleted

View

Add a comment

Provide an email address (will not be publicly visible) in the Author field or register an account (uses your forum account).

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.