Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes
Segfault in AudioTrackThread
Android App
Wwise Version: v2021.1.4  Build: 7707

I cannot repo this issue locally and it rarely occurs in production.
It only occurs on Android but is not tied to any specific device or Android version.
It does not occur in the same location in the game and can occur anywhere in the game world.

I believe this is thread related but not sure if it's on our side.
I don't believe it's caused by our callbacks for PostEvent or RegisterCaptureCallback, but 'maybeCallDataCallback' in the stacktrace is suspicious.
I'm wondering if updating to 2021.1.14 or disabling bUseLEngineThread would resolve this issue?
Any guidance or help is greatly appreciated.

Stacktrace

Exception Type: Unknown (SIGSEGV)

Application Specific Information:
Segfault

Thread 0 Crashed:
0   libc.so                         0x71dfd796c8        __memcpy
1   libzwiftjni.so                  0x6e9184d7b4        [inlined] AKPLATFORM::AkMemCpy (AkPlatformFuncs.h:321)
2   libzwiftjni.so                  0x6e9184d7b4        CAkSynchronizedBuffer::CopyFrames (AkSynchronizedBuffer.cpp:93)
3   libzwiftjni.so                  0x6e9184d818        CAkSynchronizedBuffer::PopFrames (AkSynchronizedBuffer.cpp:70)
4   libzwiftjni.so                  0x6e91877f58        CAkAAudioBackend::OnAudioReady (AkAAudioBackend.cpp:222)
5   libaaudio_internal.so           0x6f1f4b1b4c        aaudio::AudioStream::maybeCallDataCallback
6   libaaudio_internal.so           0x6f1f4b5d7c        aaudio::AudioStreamLegacy::callDataCallbackFrames
7   libaaudio_internal.so           0x6f1f4b4cac        aaudio::AudioStreamLegacy::onMoreData
8   libaudioclient.so               0x71db1745e4        android::AudioTrack::processAudioBuffer
9   libaudioclient.so               0x71db1737dc        android::AudioTrack::AudioTrackThread::threadLoop
10  libutils.so                     0x71c145d830        android::Thread::_threadLoop
11  libandroid_runtime.so           0x71c620a918        android::AndroidRuntime::javaThreadShell
12  libc.so                         0x71dfde22b8        __pthread_start
13  libc.so                         0x71dfd7efb8        __start_thread
in General Discussion by Matthew Miller (100 points)
Hello,I also encountered the same problem, have you solved it? It's exactly the same as you described, and the stacktrace is exactly the same. My wwise version is v2019.2.12

Please sign-in or register to answer this question.

...