Jump to content
Sign in to follow this  
fabio

[FIXED] Assertion failed: "Overflow in CFixedVector2D::Dot() part 2"

Recommended Posts

While playing the Macedonia map I got:

FixedVector2D.h(204): Assertion failed: "Overflow in CFixedVector2D::Dot() part 2"
Assertion failed: "Overflow in CFixedVector2D::Dot() part 2"
Location: FixedVector2D.h:204 (Dot)

Edited by fabio

Share this post


Link to post
Share on other sites

The game should create a file ~/.config/0ad/logs/sim_log/${PID}/commands.txt each time you run it, which can hopefully be used to reproduce errors like this. If you can find one that corresponds to a run which produced that error, could you upload that (and say exactly which SVN revision you're running)?

Share this post


Link to post
Share on other sites

Thanks, I get the error with that. Will try to debug it later today.

You can run the replay with:

./pyrogenesis_dbg -replay=path/to/commands.txt

(but don't use "~" in the path).

Share this post


Link to post
Share on other sites

You can run the replay with:

./pyrogenesis_dbg -replay=path/to/commands.txt

(but don't use "~" in the path).

Replay doesn't work here. Whatever log I use I get:

Replay.cpp(106): Assertion failed: "m_Stream->good()"
Assertion failed: "m_Stream->good()"
Location: Replay.cpp:106 (Load)

Share this post


Link to post
Share on other sites

That usually means you're passing it an incorrect filename (e.g. one with "~", or writing "-replay foo" instead of "-replay=foo", etc). (This isn't meant to be a widely-used feature, which is why it's not at all documented or user-friendly :victory:)

Share this post


Link to post
Share on other sites

That usually means you're passing it an incorrect filename (e.g. one with "~", or writing "-replay foo" instead of "-replay=foo", etc). (This isn't meant to be a widely-used feature, which is why it's not at all documented or user-friendly :victory:)

I missed the = indeed, and also confirm the original assertion.

Share this post


Link to post
Share on other sites

Should be fixed. (This will slightly change the pathfinder behaviour, so the replay will be invalid now and can't be used to verify that the bug is fixed, unfortunately.)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...