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.

The change in tree cost is an invalid value, strongly implying the tree bounds have been corrupted by infinites or NaNs.

See original GitHub issue

I create 1000 SponsorCharacterAI in CharacterDemo, after a little minutes it will cause exception below:

System.InvalidOperationException:“The change in tree cost is an invalid value, strongly implying the tree bounds have been corrupted by infinites or NaNs. If this happened in the broad phase's use of the tree, it's likely that there are invalid poses or velocities in the simulation, possibly as a result of bugged input state or constraint configuration. Try running the library with debug asserts enabled to narrow down where the NaNsplosion started.”

>	BepuPhysics.dll!BepuPhysics.Trees.Tree.GetRefineTuning(int frameIndex, int refinementCandidatesCount, float refineAggressivenessScale, float costChange, out int targetRefinementCount, out int refinementPeriod, out int refinementOffset) 行 165	C#
 	BepuPhysics.dll!BepuPhysics.Trees.Tree.RefitAndRefineMultithreadedContext.CreateRefinementJobs(BepuUtilities.Memory.BufferPool pool, int frameIndex, float refineAggressivenessScale) 行 95	C#
 	BepuPhysics.dll!BepuPhysics.CollisionDetection.BroadPhase.Update(BepuUtilities.IThreadDispatcher threadDispatcher) 行 204	C#
 	BepuPhysics.dll!BepuPhysics.Simulation.CollisionDetection(float dt, BepuUtilities.IThreadDispatcher threadDispatcher) 行 225	C#
 	BepuPhysics.dll!BepuPhysics.DefaultTimestepper.Timestep(BepuPhysics.Simulation simulation, float dt, BepuUtilities.IThreadDispatcher threadDispatcher) 行 41	C#
 	Demos.dll!Demos.Demos.Characters.CharacterDemo.Update(DemoUtilities.Window window, DemoRenderer.Camera camera, DemoUtilities.Input input, float dt)	未知
 	Demos.dll!Demos.DemoHarness.Update(float dt)	未知
 	Demos.dll!Demos.GameLoop.Update(float dt)	未知
 	DemoUtilities.dll!DemoUtilities.Window.Run(System.Action<float> updateHandler, System.Action<BepuUtilities.Int2> onResize)	未知
 	Demos.dll!Demos.Program.Main()	未知

Issue Analytics

  • State:closed
  • Created 6 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
RossNordbycommented, Apr 6, 2023

The sponsors AI also relied on the newts being around to provide nonzero movement influence; if they reach the final target, there will be a divide by zero. Went ahead and guarded against it in 22dac469c92e5ffbeb3764feedb9eb90326361ac.

0reactions
hqcchinacommented, Apr 6, 2023

Thanks reply. I have tested for a long time and not exception, it look work well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

World Bound · bepu bepuphysics2 · Discussion #222
The change in tree cost is an invalid value, strongly implying the tree bounds have been corrupted by infinites or NaNs.
Read more >
musl/WHATSNEW at master · AssemblyScript/musl
... value - out-of-tree build produced broken crt files with stack protector enabled - fmaf produced wrong result for some corner cases -...
Read more >
Untitled
21 savage admits murder, What is the scientific name for a maple tree, ... blvd a horror movie, Change roku remote buttons, Full...
Read more >
Xpress Release Notes
A new control CHECKINPUTDATA makes Xpress check input data for invalid values when supplied through the API. This checks for example for NANs...
Read more >
SCIP Doxygen Documentation: CHANGELOG
in lp-format - fixed bug in heur_oneopt: avoid bound violations if shift value is negative due to infeasibilities - fixed setting solution value...
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