Skip to content

Telegram X crashes when doing a voice/video call on Android 4.4 #1029

@creeper451

Description

@creeper451

Telegram X 0.28.3.1785-legacy crashes when calling or receiving a voice call due to a NoClassDefFoundError for android.media.AudioAttributes$Builder in the WebRTC audio handling code that doesn't exist on Android 4.4.4 (API 19) which leads to a native crash in libtgcallsjni.so starting at line 12126 (the crash happens even when Peer-To-Peer calling is turned off) :

logcat.txt

W/System.err(18755): java.lang.NoClassDefFoundError: android.media.AudioAttributes$Builder
W/System.err(18755): at org.webrtc.audio.WebRtcAudioTrack.getAudioAttributes(SourceFile:1)
W/System.err(18755): at org.webrtc.audio.WebRtcAudioTrack.createAudioTrackBeforeOreo(SourceFile:13)
W/System.err(18755): at org.webrtc.audio.WebRtcAudioTrack.initPlayout(SourceFile:197)
W/System.err(18755): at dalvik.system.NativeStart.run(Native Method)
E/rtc (18755):
E/rtc (18755):
E/rtc (18755): #
E/rtc (18755): # Fatal error in: /home/vk/tgx/app/jni/third_party/webrtc/sdk/android/src/jni/jni_generator_helper.h, line 90
E/rtc (18755): # last system error: 22
E/rtc (18755): # Check failed: !env->ExceptionCheck()
E/rtc (18755): #
F/libc (18755): Fatal signal 6 (SIGABRT) at 0x00004943 (code=-6), thread 18964 (tgc-work)

The device is a Samsung Grand Neo VE (I9060I) running Android 4.4.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions