Author Topic: Memory leak (Phoenix + Corona)  (Read 2268 times)

2023-10-23, 14:19:16

brr

  • Active Users
  • **
  • Posts: 134
    • View Profile
Hello corona team & forum users,

Recently, I created a relatively simple scene with Phoenix and Corona.
In this scene, I only created a fluid simulation with multiple sources that interact with each other, mixing the RGB channel.
Regardless of the output image resolution and even in IPR, after a certain number of frames, my PC runs out of RAM.
For rendering a single frame, the scene does not require much RAM, and even a PC with 32 GB can render it in 4K without any issues.
However, after each frame, the RAM usage gradually increases until I encounter a Phoenix error: "Out of memory during volumetric rendering initialization."
If I play the simulation without rendering, the RAM usage remains under control.

I've tested this on five different PCs, ranging from 32 to 128 GB of RAM, and encountered the same problem. Has anyone else had a similar experience?


I hope you can help me because it's really painful to debug and render the animation when I have to restart 3ds Max after every 15-30 frames.

Please take a look at my attachments:
1. `ram_statistic -4xspeed.mp4` - I've recorded a video showing how the RAM usage increases.
2. `ram_statistic-error when out of ram.jpg` - A screenshot of the Phoenix error message that appears when the system runs out of RAM.

My Software versions are:
3ds max 2022.3.8 (24.8 - 24.3.8.3531)
Phoenix 5.20.00 Build 20230706
Corona 10 HF2

Best regards


2023-10-25, 10:43:31
Reply #1

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 662
    • View Profile
Hi,

Investigating this issue could take some time, it would be helpful if you could submit a support ticket. Please use the following link to do so: https://support.chaos.com/hc/en-us/requests/new

Additionally, please also attach your scene file and provide step-by-step instructions to reproduce the issue.

Looking forward to it.
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us

2023-10-26, 13:37:32
Reply #2

brr

  • Active Users
  • **
  • Posts: 134
    • View Profile
Hi,

Investigating this issue could take some time, it would be helpful if you could submit a support ticket. Please use the following link to do so: https://support.chaos.com/hc/en-us/requests/new

Additionally, please also attach your scene file and provide step-by-step instructions to reproduce the issue.

Looking forward to it.

Hi Avi,

thank you for the Information.
I have submitted the scene with ticket  #168251

Best Regards

2023-10-26, 13:53:46
Reply #3

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 662
    • View Profile
Hi,

We have received your ticket, we will try to repro it and update you soon.
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us

2023-11-08, 05:48:42
Reply #4

Avi

  • Corona Team
  • Active Users
  • ****
  • Posts: 662
    • View Profile
Just a quick update on this issue.

We were able to reproduce it. It seems like a bug, caused by the PhoenixFDGridTex map which is connected to the diffuse slot of Corona physical material. We have logged this in our system to be further reviewed by our devs. We will let you know as soon as we have any update on this.

(Internal ID=1244581838)
Arpit Pandey | chaos-corona.com
3D Support Specialist - Corona | contact us

2023-11-21, 08:56:08
Reply #5

rowmanns

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

Would you be able to test this issue in v11 RC2? We have not been able to reproduce the issue there.

Thanks,

Rowan
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2023-11-21, 21:37:37
Reply #6

brr

  • Active Users
  • **
  • Posts: 134
    • View Profile
Hi,

Would you be able to test this issue in v11 RC2? We have not been able to reproduce the issue there.

Thanks,

Rowan

Hello Rowmanns,

I just installed Corona 11RC2 and tested the scene again. The problem is still there. Please look at my attachment.

Best Regards

2023-11-24, 20:22:12
Reply #7

brr

  • Active Users
  • **
  • Posts: 134
    • View Profile
Hi,

Would you be able to test this issue in v11 RC2? We have not been able to reproduce the issue there.

Thanks,

Rowan

Hello, Rowmanns

Just tested Corona 11 RC3 because I saw this under bug fixes:
Fixed rare issue where the rendering could get stuck and consume large amounts of RAM.
Sadly, my case with Phoenix and Corona is not resolved.

I must admit, the engine behaves a bit differently:

- Initially, the RAM consumption increases (from 32% to 88%) from frame 0 to frame 7.
- Then, a low RAM memory window pops up.
- After that, the rest of the RAM gets accumulated (99%) until frame 13.
- Suddenly, RAM consumption drops drastically (50%), but then the cycle repeats and ends with an unexpected error due to no available RAM.

I needed to completely restart my PC because most of the other programs also stopped working. I hope you can fix this by the v11 release.

You can find the attached video.

Best Regards

2023-11-27, 08:41:38
Reply #8

rowmanns

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

Yeah, unfortunately, that fix was for a slightly different issue, not relating to Phoenix

We have been looking into this deeper.

It seems that this is actually an issue within Phoenix. We have forwarded it on to the Phoenix team, and they are now investigating a fix for it.

Thanks,

Rowan
« Last Edit: 2023-11-27, 08:46:36 by rowmanns »
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2023-11-27, 18:20:09
Reply #9

brr

  • Active Users
  • **
  • Posts: 134
    • View Profile
Hi,

Yeah, unfortunately, that fix was for a slightly different issue, not relating to Phoenix

We have been looking into this deeper.

It seems that this is actually an issue within Phoenix. We have forwarded it on to the Phoenix team, and they are now investigating a fix for it.

Thanks,

Rowan

Hello, Rowmanns

Thanks for the information. This is interesting because Arpit Pandey, who replied to my support ticket, wrote :

"After our investigation, we have identified that the problem is caused by the PhoenixFDGridTex map which is connected to the 'Paint mixing via Phoenix RGB channel' material in your provided scene. If you disconnect the PhoenixFDGridTex map from the material, the RAM usage remains stable during rendering.

We have logged this issue as a bug report in our system to be further reviewed by our devs. If there will be any update on this, we will let you know.

It seems the issue is related to Corona, I also investigated it with V-Ray, and it seems to be rendering fine with V-Ray. I have already reported this to our devs. At the current time, we don't have any specific workaround. As soon as we have any update on this we will let you know."


In any case, the most important thing is that it is in the progress. Because in Phoenix, there are enough cases where it is necessary to mix the colors of liquids and leave the corresponding color via wetting map of them.

Best regards



2023-11-28, 09:30:06
Reply #10

rowmanns

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

I understand the confusion, the issue is really in Phoenix. It took some digging to get to the root of the cause.

I'll let you know when we have some more information.

Cheers,

Rowan

(Internal ID=1244581838)
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2023-12-07, 16:56:25
Reply #11

rowmanns

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hi,

This issue is fixed in the latest Phoenix nightly.

You can grab the latest nightly from here: https://nightlies.chaos.com/ If you have trouble accessing this page you can submit a support ticket and they'll give you access.

Cheers,

Rowan
Please read this before reporting bugs: How to report issues to us!
Send me your scene!

2023-12-09, 13:42:04
Reply #12

brr

  • Active Users
  • **
  • Posts: 134
    • View Profile
Hi,

This issue is fixed in the latest Phoenix nightly.

You can grab the latest nightly from here: https://nightlies.chaos.com/ If you have trouble accessing this page you can submit a support ticket and they'll give you access.

Cheers,

Rowan

Hello, Rowmanns,

Thank you for the updated information. I have installed Phoenix nightly build (2023-12-08) and started the scene, tested it on the first 60 frames:

- There are no issues with RAM anymore.
- At frame 25, I got Corona NAN error (Corona 11 Final), but the rendering continued fine.
- I rendered until frame 60, closed and reopened the scene to check if the NAN error would appear again.
- There were no more NANs.
- I finished testing up to 60 frames without issues with RAM and NANs.

What do you think? Should I test it a bit more because of the NAN in the first launch?

Best Regards

2023-12-11, 10:50:33
Reply #13

rowmanns

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 1892
  • Corona for 3ds Max QA Team
    • View Profile
Hey,

I will render the scene a few times here and see if I can reproduce the NaN error, but that is definitely to dow ith Corona and not Phoenix. So I'm glad that at least one issue is solved here :)

I'll let you know when I have some more info with regards to the NaN issue.

Cheers,

Rowan
Please read this before reporting bugs: How to report issues to us!
Send me your scene!