fluidfoam icon indicating copy to clipboard operation
fluidfoam copied to clipboard

parsing failure for binary boundary data

Open kahilah opened this issue 1 year ago • 2 comments

Hi,

I had a dataset which happened to have "}". ")" byte strings within the nonuniform binary data block for the patch. Such a happenstance leads to an unexpected exit of parsing in _parse_session(self, title) function, yielding later exceptions as well.

Unfortunately I was not able to reproduce the problem in any simple data sets I have available but still wanted to share the behavior here.

kahilah avatar Sep 14 '24 18:09 kahilah

Hello @kahilah Thank you for your interest in fluidfoam and for opening this issue. Is it possible to have an example file (even a large one) to reproduce the problem? Thank you

CyrilleBonamy avatar Sep 16 '24 07:09 CyrilleBonamy

Hi, I handcrafted a file including a boundary patch which fails with error TypeError: 'bytes' object does not support item assignment

File attached

Urandomised.tar.gz

kahilah avatar Sep 16 '24 10:09 kahilah

Thank you again for your interest. The bug is resolved with #61

CyrilleBonamy avatar Nov 21 '24 10:11 CyrilleBonamy