Opened 17 years ago

Closed 15 years ago

Last modified 14 years ago

#167 closed defect (fixed)

Assertion failure when reading trace file

Reported by: Philip Taylor Owned by: Jan Wassenberg
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

The assertion at source:ps/trunk/source/lib/res/file/trace.cpp@4706#L202 fails with start_idx = 25243, t->total_ents = 25225.

trace.txt is 25326 lines, with the last run's delimeter on line 25243, with a total of 101 delimeters. 25326 - 101 = t->total_ents, and 25243 = start_idx. So it looks like the problem is that start_idx counts the divider lines, while t->total_ents doesn't, and so it fails if the number of divider lines is greater than the size of the last run in the file.

Change History (2)

comment:1 by Jan Wassenberg, 15 years ago

Resolution: fixed
Status: newclosed

(cleaning up old tickets) That code is currently mothballed, but I've made a note to reimplement the handling of trace files (lumping them all into a single text file with delimiters was a poor design decision, and doing things The Right Way would avoid this issue).

comment:2 by (none), 14 years ago

Milestone: ASAP

Milestone ASAP deleted

Note: See TracTickets for help on using tickets.