Author Topic: Crash at 'Cleaning up' rendering stage  (Read 3800 times)

2022-06-15, 13:10:34

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Hi,

I try to render a scene with 3ds Max 2022.3.3 & Corona 8 Hotfix 1 on a AMD 3990X PC with 128Go of RAM.

The scene is pretty light:

1.5M polygons total
24 corona proxies
most textures are 4K .jpg, some 16bits tiff (very few, only for displacement)

The scene is 263MB only on disk (Compress on Save disabled), and when the scene is loaded it takes 16GB of RAM.

I render a unique frame, 6000 x 3000 pixels
Physical RAM used while rendering: 33 GB.

The render works fine until the end: 3ds Max crashes on the 'Current Task: Cleaning up' stage.

It's weird because I've already rendered this scene in lower resolution without any issue.
I thought the problem is due to displacement, but visibly not as the RAM consumption is pretty low.

Another cause I can think of is: I try to save the image as '011.cxr'. But there is already a file called 011.cxr on the disk. Can it be the cause of the issue?



Thank you in advance for the help,


2022-06-16, 03:15:21
Reply #1

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Hi,

I restarted my PC and rendered again: this time it worked fine until the end. The image has correctly been saved to an .cxr file.

But when I tried to open the image in Corona Image Editor, I had the following error (see attached).

I had to restart my PC, and only then I was able to open the .cxr image in CIE.


Do you know how can I prevent this issue?

Thank you very much,



2022-06-16, 14:01:40
Reply #2

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5434
    • View Profile
More than half the memory is being used by other apps, not leaving enough for what the CIE needs (it wants about half the memory, but in doing so total memory required is 137 GB). I'd try closing some of those other applications :)
Tom Grimes | chaos-corona.com
Product Manager | contact us

2022-06-17, 02:27:25
Reply #3

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Thanks @TomG
I'll pay attention to that in the future.
It looks like the more RAM you have the more you need ;)

2022-06-17, 10:43:13
Reply #4

hurrycat

  • Active Users
  • **
  • Posts: 111
    • View Profile
I remember having this problem, as I have posted here: https://forum.corona-renderer.com/index.php?topic=35457.msg194336#msg194336

For me it mostly was the Bloom&Glare being enabled, while being on the "Post" tab of the VFB at the cleaning up phase that caused Max to get stuck. So you can try disabling that, or switching tabs.

Other times I think it was due to low RAM (as in your case) so you can try enabling the "conserve RAM" option, under Performance.

Lastly, I would strongly suggest to turn on VFB autosaves (System->System settings), if you haven't already, because It can be a lifesaver in times when something inevitably goes south.

2022-06-20, 08:05:49
Reply #5

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Hi,

Thanks a lot for the advice @hurrycat.
I will try to switch to another tab when rendering, and I activated the Autosave function just in case.

And for the RAM issue I quite don't understand how I could possibly run low in RAM as my PC is 128GB of RAM and the Physical RAM used while rendering is only 33 GB.


2022-06-21, 13:13:57
Reply #6

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Hi all,

So I activated the Autosave function in the System settings, and I rendered a frame for about 1 hour or so.
Then I stopped the rendering by clicking on 'Stop', and 3ds Max crashed.
So I went to the Autosave folder: there are only 2 files inside whereas I told Corona to autosave every 15 minutes, and they're both 0KB.

Does someone know why there's no usable autosave file in the Autosave folder?

2022-06-28, 04:03:14
Reply #7

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Hi everyone,

I've been busy working on this scene, and I tried to render a frame yesterday: it failed again. Same reason: 3ds Max crashes at the end of the render during the 'cleaning up' stage.
I've optimized the scene as far as I could: there's still a lot of lights though, around 170. Most of them are Corona lights, instanced everywhere possible. Lightmix is made of 37 layers.

I doubt it is a memory issue as there is still around 30GB of free RAM when rendering.

Do you guys can think of what might cause the issue and know a solution for it?

(edit) Also: the Autosave feature of Corona doesn't work.
I've set it up to automatically save the currently rendered frame every 15mn (for test purpose) but only 2 files are saved during the whole render which lasts for 3hours+ and they're both 0 KB size on disk, so they're not usuable.

Happy to have your thoughts on that other issue as well (and to create another thread for it if it needs to be posted elsewhere).
« Last Edit: 2022-06-28, 08:12:06 by CrocsBlancs »

2022-06-28, 08:39:03
Reply #8

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
Do you have any minidump from the crash? 'Cleaning up' stage also means: saving out the render result + passes. To me it looks like some kind of file size (not ram size) issue. How large do the CRXs get? I would disable autosave in any case (it takes ages to write such large files) and try to render 3k instead of 6 (you can use 1 pass render stop condition for testing) to see if it's any difference.


Good Luck



Never underestimate the power of a well placed level one spell.

2022-06-28, 10:10:14
Reply #9

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Thank you @Frood.

I don't know how to read the 3ds Max minidump: when I open it with notepad it's unreadable, it looks encrypted.

So I had a look at Max.log.
Here are the last lines:

"...
2022/06/28 16:39:17 INF: [36220] [36572] CORONA : Denoising [41/42]
2022/06/28 16:39:24 INF: [36220] [36572] CORONA : Denoising [42/42]
2022/06/28 16:39:31 INF: [36220] [36572] CORONA : Cleaning up"

Please note I am trying to render a 3440 pixels wide frame (not 6k).

So far I managed to render the scene in 1024 pixels wide only. The CXR is 960MB. So I guess the 3k frame would be around 9GB.

PS: I tried to render as .TIF instead of .CXR, it fails as well.
« Last Edit: 2022-06-28, 10:32:47 by CrocsBlancs »

2022-06-28, 14:29:42
Reply #10

Frood

  • Active Users
  • **
  • Posts: 1903
    • View Profile
    • Rakete GmbH
Hi,

I see you are using "various" drive letters, are those all on standard HDDs/SSDs? Are you sure they are all healthy? Do you (or the user running the Max process) have enough rights to read/write files in the target directory? Does it work if you just render some 1k JPG of another scene? Do you use any scripts/plugins changing or extending the output?

I would start a support ticket where you could describe your setup in detail, there are just too many questions open. And you could attach the minidump, don't delete it :)

https://support.chaos.com/hc/en-us/requests/new


Good Luck




Never underestimate the power of a well placed level one spell.

2022-06-28, 15:22:56
Reply #11

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12714
  • Marcin
    • View Profile
As Frood mentioned, if you haven't done it yet, please contact us about your issue with the captured minidump at https://support.chaos.com/hc/en-us/requests/new

Thanks in advance.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2022-07-01, 19:28:18
Reply #12

Aram Avetisyan

  • Corona Team
  • Active Users
  • ****
  • Posts: 543
    • View Profile
Thank you @Frood.

I don't know how to read the 3ds Max minidump: when I open it with notepad it's unreadable, it looks encrypted.

So I had a look at Max.log.
Here are the last lines:

"...
2022/06/28 16:39:17 INF: [36220] [36572] CORONA : Denoising [41/42]
2022/06/28 16:39:24 INF: [36220] [36572] CORONA : Denoising [42/42]
2022/06/28 16:39:31 INF: [36220] [36572] CORONA : Cleaning up"

Please note I am trying to render a 3440 pixels wide frame (not 6k).

So far I managed to render the scene in 1024 pixels wide only. The CXR is 960MB. So I guess the 3k frame would be around 9GB.

PS: I tried to render as .TIF instead of .CXR, it fails as well.

Hi,

Have you contacted us by sending a ticket? I was not able to find any ticket from t******0@gmail.com
Please use the link Maru provided for submitting a support ticket for the issue you are having and also attach the scene file archive which leads to a crash. Feel free to attach the gathered minidumps and any useful information/file as well.
This way your case will be troubleshooted the best.

Thanks,
Aram
« Last Edit: 2022-07-06, 11:21:10 by maru »
Aram Avetisyan | chaos-corona.com
Chaos Corona Support Representative | contact us

2022-07-10, 08:36:45
Reply #13

Tom

  • Active Users
  • **
  • Posts: 224
    • View Profile
    • www
Hi,

I was about to send the minidump file on your ticketing system but I can't reproduce the 3ds Max crash at the 'Cleaning up' stage actually: I rendered 2 passes in 3K resolution, it worked just fine.
Then I tried 3.6K but Corona was not able to start rendering: it failed because 'Corona is not able to allocate enough memory'.

So in the end, it is possibly not an internal bug in Corona, but rather a lack of RAM issue. Please note the scene takes 49GB of RAM when opened with 3ds Max and my machine has 128GB RAM.

I may add additional RAM in my machine pretty shortly. If I do so, I will try rendering 3.6K again and see how it goes. I wil keep you updated if something goes wrong again.

Thank you again for your support guys.


2023-02-17, 09:49:41
Reply #14

NazarVitkovskyi

  • Corona Team
  • Active Users
  • ****
  • Posts: 84
    • View Profile
Hello Tom,

May I please know if you were able to reproduce the issue? Is it possible to receive a minidump file from you?