Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Readun opened this issue Jun 2, 2024 · 8 comments
Labels
bug Something isn't working as intended. triaged This issue has been assessed

Comments

@Readun
Copy link

Readun commented Jun 2, 2024

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

@Readun Readun added the bug Something isn't working as intended. label Jun 2, 2024
@Frooxius
Copy link
Member

Frooxius commented Jun 2, 2024

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
Copy link
Author

Readun commented Jun 2, 2024

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
Copy link
Author

Readun commented Jun 2, 2024

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
Copy link
Author

Readun commented Jun 2, 2024

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
Copy link
Author

Readun commented Jun 2, 2024

@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.

@Readun Readun changed the title Specific World creates memory overflow on only Headless Server Convex Hulls throwing exeptions & high CPU usage, even after leaving the world Jun 2, 2024
@shiftyscales
Copy link
Collaborator

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

@shiftyscales shiftyscales added the needs more information More information is requested about this issue. label Jun 3, 2024
@shiftyscales shiftyscales removed their assignment Jun 3, 2024
@Readun
Copy link
Author

Readun commented Jun 4, 2024

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 shiftyscales added triaged This issue has been assessed and removed needs more information More information is requested about this issue. labels Jun 4, 2024
@shiftyscales
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended. triaged This issue has been assessed
Projects
Status: To Do
Development

No branches or pull requests

3 participants