Unreal getting crash with Octane while using Metahumans

Sub forum for bug reports

Moderator: ChrisHekman

jitendra
Licensed Customer
Posts: 143
Joined: Sat Oct 16, 2010 6:09 am

I have Unreal Engine 5.0.2 and UE-MetaHumans 5.0 Plugin and Sample Project.

The moment I am loading Octane (latest version OctaneStudio0_53_UE5_0) it is generating error while loading the scene and textures.
LoginId:7c1b41da4486edc3542ab698d1685416
EpicAccountId:18d5f77a62ce4ec48a168866af27b389

Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:D:\GIT\UnrealPlugin\OctaneUnreal\Plugins\OctanePlugin\Source\OctanePlugin\Private\Octane\Objects\MaterialTranslator\OSLMaterialTranslator.h] [Line: 1291] Index -1/401, Platform=0

UnrealEditor_OctanePlugin
Please help.
Jitendra
Best Regards, Jitendra
hoseinbash
Posts: 3
Joined: Thu Mar 11, 2021 10:57 am

open up your scene, and get rid of the metahuman in your level outliner (simply delete the metahuman from your level before you let octane load itself)
then go and open the blueprint of your metahuman and delete all the hair objects (including hair, brows, lashes and peachfuzz)
compile and save, and then drag your MH in the scene and let Octane load everything, you won't face a crash probably.

the problem is, I assume, with the OSL translator of the custom metahuman hair materials, which it cannot properly translate.
a workaround is to create instances of the material named "hairDefaultMaterial" and then assign it to all hair components in your metahuman blueprint.
jitendra
Licensed Customer
Posts: 143
Joined: Sat Oct 16, 2010 6:09 am

Thank you. I will try and will post the results here.
Best Regards, Jitendra
ChrisHekman
OctaneRender Team
Posts: 1055
Joined: Wed Jan 18, 2017 3:09 pm

Thanks for the report. Ill check out the crash in the sampleproject.

While we are getting close to supporting all the sub-elements for metahumans, they are still not fully supported yet. This crash should not be happening though.
jitendra
Licensed Customer
Posts: 143
Joined: Sat Oct 16, 2010 6:09 am

Thank you ChrisHekman.
We look forward to having it fixed.
Best Regards, Jitendra
ChrisHekman
OctaneRender Team
Posts: 1055
Joined: Wed Jan 18, 2017 3:09 pm

This crash has been fixed, and will be part of the next build.

However, the underlying material (MI_Hair1) that causes the crash will not convert properly to Octane.
jitendra
Licensed Customer
Posts: 143
Joined: Sat Oct 16, 2010 6:09 am

I have checked with updated version [OctaneStudio0_54_UE5_0]

But still facing same crashing issue.


I have changed all hair materials to material instance of "hairDefaultMaterial" and load octane viewport. This time it didn't crashed but the face skin material was changed to default black material and eyes are not present in viewport. Attaching screenshot of that, too.
LoginId:7c1b41da4486edc3542ab698d1685416
EpicAccountId:d530f5d93bf64670825e41756863451d

Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:D:\GIT\UnrealPlugin\OctaneUnreal\Plugins\OctanePlugin\Source\OctanePlugin\Private\Octane\Objects\MaterialTranslator\OSLMaterialTranslator.h] [Line: 1334] Index -1/401, Platform=0

UnrealEditor_OctanePlugin
dcomp
Attachments
Compared.png
Best Regards, Jitendra
ChrisHekman
OctaneRender Team
Posts: 1055
Joined: Wed Jan 18, 2017 3:09 pm

jitendra wrote:I have checked with updated version [OctaneStudio0_54_UE5_0]

But still facing same crashing issue.


I have changed all hair materials to material instance of "hairDefaultMaterial" and load octane viewport. This time it didn't crashed but the face skin material was changed to default black material and eyes are not present in viewport. Attaching screenshot of that, too.
LoginId:7c1b41da4486edc3542ab698d1685416
EpicAccountId:d530f5d93bf64670825e41756863451d

Assertion failed: Index >= 0 && Index < CurrentScopeChunks->Num() [File:D:\GIT\UnrealPlugin\OctaneUnreal\Plugins\OctanePlugin\Source\OctanePlugin\Private\Octane\Objects\MaterialTranslator\OSLMaterialTranslator.h] [Line: 1334] Index -1/401, Platform=0

UnrealEditor_OctanePlugin
dcomp

Sorry, I meant the next build, as in the upcomming build we will be releasing shortly.

Metahuman materials use a couple of material nodes we dont support yet - which break the skin material.
And the eyes have a thing layer material on top of that that is also not supported yet, which causes the eyes to become black.
We are working on supporting these.
jitendra
Licensed Customer
Posts: 143
Joined: Sat Oct 16, 2010 6:09 am

Downloaded the latest update [OctaneStudio0_55_UE5_0].

It is great to see that there is no crashing issue.

Still problem with face skin material and eye material of Metahumans.

Is there any way to fix this face skin and Eye material problem in current version[OctaneStudio0_55_UE5_0]?
Best Regards, Jitendra
ChrisHekman
OctaneRender Team
Posts: 1055
Joined: Wed Jan 18, 2017 3:09 pm

jitendra wrote:Downloaded the latest update [OctaneStudio0_55_UE5_0].

It is great to see that there is no crashing issue.

Still problem with face skin material and eye material of Metahumans.

Is there any way to fix this face skin and Eye material problem in current version[OctaneStudio0_55_UE5_0]?
You will need to replace the Custom Nodes that failed to convert in the skin and eye material. You should be able to see which nodes dont work in the unreal logs.
Atleast a couple of the Custom Nodes dont work.
Post Reply

Return to “Bug Reports”