I am gradually adding to my DFDL schema. I expect there to be "Left over data". 
But it would be nice if Daffodil accurately told me how much left over data 
there is. Or at least, it would be nice of Daffodil didn't (apparently) make 
things up. Let me explain.

I ran my DFDL schema and got this message:

[error] Left over data. Consumed 109767424 bit(s) with at least 5376 bit(s) 
remaining.

Okay, so I have about 5,000 bits remaining to be parsed. 

I added more stuff into my DFDL schema. The schema now gobbles up more of the 
input. I expect the number of bits consumed to increase and the number of 
left-over bits to decrease. Here's what Daffodil gives:

[error] Left over data. Consumed 191712176 bit(s) with at least 46160 bit(s) 
remaining.

Daffodil reports that more bits were consumed: 109,767,424 --> 191,712,176

Good. Makes sense.

Daffodil reports that there are more remaining bits:  5,376 --> 46,160

Huh? That's crazy. 

Why can't Daffodil accurately tell the number of remaining bits?

/Roger

Reply via email to