Garbage collection: freezes

I have UMG widget with a lot of other widgets inside. Sometimes I’m creating it and after that, when garbage collection happening, game freezing. Right on the tick by every minute of a game.

I wounder: why garbage collecting actually freezing game? I thought it’s something that works in background. Why all thread should wait while garbage will be collected?

Hello ,

I was unable to reproduce this issue on my end. I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. What version of the engine are you using?
  2. Can you reproduce this in a clean project?
  3. If so, can you please provide a detailed list of steps to reproduce this issue?
  4. Can you tell me at what points exactly your game is freezing?
  5. Do you have any loops inside your widgets?

Hi ,

Sorry, I didn’t mentioned that I’m not only creating but removing widget too. It have a lot of inner widgets. And everyone have a pointer to main UserWidget and parents. Maybe it’s about some sort of cycle-reference?

Hello ,

I am still unable to reproduce this issue. Could you post a reply with the answers to the questions asked in my first post?

Hello ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.