Server Crash Issue in Unreal Engine

Original Discord Post by gatevr | 2023-11-23 10:15:09

Hello, Hope you doing well.
When using the packaged dedicated server, I encountered a problem where the server crashes intermittently after calling " StartTalking() with the parameter ‘RunOnServer=True’ " and then calling FinishTalking(). This issue is not present in the editor mode but only occurs in the packaged version.
Please check the log below attached.

Attachments:

Reply by k3kalinix | 2023-11-23 10:15:38

Hello <@1171638701311410267> Welcome to Convai Community!

Reply by k3kalinix | 2023-11-23 10:16:19

Is it Unreal Engine?

Reply by gatevr | 2023-11-23 10:43:57

<@1023671043287699568> Hello K3,
Yes. Unreal Engine 5.2

Reply by k3kalinix | 2023-11-23 10:46:47

Okay, let me tag Unreal Engine team.

Reply by k3kalinix | 2023-11-23 10:46:51

<@808164597050638367> Could you help?

Reply by mrd7041 | 2023-11-23 11:21:21

Hello <@1171638701311410267> are you trying to create a pixel streaming server ?

Reply by gatevr | 2023-11-24 05:28:34

<@808164597050638367> Hello Mriganka, No pixel streaming is only used for clients and other levels.
It is just included but not used.

In the packaged client, If I try to open the level after I receive a chatbot response, it crashes.
So, I destroyed ConvAI components 3 sec before level unloading for release memory, but it still crashed.
It does not occur in editor mode. Is there any way to release memory as safe?

Attachments:

Replying to gatevr’s Message

Reply by gatevr | 2023-11-24 05:28:34
<@808164597050638367> Hello Mriganka, No pixel streaming is only used for clients and other levels.
It is just included but not used.

In the packaged client, If I try to open the level after I receive a chatbot response, it crashes.
So, I destroyed ConvAI components 3 sec before level unloading for release memory, but it still crashed.
It does not occur in editor mode. Is there any way to release memory as safe?

Reply by mrd7041 | 2023-11-24 05:40:09

Thank You for mentioning that. We are looking into it. We will keep you posted.

Reply by mrd7041 | 2023-11-24 05:59:23

<@1171638701311410267> Are you also creating a VR project ?

Reply by gatevr | 2023-11-24 06:59:08

<@808164597050638367> That’s right. Our basic environment is a VR project.

Replying to gatevr’s Message

Reply by gatevr | 2023-11-24 06:59:08
<@808164597050638367> That’s right. Our basic environment is a VR project.

Reply by mrd7041 | 2023-11-24 07:00:24

<@1171638701311410267> are you using VoiceActivation feature or the regular push to talk ?

Reply by gatevr | 2023-11-24 08:19:44

<@808164597050638367> Yes. We set up [Voice] bEnabled=true in DefaultEngine.ini file, but I’m using Agora voice api instead of UE standard voice system.

Reply by freezfast | 2023-11-24 13:36:53

Hi <@1171638701311410267>, just to understand your setup correctly, you have a dedicated server running on Windows and connected to it is a client running on VR, and the crash is happening on the Windows server, is that correct?

Reply by freezfast | 2023-11-24 13:46:08

<@1171638701311410267> we could not find trace for Convai in the crash message. However, as we work on replicating this crash, we have made a few stability updates to the plugin that could fix it, could you try downloading and extracting the following beta plugin Discord

Additionally, it would help our team to faster pinpoint the issue, if you could send us the steps required to replicate the issue, or a minimal windows project where the issue is apparent. Thanks!

Reply by gatevr | 2023-11-27 08:40:04

<@365628745886859267> Hi BleadFast,
Dedicated server running on windows, client running on windows with VR.
Crash is happening on the windows dedicated server.

Reply by gatevr | 2023-12-05 09:36:00

The crash in packaged game problem was solved after we changed the plugin to beta.
But there’s a problem that AI doesn’t respond.
Even we tested it in editor mode, it happened.
We’ve got logs as follows.

Attachments:

Reply by freezfast | 2023-12-05 09:43:36

Hi <@1171638701311410267>, glad to hear it is fixed on your side, we were still in the middle of trying to replicate the issue, you can access the latest plugin build as well by following the installation instructions on the git repo here: GitHub - Conv-AI/Convai-UnrealEngine-SDK: This Unreal Engine plugin integrates Convai API for conversational AI and environment perception and action-taking by the AI in Unreal Engine.

Reply by freezfast | 2023-12-05 09:47:35

Few questions regarding the character not responding though:

  1. Does it always happen? I saw two logs from you and one of them seemed to have a response
  2. Did the issue start to happen after updating to the beta plugin or did it happen sometimes as well before?
  3. Do you get any of voice transcriptions but no response from the character, or their are neither user transcription nor a response?
  4. Could you try waiting for 1-2 mins to see if a response or an error comes in and share with us here?

Reply by gatevr | 2023-12-05 10:22:30

It working 1 or 2 times if we play and stop 10 times roughly.
It wasn’t happened until updating plugin to the beta.
There’s no responses at all in fail case.
It’s a fail case log with 2 minutes waiting response.

Attachments: