You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is used to initialize the player:
/// Khoi tao player
Future initPlayer() async {
// Mo player
try {
// player!.setVolume(1.0);
opus = Opus();
await opus.initOpus();
player = FlutterSoundPlayer();
await player!.openPlayer();
await player!.startPlayerFromStream(
codec: Codec.pcm16,
numChannels: CHANNEL_1,
sampleRate: SAMPLE_RATE_16000,
bufferSize: 48000);
if (AppTcp.flagTempCall == 2) {
ApiSound().setSpeakerMode();
} else {
ApiSound().setReceiverMode();
}
} catch (e) {
AppLogger.error("Error init player in udp remote ${e.toString()}");
}
}
This code is used to play sound:
await player!.feedFromStream(dataLast);
This is my error in the log:
F/libc (23504): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 23685 (Thread-9), pid 23504 (com.bmc.viva_v2)
Here is my audio code:
This code is used to initialize the player:
/// Khoi tao player
Future initPlayer() async {
// Mo player
try {
// player!.setVolume(1.0);
opus = Opus();
await opus.initOpus();
player = FlutterSoundPlayer();
await player!.openPlayer();
await player!.startPlayerFromStream(
codec: Codec.pcm16,
numChannels: CHANNEL_1,
sampleRate: SAMPLE_RATE_16000,
bufferSize: 48000);
if (AppTcp.flagTempCall == 2) {
ApiSound().setSpeakerMode();
} else {
ApiSound().setReceiverMode();
}
} catch (e) {
AppLogger.error("Error init player in udp remote ${e.toString()}");
}
}
This code is used to play sound:
await player!.feedFromStream(dataLast);
This is my error in the log:
F/libc (23504): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 23685 (Thread-9), pid 23504 (com.bmc.viva_v2)
Build fingerprint: 'Redmi/tapas_global/tapas:14/UKQ1.230917.001/V816.0.9.0.UMTMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-11-14 16:41:35.560345481+0700
Process uptime: 26s
Cmdline: com.bmc.viva_v2
pid: 23504, tid: 23685, name: Thread-9 >>> com.bmc.viva_v2 <<<
uid: 10447
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000
Cause: null pointer dereference
x0 0000000000000001 x1 0000007d2db8d530 x2 0000000000000070 x3 0000000000000003
x4 0000007d2db8d5a0 x5 0000007d2db8d5b0 x6 0000000000000001 x7 0000000000005bd0
x8 e23c29cc028dfc6b x9 ffffffffffff87d0 x10 0000007d2db8e900 x11 0000007dc0000000
x12 0000000000000568 x13 0000000000000003 x14 0000007ef62190b8 x15 0000007ef62190c0
x16 0000007eee945a78 x17 0000007eee8c3dc0 x18 0000007e51a02000 x19 b400007d2e252bb0
x20 b400007d2e252800 x21 0000000000000000 x22 0000000000000001 x23 0000000000003e80
x24 0000000000000500 x25 0000000000000001 x26 0000007f07fb2918 x27 0000000000005bd0
x28 0000007e5295a000 x29 0000007e52959150
lr 0000007f07f75c44 sp 0000007e529590f0 pc 0000007f07f75c4c pst 0000000060000000
20 total frames
backtrace:
#00 pc 00000000000aec4c /system/lib64/libaudioclient.so (android::AudioTrack::releaseBuffer(android::AudioTrack::Buffer const*)+468) (BuildId: 47c43ac4a5eee089a5e57c833f9b6167)
#1 pc 00000000000bb008 /system/lib64/libaudioclient.so (android::AudioTrack::write(void const*, unsigned long, bool)+624) (BuildId: 47c43ac4a5eee089a5e57c833f9b6167)
#2 pc 00000000001cddc0 /system/lib64/libandroid_runtime.so (int writeToTrack(android::spandroid::AudioTrack const&, int, signed char const*, int, int, bool)+376) (BuildId: 88d08366aa82fd5d4030c7062b155509)
#3 pc 00000000001c769c /system/lib64/libandroid_runtime.so (int android_media_AudioTrack_writeArray<_jbyteArray*>(_JNIEnv*, _jobject*, _jbyteArray*, int, int, int, unsigned char)+220) (BuildId: 88d08366aa82fd5d4030c7062b155509)
#4 pc 00000000024eebd8 /memfd:jit-cache (deleted) (offset 0x2000000) (art_jni_trampoline+152)
#5 pc 00000000024ee650 /memfd:jit-cache (deleted) (offset 0x2000000) (android.media.AudioTrack.write+688)
#6 pc 0000000000362774 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: 1ee2c234829500686eefa384068e67c8)
#7 pc 000000000035bd1c /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+1928) (BuildId: 1ee2c234829500686eefa384068e67c8)
#8 pc 000000000076df64 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp(art::interpreter::SwitchImplContext*)+12208) (BuildId: 1ee2c234829500686eefa384068e67c8)
#9 pc 000000000037b5d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8) (BuildId: 1ee2c234829500686eefa384068e67c8)
#10 pc 0000000000c66168 /data/app/~~rGra3kzQBxqzeAPYdNWXDw==/com.bmc.viva_v2-82XunFYIstps9UT964lpyQ==/oat/arm64/base.vdex (xyz.canardoux.TauEngine.FlautoPlayerEngine$WriteBlockThread.run+0)
#11 pc 000000000034d5a8 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1932) (BuildId: 1ee2c234829500686eefa384068e67c8)
#12 pc 0000000000379098 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 1ee2c234829500686eefa384068e67c8)
#13 pc 0000000000362774 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: 1ee2c234829500686eefa384068e67c8)
#14 pc 000000000034def0 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132) (BuildId: 1ee2c234829500686eefa384068e67c8)
#15 pc 0000000000943e28 /apex/com.android.art/lib64/libart.so (_ZN3art9ArtMethod14InvokeInstanceILc86ETpTncJEEENS_6detail12ShortyTraitsIXT_EE4TypeEPNS_6ThreadENS_6ObjPtrINS_6mirror6ObjectEEEDpNS3_IXT0_EE4TypeE+60) (BuildId: 1ee2c234829500686eefa384068e67c8)
#16 pc 000000000063ebd4 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344) (BuildId: 1ee2c234829500686eefa384068e67c8)
#17 pc 000000000063e684 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8) (BuildId: 1ee2c234829500686eefa384068e67c8)
#18 pc 00000000000fd134 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 1e3ca19bcae05c01b019c85f3f422e56)
#19 pc 0000000000096ae4 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 1e3ca19bcae05c01b019c85f3f422e56)
The text was updated successfully, but these errors were encountered: