V4 Seg fault on connection to convai

What do you need help with?

Bug report

Installation method

Manual installation / GitHub

Issue area

Connection / WebRTC

Impact

Blocker - I cannot continue

Unreal Engine version

5.5

Convai Unreal Engine Plugin version

4.26

Project setup

Blueprint and C++

Target platform

Other

Where does it happen?

Only after packaging

Short summary

Seg fault caused by null pointer/missing ssl cert

What happened?

When connecting to convai on a meta quest with an unreal engine v5.5 built app, the app will crash due to a seg fault in the connection logic in v4. This seems to be caused by a null pointer either from a missing ssl cert or the inability to open a file correctly on the quest or android.

Steps to reproduce

create a unreal engine project using convai v4 and package it for android and meta quest
install on meta quest
launch the app and connect to convai

Unreal logs or error messages

08-10 18:53:52.674 19236 19236 F DEBUG : pid: 17274, tid: 19218, name: ConvaiC-nection >>> com.app.here <<<
08-10 18:53:52.674 19236 19236 F DEBUG : uid: 10337
08-10 18:53:52.674 19236 19236 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
08-10 18:53:52.674 19236 19236 F DEBUG : syscall: running
08-10 18:53:52.674 19236 19236 F DEBUG : signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x00000072d176bbd8
08-10 18:53:52.674 19236 19236 F DEBUG : x0 b400007403973148 x1 0000000000000000 x2 0000000000000000 x3 000000733dcf6600
08-10 18:53:52.674 19236 19236 F DEBUG : x4 000000000000000d x5 0000000000000006 x6 314e53415f4d4550 x7 00646165725f314e
08-10 18:53:52.674 19236 19236 F DEBUG : x8 0000000000000000 x9 0000000000000001 x10 0000000000004b12 x11 0000000000004b12
08-10 18:53:52.674 19236 19236 F DEBUG : x12 0000000000000000 x13 0000000000000000 x14 00000000ff7e0000 x15 0000000000010000
08-10 18:53:52.674 19236 19236 F DEBUG : x16 00000072b51c0a00 x17 00000072d176bbd8 x18 00000071d54fa000 x19 0000000000000000
08-10 18:53:52.674 19236 19236 F DEBUG : x20 b400007403973148 x21 000000733dcf67a1 x22 00000071d9a0d5a0 x23 0000000000000000
08-10 18:53:52.674 19236 19236 F DEBUG : x24 b400007403973148 x25 0000000000000031 x26 000000733dcfbd40 x27 0000000000000024
08-10 18:53:52.674 19236 19236 F DEBUG : x28 0000000000000031 x29 000000733dcf66a0
08-10 18:53:52.674 19236 19236 F DEBUG : lr 00000072b4ff0e80 sp 000000733dcf66a0 pc 00000072d176bbd8 pst 0000000080001000
08-10 18:53:52.674 19236 19236 F DEBUG : 9 total frames
08-10 18:53:52.674 19236 19236 F DEBUG : backtrace:
08-10 18:53:52.674 19236 19236 F DEBUG : #00 pc 0000000017757bd8 /data/app/~~dGbfx00MUsOKm6bgfNv5Tw==/com.app.here/lib/arm64/libUnreal.so (BuildId: 4aa34a18d35fca3c69dd31bd0091ac981d7a33fd)
08-10 18:53:52.674 19236 19236 F DEBUG : #01 pc 00000000005e1e7c /data/app/~~dGbfx00MUsOKm6bgfNv5Tw==/com.app.here/lib/arm64/libconvai_http_helper.so (d2i_X509_fp+20) (BuildId: da0e9fd9aad3baf898bd2fc71fbde56ae1f20606)
08-10 18:53:52.674 19236 19236 F DEBUG : #02 pc 000000000038c640 /data/app/~~dGbfx00MUsOKm6bgfNv5Tw==/com.app.here/lib/arm64/libconvai_http_helper.so (convai_http_request_execute+3176) (BuildId: da0e9fd9aad3baf898bd2fc71fbde56ae1f20606)
08-10 18:53:52.674 19236 19236 F DEBUG : #03 pc 0000000001266c3c /data/app/~~dGbfx00MUsOKm6bgfNv5Tw==

Screenshots, recording, logs, or minimal repro

convai seg fault.txt (8.11 KB)

I checked the relevant documentation, resources, and similar forum posts before posting.

on

I confirm that I did not include API keys, tokens, passwords, secrets, private character data, private conversation logs, or customer data.

on

Thank you for sharing the issue.

We are currently investigating it and will get back to you once we have an update.

Hello, just checking in to see if there has been any updates on this issue?

There is no update yet.

Unfortunately, this issue has been difficult to reproduce consistently, so our team is still investigating it.

could it possibly be related to this error? It’s something I encountered when upgrading and resolved on my own but could be related? my fix for it was to inject some gradle settings using an apl xml file but maybe in doing so a specific version of something is being replaced?

ConvaiTest_APL.xml.txt (927 Bytes)

convai dupe java dependcies.txt (8.1 KB)

here is a ue project with the bare minimum that let’s me make a build and launch, it then promptly crashes when the convai connection is attempted in loading.

The issue has been resolved, and the fix will be included in our next update.

Please stay tuned for the upcoming release.

Could you please try again?

looks resolved, thank you