Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Audio devices not detected

Summary

Microphone and speaker are not detected since update and system crashes when exiting a call.

The problem

Steps to reproduce

Upgrade to 0.12-20201001176269 on pioneer (Xperia XA2) and use any app/program that requires audio input/output.

What is the current behavior?

When emitting/receiving a call (several dialer apps tested) : no audio for me or the other party, the call appears active even after hanging up, then a system crash occurs within a couple of minutes (/e/ boot logo and SIM card is undetected until next reboot, even after re-inserting it)

When using the recorder app : app crashes when a recording starts

When using VoIP : no audio for me or the other party

When setting an alarm : it triggers and can be snoozed or disabled but no sound is emitted

What is the expected correct behavior?

No crashes after calls.

Working audio.

Technical informations

10-12 01:11:26.666 20789 25734 I ActivityManager: Start proc 25905:org.lineageos.recorder/u0a19 for activity org.lineageos.recorder/.RecorderActivity
10-12 01:11:26.668 20789 20811 W ActivityManager: setHasOverlayUi called on unknown pid: 25877
10-12 01:11:26.672 20789 20804 W ActivityManager: Stopping service due to app idle: u0a19 -2s863ms org.lineageos.recorder/.sounds.SoundRecorderService
10-12 01:11:26.726 20789 20837 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
10-12 01:11:26.784 25905 25922 D OpenGLRenderer: HWUI GL Pipeline
10-12 01:11:26.793 25905 25905 E AudioSystem: AudioSystem::getInputBufferSize failed sampleRate 44100 format 0x1 channelMask 10
10-12 01:11:26.793 25905 25905 E AudioRecord: AudioSystem could not query the input buffer size for sampleRate 44100, format 0x1, channelMask 0x10; status -22
10-12 01:11:26.814 25905 25922 I Adreno  : QUALCOMM build                   : 36a2cc7, Ib51cab75a6
10-12 01:11:26.814 25905 25922 I Adreno  : Build Date                       : 01/15/18
10-12 01:11:26.814 25905 25922 I Adreno  : OpenGL ES Shader Compiler Version: EV031.22.00.01
10-12 01:11:26.814 25905 25922 I Adreno  : Local Branch                     : 
10-12 01:11:26.814 25905 25922 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.6.4.R1.08.00.00.309.049
10-12 01:11:26.814 25905 25922 I Adreno  : Remote Branch                    : NONE
10-12 01:11:26.814 25905 25922 I Adreno  : Reconstruct Branch               : NOTHING
10-12 01:11:26.824 25905 25922 I Adreno  : PFP: 0x005ff087, ME: 0x005ff063
10-12 01:11:26.830 25905 25922 I zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
10-12 01:11:26.831 25905 25922 I OpenGLRenderer: Initialized EGL, version 1.4
10-12 01:11:26.831 25905 25922 D OpenGLRenderer: Swap behavior 2
10-12 01:11:26.878 20789 20811 I ActivityManager: Displayed org.lineageos.recorder/.RecorderActivity: +218ms
10-12 01:11:27.709 25905 25905 D SoundRecorderService: Sound recorder service started recording…
10-12 01:11:27.712 25905 25905 D AndroidRuntime: Shutting down VM
10-12 01:11:27.712 25905 25905 E AndroidRuntime: FATAL EXCEPTION: main
10-12 01:11:27.712 25905 25905 E AndroidRuntime: Process: org.lineageos.recorder, PID: 25905
10-12 01:11:27.712 25905 25905 E AndroidRuntime: java.lang.IllegalArgumentException: Invalid audio buffer size -2 (frame size 2)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.media.AudioRecord.audioBuffSizeCheck(AudioRecord.java:725)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.media.AudioRecord.<init>(AudioRecord.java:374)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.media.AudioRecord.<init>(AudioRecord.java:278)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at org.lineageos.recorder.sounds.SoundRecorderService.startRecording(SoundRecorderService.java:160)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at org.lineageos.recorder.RecorderActivity.toggleSoundRecorder(RecorderActivity.java:265)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at org.lineageos.recorder.RecorderActivity.lambda$-org_lineageos_recorder_RecorderActivity_4868(RecorderActivity.java:125)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at org.lineageos.recorder.-$Lambda$O85NwS1nI9H1jFwI6pScl8SUgcs.$m$1(Unknown Source:4)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at org.lineageos.recorder.-$Lambda$O85NwS1nI9H1jFwI6pScl8SUgcs.onClick(Unknown Source:15)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.view.View.performClick(View.java:6294)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:24770)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:790)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:99)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6494)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
10-12 01:11:27.712 25905 25905 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
10-12 01:11:27.716 20789 20801 W ActivityManager:   Force finishing activity org.lineageos.recorder/.RecorderActivity
10-12 01:11:27.721 20789 20805 I ActivityManager: Showing crash dialog for package org.lineageos.recorder u0
10-12 01:11:27.744 20789 23667 I OpenGLRenderer: Initialized EGL, version 1.4
10-12 01:11:27.744 20789 23667 D OpenGLRenderer: Swap behavior 2
10-12 01:11:28.219 20789 20804 W ActivityManager: Activity pause timeout for ActivityRecord{2cec0e5 u0 org.lineageos.recorder/.RecorderActivity t1681 f}
10-12 01:11:28.252 21720 21720 D WeatherIconUtils: Decoding resource id = 2131230941 for density = 640
10-12 01:11:28.662 20789 20801 W ActivityManager:   Force finishing activity org.lineageos.recorder/.RecorderActivity
10-12 01:11:28.694 20789 20801 I ActivityManager: Killing 25905:org.lineageos.recorder/u0a19 (adj 0): crash
10-12 01:11:28.695 20789 20806 W zygote64: kill(-25905, 9) failed: No such process
10-12 01:11:28.718 20789 20811 W ActivityManager: setHasOverlayUi called on unknown pid: 25905
10-12 01:11:28.722 20789 20806 W zygote64: kill(-25905, 9) failed: No such process
10-12 01:11:28.724 20789 20806 I zygote64: Successfully killed process cgroup uid 10019 pid 25905 in 28ms
10-12 01:11:28.793 20789 20837 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
10-12 01:11:28.875   774   810 E ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/mmc_host/mmc0/clk_scaling/enable with 1
10-12 01:11:28.875   774   810 E ANDR-PERF-OPTSHANDLER:  return value 2`)**

Solutions

Plugging headphones with a microphone DOES NOT solve the problem. Bluetooth wireless speakers DO emit sound.

Edited by Thomas Took