ruyo / VRM4U

Runtime VRM loader for UnrealEngine5
Other
1.4k stars 181 forks source link

Unreal Engine 5.0.1. crashes when trying to import vrm file #149

Open MaximumObesity opened 2 years ago

MaximumObesity commented 2 years ago

So, when I try to import my model/vrm file into unreal it crashes. But it imports just fine into unity. The version I'm using is 5.0.1. It gives me this error Assertion failed: Pair != nullptr [File:E:\Program Files\Epic Games\UE_5.0\Engine\Source\Runtime\Core\Public\Containers\Map.h] [Line: 656]

UnrealEditor_VRM4ULoader UnrealEditor_VRM4ULoader UnrealEditor_VRM4ULoader UnrealEditor_VRM4UImporter UnrealEditor_UnrealEd UnrealEditor_UnrealEd UnrealEditor_AssetTools UnrealEditor_AssetTools UnrealEditor_AssetTools UnrealEditor_AssetTools UnrealEditor_ContentBrowserAssetDataSource UnrealEditor_ContentBrowserAssetDataSource UnrealEditor_ContentBrowserAssetDataSource UnrealEditor_ContentBrowserAssetDataSource UnrealEditor_ContentBrowserAssetDataSource UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_Slate UnrealEditor_ApplicationCore UnrealEditor_ApplicationCore UnrealEditor_ApplicationCore UnrealEditor_ApplicationCore user32 user32 UnrealEditor_ApplicationCore UnrealEditor UnrealEditor UnrealEditor UnrealEditor UnrealEditor UnrealEditor kernel32 ntdll

I tested another random model taken from vroid and that one works just fine but for some reason my specific model cannot import correctly. The plugins from what I've seen are installed correctly because the other avatar works but not mine. I'm not really sure what else to do at this point. I've been working with other vtubers who have successfully ported their avatars into unreal and even they're not really sure what to do. Here's a copy of the log. I don't know if it's a texture issue or if it's the engine as well as the avatar. But the main issue that pops up is the assertion error.

UNREALLLLLLLL.log

ruyo commented 2 years ago

Thanks for the report & sharing the log.

According to the log, it appears to be stopping at ensureMsgf. This may be different from the reported situation. I just don't think this kind of crash happens during normal editor execution. It is an action that is checked when launched from the debugger. Try testing with a simple project in the launcher version of UE5.

If your VRM file is a shareable one, I can look into the details. Please check the license and if it is OK, send me the file. Thanks.

MaximumObesity commented 2 years ago

Np, thank you for the response! Unfortunately, the licensing says that redistribution is prohibited, as I commissioned an artist to develop it for me because I have no knowledge on how to make my own, and little to no knowledge of how to use unreal really. When you say to try a simple project I'm not really sure what you mean exactly. The project I shared is brand new and the only thing I added were the plugins to make it so avatars could be used inside the engine. It was made using the virtual production template in the film/video and live events section.

ruyo commented 2 years ago

I see, that project is fine. If the error still occurs with the modified model, please attach the log again.