wotreplay-parser icon indicating copy to clipboard operation
wotreplay-parser copied to clipboard

cannot parse replays in ubuntu build

Open giltsuker opened this issue 7 years ago • 1 comments

Hi, I have compiled the project on Ubuntu successfully but the parser does not seem to work.

I tried parsing several replay files: ./wotreplay-parser --parse --root ./ --type json --input file.wotreplay --output test.json

And I always get this error:

wotreplay-parser: <repository_path>/wotreplay-parser/src/packet.h:148: const U& wotreplay::get_field(T, T, size_t) [with U = short unsigned int; T = __gnu_cxx::__normal_iterator<unsigned char*, std::vector >; size_t = long unsigned int]: Assertion `(offset + sizeof(U)) <= std::distance(begin, end)' failed. Aborted (core dumped)

can you help?

giltsuker avatar Feb 02 '18 14:02 giltsuker

You can comment out assertion macro, at your own risk.

pashok3d avatar Mar 26 '20 16:03 pashok3d