Code Monkey home page Code Monkey logo

Comments (8)

RossNordby avatar RossNordby commented on July 3, 2024 1

Nice work! I know how fun narrowing that kind of thing down can be :P

from bepuphysics2.

RossNordby avatar RossNordby commented on July 3, 2024

There are some pieces of test content in that demo which will trigger that error intentionally; a point set with no volume is invalid input. Did you see that error for a point set that unambiguously has volume?

from bepuphysics2.

sDIMMaX avatar sDIMMaX commented on July 3, 2024

I tested with simple manual cube.
points[0] = new System.Numerics.Vector3(0, 0, 0); points[1] = new System.Numerics.Vector3(0, 0, boxScale); ...
Error only if Net8.0.
somewhere in rawFaceVertexIndices in ComputeHull. in one case this 0 in other 2.

from bepuphysics2.

RossNordby avatar RossNordby commented on July 3, 2024

I'm not seeing a similar failure with CreateBoxConvexHull in ConvexHullTestDemo, could you give me a snippet of code that reproduces the problem within ConvexHullTestDemo?

from bepuphysics2.

sDIMMaX avatar sDIMMaX commented on July 3, 2024

PCS.zip
my dotnet version 8.0.201 and 7.0.406 (what you 8.0.xxx version?)
if in BepuPhysics.csproj and BepuUtilities.csproj i change to net7.0 - this works.

i think main problem in dotnet runtime. unsafe buffers/operations...

from bepuphysics2.

RossNordby avatar RossNordby commented on July 3, 2024

That's odd; running the repro with 8.0.201 appears to work for me. What CPU/OS are you using?

from bepuphysics2.

sDIMMaX avatar sDIMMaX commented on July 3, 2024

Reinstall. really odd, now i think this is CPU problem. something like dotnet/runtime#98704
i have 2 legacy pc(as remote "terminal") win10(1809 17763.3650) - cpu Intel celeron e3300 and old notebook win7(7601) intel p6100 and both have some issue. need test on main server pc when i reinstall hypervisor, dockers, os`s ...
in attachment 2 compiled versions
Debug.zip

edit: tested on net8.0.preview.1 - and it works... O_O ...
preview.2 and rc.1 - nope -_-

from bepuphysics2.

sDIMMaX avatar sDIMMaX commented on July 3, 2024

after hours of Console.WriteLine and debug.... i Found
previousEdgeDirection = Vector2.Normalize(facePoints[nextIndex] - facePoints[previousEndIndex]); in ReduceFace

code

			var v1 = new Vector2(0,2);
			var v2 = new Vector2(0,0);
			var previousEdgeDirection = Vector2.Normalize(v1 - v2);
			Console.WriteLine(previousEdgeDirection);

show <0 ∞> in net8.0 and <0 1> in 7.0.

OMG.
Close issue in this place and open in
dotnet/runtime#99391

from bepuphysics2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.