Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: VIZSET on 2022-11-16, 17:08:16

Title: Crash with OSL wParallax
Post by: VIZSET on 2022-11-16, 17:08:16
Hello!

In 3ds Max 2023 with Corona 9 I have stable crashes with OSL wParalllax textures.
I use OSL map on physical material with self-illumination and corona multi-map inside.
In empty scenes OSL works correctly.

Previous version 2020 with Corona 8 works correctly (including huge scenes with the same material), I didn't change any parameters, paths. etc.
Title: Re: Crash with OSL wParallax
Post by: romullus on 2022-11-16, 19:34:29
I moving the topic to bug reporting board, but please read this article and provide additional material that would help to identify the issue, like minidumps, scenes, assets that's cause the issue.

https://support.chaos.com/hc/en-us/articles/4649117083409-How-to-report-issues-3ds-Max-
Title: Re: Crash with OSL wParallax
Post by: maru on 2022-11-17, 10:01:26
Yep, we will need the scene itself, or at least specific instructions how to reproduce the crash.
The most convenient way to report the bug and attach your files will be through our support portal - https://support.chaos.com/hc/en-us/requests/new
Title: Re: Crash with OSL wParallax
Post by: VIZSET on 2022-11-17, 10:55:29
I moving the topic to bug reporting board, but please read this article and provide additional material that would help to identify the issue, like minidumps, scenes, assets that's cause the issue.

https://support.chaos.com/hc/en-us/articles/4649117083409-How-to-report-issues-3ds-Max-

Date/Time: 2022-11-17 14:53:31 +05:00
Application: 3dsmax.exe
Error: Unknown exception - code c000000d (first/second chance not available)
Crashed Module Name: ucrtbase.dll
Exception Address: 0x00007fff5bfc1881
Exception Code: c000000d
Title: Re: Crash with OSL wParallax
Post by: maru on 2022-11-17, 10:58:11
Thanks! We will look into it.
Title: Re: Crash with OSL wParallax
Post by: SmurfN on 2022-11-18, 08:44:00
ive also been having some issues with this i suspect, but seemingly only on my computer in the office. opening many scenes with wParallax the first render renders fine, then if i stop and start a render it crashes 90% of the times if it contains wParallax planes. If i hide the wParallax in the scene it seems to work fine.
Not sure but i think its happening if i have the wParallax material in my material editor visible.
Title: Re: Crash with OSL wParallax
Post by: GeorgeK on 2022-11-18, 09:21:02
ive also been having some issues with this i suspect, but seemingly only on my computer in the office. opening many scenes with wParallax the first render renders fine, then if i stop and start a render it crashes 90% of the times if it contains wParallax planes. If i hide the wParallax in the scene it seems to work fine.
Not sure but i think its happening if i have the wParallax material in my material editor visible.

Hi I have tried to reproduce the crash but was unsuccessful, would it be possible to share an archived scene with us that the issue is reproducible? Ideally use: https://support.chaos.com/hc/en-us/articles/4649117083409-How-to-report-issues-3ds-Max- as suggested above. Thanks!
Title: Re: Crash with OSL wParallax
Post by: maru on 2022-11-21, 11:21:12
Hi VIZSET and SmurfN, could you please share some more details here and/or submit support tickets about this issue? You can submit tickets here: https://support.chaos.com/hc/en-us/requests/new
As George explained, so far we were unable to reproduce the crash.
Title: Re: Crash with OSL wParallax
Post by: VIZSET on 2022-11-25, 14:35:23
Thank you for your response! I sent request #68772, the full file is included.
Title: Re: Crash with OSL wParallax
Post by: NikHappy on 2022-11-26, 21:53:30
Hello!

In 3ds Max 2023 with Corona 9 I have stable crashes with OSL wParalllax textures.
I use OSL map on physical material with self-illumination and corona multi-map inside.
In empty scenes OSL works correctly.

Previous version 2020 with Corona 8 works correctly (including huge scenes with the same material), I didn't change any parameters, paths. etc.
I have the same problem! 9 times from 10 3ds Max crashes. First render (no matter regular or interactive) is OK. But the next one crashes the 3ds Max.
My colleague has the same problem (his setup: 3ds Max 2023.2 + Corona 9 + Win 10 / my setup: 3ds Max 2023.2.2 + Corona 9 + Win 11).
Everything was fine in the previous versions: 3ds max 2022.2 + Corona 8
Title: Re: Crash with OSL wParallax
Post by: mienda on 2022-11-27, 10:43:58
Same for me, yesterday I tried to render a simple plane with an evermotion archmaterials 4 texture and 3dsmax crashes inexorably but somewhat randomly (sometimes after the 1st render or sometimes after a few renders). I use the evermotion OSL script (which automates the creation of OSL material)
I'm on max 2023.2.2, win 11 and corona 9.
Thanks a lot
mienda
Title: Re: Crash with OSL wParallax
Post by: scionik on 2022-11-29, 09:32:25
Hi, dev.team,
Could you please help me? OSL parallax is time to time crashes 3ds Max to desktop in different scenarios. Most crashes occur while playing with materials (different, not only with OSL parallax). Could you please check it out to be sure wats wrong with it?

PS
I'm using 3ds Max 2023.2.2 with Corona 9 (there is a lot of information on the Internet about the correct working parallax with 3ds Max 2022 corona 7, unfortunately, I cannot check it out).
I cannot get the 3ds Max minidump file, because crashing won't display this window.

Report #69464
Title: Re: Crash with OSL wParallax
Post by: VIZSET on 2022-12-02, 22:35:46
The problem is still repeated on Corona 9 Hotfix 1.

upd.
The team is investigating the scene. Thanks them to all.
Title: Re: Crash with OSL wParallax
Post by: scionik on 2022-12-06, 10:59:47
some news about it?
Title: Re: Crash with OSL wParallax
Post by: maru on 2022-12-08, 13:25:19
We were contacted by multiple users, we have at least one scene where the issue is reproduced and a minidump. The issue is reported for the dev/QA teams to investigate. I cannot tell what is wrong right now, but if it's something in Corona, we should be able to fix it. Crashes are high priority for us.
Title: Re: Crash with OSL wParallax
Post by: scionik on 2022-12-09, 07:41:56
Thank you
Title: Re: Crash with OSL wParallax
Post by: NikHappy on 2022-12-09, 17:50:58
We were contacted by multiple users, we have at least one scene where the issue is reproduced and a minidump. The issue is reported for the dev/QA teams to investigate. I cannot tell what is wrong right now, but if it's something in Corona, we should be able to fix it. Crashes are high priority for us.
I switched back to 3ds Max 2022.3 + Corona 9, and now render launch crashes with OSL are completely gone. So most likely the problem is in 3ds Max 2023, and not in Corona
Title: Re: Crash with OSL wParallax
Post by: Ink Visual on 2023-01-06, 17:58:44
We still have crashes on Max 2022.3, so I think the issue is still there, either on the plugin side (wParallax) or Corona
Title: Re: Crash with OSL wParallax
Post by: rowmanns on 2023-01-09, 10:54:48
For info we have this reported and I'll let you know when we have some more information.

Cheers,

Rowan

(Internal ID=1017652424)
Title: Re: Crash with OSL wParallax
Post by: artmaknev on 2023-02-25, 13:24:43
Hello,

Can you please contact hello(at)wparallax.com

We are working on some solutions to this issue, will be good to get some beta testers of new scene setups to check if it still crashes.

Thanks!
Title: Re: Crash with OSL wParallax
Post by: artmaknev on 2023-02-26, 20:46:40
I can also confirm, the error occurs in max 2023 and corona9 (also vray6). 
Not sure if it is max problem, renderer problem, or osl (however, osl seems to work fine in previous versions).
I was doing different tests with different material setups, original wparallax material setups use multimaps, I have tried without and it crashes but less ofthen. 

A very strange thing is that wparallax original scene works perfectly fine with alot of constand tweaking and basically pushing everything to the limit, absolutely no crashes occur.  Only when importing the planes into a new project scene, then the crashes might occur, sometimes it works just fine, and other times just randomly crashes.   So, maybe the issue is with Material Edtior, because in a new scene, the materials are not yet loaded?

UPDATE: Just tested same scene in Max 2022 + Corona 9, there is no crash, works totally fine with all the tweaking of osl maps in material editor.
Title: Re: Crash with OSL wParallax
Post by: Helldoor on 2023-05-22, 16:10:53
Hey there,

are there any updates on the issue since February?
I experience the same problems the members before me described: Constant crashes since I have some wParallax planes in my scene. It doesn't necessarily happen after the first Interactive Render - the crashes are pretty random, but quite constant in their appearance.

I use Max 2023 with Corona 9, both updated to the latest product versions.
Title: Re: Crash with OSL wParallax
Post by: mienda on 2023-05-23, 11:44:21
Same for me, even the new version of parallax shaders crashes randomly but inexorably. it is totally unusable in production because it is far too unstable. I tested them on max 2022, 2023 and 2024 with corona 9 without success..
Title: Re: Crash with OSL wParallax
Post by: Helldoor on 2023-05-31, 12:39:54
@mienda

Well, I wouldn't go as far as calling it "totally unusable", as I managed to finish a competition, using parallax for the retail areas and thus saving tons of time and render ressources, but it surely is infuriating and far from how it should be.
The workaround I went with was setting up the parralax while the scene was still lightweight. Had to put up with constant saving and occasional crashes for a while, but after the parallax planes were set up, I just made the layer they were on invisible and was able to continue working without further crashes. Then, I'd just turn them on for preview renders and the final production (4K) and had no problems finishing the project.

Hope the issue will get resolved soon, though. Parallax solutions are a big help and it would be great to be able to use reliably.
Title: Re: Crash with OSL wParallax
Post by: arjitmehra on 2023-06-19, 10:56:21
Any updates on this? Happens mostly with a lot of Parallax maps in the scene.
Title: Re: Crash with OSL wParallax
Post by: mienda on 2023-06-19, 14:08:12
Same for me, I hope it will be fixed soon because I suffered random crashes when opening, manipulating and rendering with all OSL parallax systems (as well with the new version of Wparallax and versions of Evermotion ( archmodels 267 and 271) I tested these materials on 2 different systems (threadripper 3990X and Intel i9 13900HX) with 3dsmax2024 and corona 9 HF3 without success.. These materials are not reliable at all and are unusable in production.

Thanks
Title: Re: Crash with OSL wParallax
Post by: gabor on 2023-08-01, 23:14:56
Hi,
I have the same problem, on Corona 10.1 and max 23 and 24 too. I schould render an animation with the maps, but currently this is not possible, since max crashes after the first render almost on each rendernodes...
Anyone found a workaround?
Thanks.
Title: Re: Crash with OSL wParallax
Post by: gabor on 2023-08-02, 12:26:30
Hi,
has this been solved, or am I missing something? Since the topic has been moved to the solved section...
Thanks.
Title: Re: Crash with OSL wParallax
Post by: Juraj on 2023-08-02, 13:24:44
Weird, why is this in solved? The OSL wParallax has such a potential to revolutionize workflow in ArchViz but not if it's crash-fest :- (.

It could be the fault of the particular OSL, but not OSL in general by itself since I still use lot of OSL nodes in my shaders that are completely fine.
Title: Re: Crash with OSL wParallax
Post by: aaouviz on 2023-08-02, 13:32:40
Yep, constant crashes here for me too.
Title: Re: Crash with OSL wParallax
Post by: Ink Visual on 2023-08-02, 17:40:48
Yep, this is definately not solved yet.
We would love to use it in production, but simply cannot due to instability.
Title: Re: Crash with OSL wParallax
Post by: gabor on 2023-08-03, 01:52:43
Guys, you should try the shadersbox method, also from wParallax. It uses an already unwrapped box, you just have to apply the exr map to it. For me, it's working fine with the same maps as the osl version, but without crasing max. There are no osl maps in the scene, but the windows have the same 3d effect.
Title: Re: Crash with OSL wParallax
Post by: Ink Visual on 2023-08-03, 10:26:38
The box method is just not as convenient as using simple plane behind the window. It's much harder to set up procedurally if there are many building types involved.
Planes + OSL are so much better and faster to use, if only they weren't crashing.
Title: Re: Crash with OSL wParallax
Post by: maru on 2023-08-03, 13:20:34
Sorry for the lack of updates. According to the minidump that we received, the crash is inside 3ds Max and it can be reproduced without having Corona installed at all.
If you are not happy about something and you have a scene and/or minidump, please always contact us about it here: https://support.chaos.com/hc/en-us/requests/new
The best thing we can do here is to contact Autodesk, and for this to work out we also need your permission to share your scenes/minidumps with them.
Title: Re: Crash with OSL wParallax
Post by: denyskozakov on 2023-09-07, 02:43:41
Hey! I still have this problem, any updates about this? Thanks!
Title: Re: Crash with OSL wParallax
Post by: wparallax on 2023-09-10, 22:46:20
Hi guys,

Indeed, the crash issue is very very strange, we are trying to find some solutions, but at the moment, best option is to use lower res maps (2K, 1K), or the Box Method. The OSL seems to be pretty clean, already asked two OSL devs to double check.

What I am trying now is to convert EXRs to TX files, someone has suggested that it is a very efficient way to render textures because it automatically downscales and upscales the textures depending how far or close you are to the plane.  TX format also loads much faster and allows for thousands of planes to be rendered without running out of RAM.  So far, some tests were quite successful with this format, aside from some error messages by corona/vray renderers, but it didn't affect the rendering. 

If you have access to Retail Pack 2, we added an Experimental File into Retail Pack 2 folder on gumroad, please give it a try. 

If anyone else without Retail 2 access, is interested to try the mipmapping tx file type, please let me know.

Best,
Art