cancel
Showing results for 
Search instead for 
Did you mean: 

OvrAvatar crashes Unreal Engine in Avatar sample

SplicedDNA
Protege
When running the provided sample AvatarSamples, the entire program crashes with this message:

`
Assertion failed: !AssetToMaterialStringsMap.Contains(RenderData->meshAssetID) [File:D:/Build/++UE4+Licensee/Sync/Engine/Plugins/Runtime/Oculus/OculusAvatar/Source/Public/OvrAvatar.cpp] [Line: 380]
`

Unreal: 4.25.1 (tried on oculus source as well as epic binary)
Oculus Avatar Plugin: 1.36.0
Oculus Plugin: 1.44.0
Environment: Windows 10 x64

6 REPLIES 6

SplicedDNA
Protege
Note: It has something to do with hands being rendered

Anonymous
Not applicable


When running the provided sample AvatarSamples, the entire program crashes with this message:

`
Assertion failed: !AssetToMaterialStringsMap.Contains(RenderData->meshAssetID) [File:D:/Build/++UE4+Licensee/Sync/Engine/Plugins/Runtime/Oculus/OculusAvatar/Source/Public/OvrAvatar.cpp] [Line: 380]
`

Unreal: 4.25.1 (tried on oculus source as well as epic binary)
Oculus Avatar Plugin: 1.36.0
Oculus Plugin: 1.44.0
Environment: Windows 10 x64



I'm experiencing exactly the same problem here, with the same setup.
What I've noticed is that it only crashes with Oculus App Version 18. More precisely, I'm on 18.0.0.311.517.

We've run the same test in another PC in my company, which is still on Oculus App Version 17, and the crashes do NOT occur.

Would gladly appreciate some comment about this by Oculus Staff, since this is a deal breaker for our app. We can't continue the development of our solution, since it is deeply intregrated with the Oculus Avatar Plugin. Should we drop the use of it entirely? I would like to know as soon as possible if this plugin is going to be discontinued or deprecated.

Neontop
Heroic Explorer
I can confirm the crash in Oculus ue4.24 and ue4.25.
I sent a ticket. 
I hope that there is a solution... 😞

Neontop
Heroic Explorer
B)

It is coming definitively from this line code 380 in OverAvatar.cpp:
L 380 check(!AssetToMaterialStringsMap.Contains(RenderData->meshAssetID));
I put this instead:
if (!AssetToMaterialStringsMap.Contains(RenderData->meshAssetID))
                {
                }
                else
                {
                }

and there is no crash !!
Someone with a good knowledge in C++ , please help !!!
Thanks




Neontop
Heroic Explorer

Neontop said:

B)

It is coming definitively from this line code 380 in OverAvatar.cpp:
L 380 check(!AssetToMaterialStringsMap.Contains(RenderData->meshAssetID));
I put this instead:
if (!AssetToMaterialStringsMap.Contains(RenderData->meshAssetID))
                {
                }
                else
                {
                }

and there is no crash !!
Someone with a good knowledge in C++ , please help !!!
Thanks





Better like this:
if (!AssetToMaterialStringsMap.Contains(RenderData->meshAssetID))
                {
                   
                }

                TArray<FString> Materials;
                Materials.Add(MaterialString);

This is the Oculus Branch 4.24

SplicedDNA
Protege
If you disable hands, then you can continue developing for now.