Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
121 stars 2 forks source link

Convex Hulls throwing exeptions & high CPU usage, even after leaving the world #2213

Open Readun opened 1 month ago

Readun commented 1 month ago

Describe the bug?

I have a specific old world that seem to rapidly overflow the memory until it runs out of it, leading to a crash. The Headless crashes in about~ 1 Minute and is still joinable in that timeframe (But it has low fps)

Interestingly it also has a high CPU Usage, similiar to #2079 but that one doesnt have the memory overflow issue and doesnt crash, if the cpu is strong enough.

It also sometimes show similiar exeptions like #1198 & #1410 but im not fully sure if it is the same. (Different results in exeptions, see Screenshoots)

To Reproduce

I only need to load my "Dragoncave" world, that I imported from the old Platform. It worked on my Headless before. Would provide the record ID more discreetly.

Expected behavior

Run the world without massive CPU & Memory usage.

Screenshots

Screenshot 2024-06-02 162107 Screenshot 2024-06-02 162053 Screenshot 2024-06-02 162126 Screenshot 2024-06-02 162518

Resonite Version Number

2024.5.31.202 (And as far as I know, since release)

What Platforms does this occur on?

Windows

What headset if any do you use?

Headless

Log Files

READUNSERVER - 2024.5.31.202 - 2024-06-02 16_26_05.log READUNSERVER - 2024.5.31.202 - 2024-06-02 16_19_28.log

Additional Context

It works normally when opening the world with the normal client (Screenmode & SteamVR)

Reporters

readun

Frooxius commented 1 month ago

Are you able to isolate this? Delete stuff from the world until it stops happening, then delete other stuff as long as it keeps happening.

Readun commented 1 month ago

Can try when I have time, i already deleted all old video players to replace them with new too, but didn't helped. (Only one remains)

Readun commented 1 month ago

Im currently trying to debug the world. But I found out this is a more major bug... The cpu load and occupied ram will also -stay- after you leave the world... I joined the world 3 times now and my desktop cpu is pegged at 100% while in my home world. first time -> 60% second time -> 80% third time -> 100%

the ram usage stayed too and increased with each round.

opening the world 3 times

and it stayed after leaving them too. persisting cpu load

third time:

3 times

forth time: 4 times more ram

I did deleted some reparent flux and some videoplayers, the server this time crashed, without running out of memory. But it definatly still had a memory leak!: server ram slow Server Log:

READUNSERVER - 2024.5.31.202 - 2024-06-02 23_13_19.log

I will continue to strip down the world for now, to get a clue what it could be. But it miight have something to do with videos again?

But this run makes me question, how can the cpu and ram load stay after leaving a world?

Readun commented 1 month ago

Addition... When being in my local home:

local home

Edit: Compared to a fresh start: Fresh start

Edit 2: I remember that Flux was still running after beeing deleted when Resonite launched. This might still be the case, even across sessions?

Readun commented 1 month ago

@Frooxius After testing it a couple of times, I can now confirm -> Convex Hulls Convex hulls are the root of that issue, my world had a handcrafted cave and stonehege out of convex hulls (So a ton of them) and it caused the memory leaks & Headless crash in this case. After Deleting them all, the Headless now runs on 0-1% grafik

The Log of the "Fixed world" But tbf, I cant be sure if I left some convex hulls somewhere...

READUNSERVER - 2024.5.31.202 - 2024-06-03 00_18_00.log

So #1198 seems to not actually be fixed & it will stay as long as Resonite runs, not going away by just leaving the world.

shiftyscales commented 1 month ago

Please include a link to a copy of the world with everything stripped away except the problematic assets as indicated above by Frooxius, @Readun.

Readun commented 1 month ago

Got the Convex hulls now into a gridspace and they are doing the exact same behavior: World Record: resrec:///U-Readun/R-ca8dcfd8-3ae1-4a8c-8d9a-4cbbf2fed102

grafik

Addition: Forgot to give the clean log: READUNSERVER - 2024.5.31.202 - 2024-06-04 18_12_00.log

shiftyscales commented 1 month ago

Thanks- this issue seems to have everything it should need to be looked further into at some point, @Frooxius.