The scene I am working on is regularly crashing, I thought at first this was due to the displacement in the scene but I have turned it off and I as still getting it. It is quite a detailed scene but it should fit in memory fine, it seems like there is a memory leak or something? Please see attached screenshot.
Windows 10 1809, Max 2020 with latest patches, latest version 6.2.2 of Itoo forest object was in the scene but has been deleted so just the 0 sized object warnings you can see, latest Corona, nothing else special to report.
I’ve been looking at this today and I haven’t been able to reproduce any crash or memory leak so far. During rendering 3ds Max is using around 20gb of RAM for me.
Would you be able to share a screenshot of your task manager “Processes” tab when the crash occurs?
I won’t have chance to for a while, I’ve moved to another project and very stacked here at the moment. All I’d say is it sometimes takes a few hours, e.g. The first few corona auto saves I could open and later ones I could not. Also maybe of interest I’m using an AMD 2990WX processor with 64GB RAM.
No, what I mean is the render will do something part way through the process where the CXR will become unreadable.
Steps are:
Press Render
Sometime later maybe an 2 hours or more 2-3 ‘bad allocation’ errors will pop up, The render will continue, I have learned that I can save out Exr’s from each channel separately and open them fine, but if I try to save and open a CXR then it will fail to do so.. giving the same error message as in the screen shot on the OP.
Also.. attempting to stop the render after an bad allocation error messages will cause Max to crash.
These errors happen when the system runs out of memory, so in that respect it makes sense that you won’t be able to save out CXRs after this error message has appeared as there is no RAM available.
I will leave the scene rendering overnight tonight and see if I am able to reproduce this error, which I was not able to do today.
I’ll get back to you in the morning with my results and we can see where to go from there.
But what I don’t get, if I am running out of memory, is why I’m showing RAM usage of around 40GB (24GB free) in task manager when I am getting these errors.
The CXRs are large, around 7GB for a 6K render is there a limit to how large / how many passes can be stored in them?
I already updated everything to latest before I came around to posting. RAM speed is showing 1064.1Mhz on CPU-Z 8 slots matched set DDR4 Corsair CMK64GX4M8A2400C14, Mainboard Gigabyte Aorus X399 Xtreme-CF, Latest BIOS (F5i), not overclocked.
I will try your other suggestions, but it may be a few weeks before I can come back to this.
So I’m working on a completely new scene and I’m still experiencing this problem or at least something very similar, I’ve not had any bad allocations during render, however if I set a render going with DR and manually stop it by pressing ‘STOP’ in the Corona VFB a few hours later I get a around 3 bad allocation errors pop up, max will freeze until eventually I try to close the VFB and it crashes out.
My workaround for the moment is that I just have to remember to save the CXR while it is still rendering, a little risky and not ideal.
This does not happen during local rendering, only while using DR.
Are there any logs I can send you to help you diagnose the issue?