ITADN

[Bug]: PulseAudio cannot load module SLES Sink on OnePlus 15

#18Openphantom-8 创建于 2025-11-21
P
phantom-8commented
### Problem description I've encountered a similar issue that was reported on OneUI last year [https://github.com/termux/termux-packages/issues/19623](url) which was supposed to be fixed, but this time it happened to OnePlus 15 device. From the pulseaudio log, it couldn't locate a file named "libostatslog.so" and thus unabe to load "module-sles-sink". The library file does exist and is under /system/lib64. I tried to add "LD_PRELOAD=/system/lib64/libostatslog.so", but got assertion error when starting pulseaudio. Currently, I'm able to bypass the problem by switching to AAudio module. Not sure why this is happening on SLES Sink? Command line to start pulseaudio: ``` pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1 ``` Here is the pulseaudio log for logcat: ``` 11-20 20:34:14.226 4169 4169 W linker64: type=1400 audit(0.0:2425): avc: granted { execute } for name="pulseaudio" dev="dm-83" ino=382778 scontext=u:r:untrusted_app:s0:c207,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c207,c257,c512,c768 tclass=file app=com.termux 11-20 20:34:14.226 4169 4169 W linker64: type=1400 audit(0.0:2426): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/pulseaudio" dev="dm-83" ino=382778 scontext=u:r:untrusted_app:s0:c207,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c207,c257,c512,c768 tclass=file app=com.termux 11-20 20:34:14.256 4180 4180 W pulseaudio: [linker64] core-error.c: Unable to convert error string to locale, filtering. 11-20 20:34:14.261 4180 4181 E pulseaudio: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory 11-20 20:34:14.261 4180 4181 E pulseaudio: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory 11-20 20:34:14.261 4180 4181 E pulseaudio: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory 11-20 20:34:14.261 4180 4181 E pulseaudio: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory 11-20 20:34:14.261 4180 4181 E pulseaudio: [null-sink] util.c: Failed to connect to system bus: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory 11-20 20:34:14.261 4180 4181 W pulseaudio: [null-sink] core-error.c: Unable to convert error string to locale, filtering. 11-20 20:34:14.261 4180 4180 E pulseaudio: [linker64] module-console-kit.c: Unable to contact D-Bus system bus: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /data/data/com.termux/files/usr/var/run/dbus/system_bus_socket: No such file or directory 11-20 20:34:14.261 4180 4180 E pulseaudio: [linker64] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed. 11-20 20:34:14.262 4180 4180 W pulseaudio: [linker64] core-error.c: Unable to convert error string to locale, filtering. 11-20 20:34:14.262 4180 4180 W pulseaudio: [linker64] cli-command.c: stat('/data/data/com.termux/files/usr/etc/pulse/default.pa.d'): Unknown error 2 11-20 20:34:14.275 4180 4180 E pulseaudio: [linker64] ltdl-bind-now.c: Failed to open module /data/data/com.termux/files/usr/lib/pulseaudio/modules/module-sles-sink.so: dlopen failed: library "libostatslog.so" not found: needed by /system_ext/lib64/libatlasservice.so in namespace (default) 11-20 20:34:14.287 4180 4180 E pulseaudio: [linker64] module.c: Failed to open module "module-sles-sink". 11-20 20:34:14.289 4180 4180 W pulseaudio: [linker64] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 11-20 20:34:14.289 4180 4180 W pulseaudio: [linker64] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 ``` After adding the line "LD_PRELOAD=/system/lib64/libostatslog.so" before starting pulseaudio, encounter the below error. ``` E: [linker64] main.c: Assertion 'execv(rp, argv) == 0' failed at ../src/src/daemon/main.c:385, function int main(int, char **)(). Aborting. ./t2: line 2: 9030 Aborted pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1 ``` ### What steps will reproduce the bug? No audio can be heard while playing a simple audio file on termux using command "play" or "pa_play". ### What is the expected behavior? _No response_ ### System information ```shell Device: OnePlus 15 running ColorOS 16 Termux version: googleplay.2025.10.05 ```
0 条评论