question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Encountering an unknown bug in SAT.collide() (Update: I think I found the issue)

See original GitHub issue

I am trying to keep the tab open as I am not sure this bug is recreatable. I am using matter.js for the server later, so I am desperate to fix this issue.

The game was running smoothly and all of a sudden it broke. The error is coming from SAT.collide(). Specifically this line.

axes = [axisBodyA.axes[previousCollision.axisNumber]];

In my case, axisBodyA.axes only has 5 axes, but previousCollision.axisNumber is 5;

However, after some checking, other same type bodies are having 6 axes. All of them include the problematic body is a circle with 10 vertices. So somehow this body has reduced its’ number of axes.

Can anyone tell me what can cause this issue? Could it be because I did the Body.scale() to it?

matterjsbug backup screenshot: https://stabfish.io/dwUploads/matterjsbug.png

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hanzooocommented, Feb 25, 2022

@hanzooo do you mean that upgrading solved the issue for you? Or something else?

@liabru Yes, the upgrading solved the issue, it works good.

0reactions
liabrucommented, Feb 25, 2022

Thanks for confirming, closing this as hopefully that means it’s solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Various bugs/issues collection (Over 100) :: Killing Floor 2 Bug Report
[MP] - Issue encountered during multiplayer online, unknown if present in ... Repro example: I sat inside a bot (Team Collision disabled as...
Read more >
How to Find a Bug in Application? Tips and Tricks
Almost all the basic tips and tricks involved in the process of finding bugs is explained in detail in this article. You will...
Read more >
VMD-L Mailing List
Re: Issue install VMD 1.9.3 Spack Axel Kohlmeyer (Mon Dec 05 2022 - 05:45:24 CST) ... Re: VMD installation on Mac OSx 11...
Read more >
Step 3 Sample Test Questions - usmle
The following are strategies for answering one-best-answer questions (eg, Single Items, Multiple. Item Sets, and Sequential Item Sets):.
Read more >
BIG-IP 16.1.2.1 Fixes and Known Issues - AskF5 - F5 Networks
Updates to bug information occur periodically. ... Assertion failed: load.get () == 0 ... There may be other as-yet unknown impacts for this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found