XServer SDL failed to start: cli-command.c: stat('/data/user/0/x.org.server/files/pulseaudio.conf'): No such file or directory
arbv opened this issue · comments
Hello!
I am unable to use the X server SDL on my device. I think hat the reason is that it is unable to start the PulseAudio daemon.
Device: ASUS ZenFone 2 ZE551ML (x86).
Android: 6.0.1 (Marshmallow), stock
Here is (hopefully) relevant excerpt from the log:
09-02 20:54:40.859 23383 23413 I XSDL : XSDL video resolution 1280/134x720/75x16, args:
09-02 20:54:40.859 23383 23413 I XSDL : > XSDL
09-02 20:54:40.859 23383 23413 I XSDL : > :0
09-02 20:54:40.859 23383 23413 I XSDL : > -nolock
09-02 20:54:40.859 23383 23413 I XSDL : > -noreset
09-02 20:54:40.859 23383 23413 I XSDL : > -nopn
09-02 20:54:40.859 23383 23413 I XSDL : > -listen
09-02 20:54:40.859 23383 23413 I XSDL : > inet
09-02 20:54:40.859 23383 23413 I XSDL : > -listen
09-02 20:54:40.859 23383 23413 I XSDL : > inet6
09-02 20:54:40.859 23383 23413 I XSDL : > -nolisten
09-02 20:54:40.859 23383 23413 I XSDL : > unix
09-02 20:54:40.859 23383 23413 I XSDL : > -fp
09-02 20:54:40.859 23383 23413 I XSDL : > /data/user/0/x.org.server/files/img/usr/share/fonts/X11/misc,/data/user/0/x.org.server/files/img/usr/share/fonts/X11/Type1,/data/user/0/x.org.ser
ver/files/img/usr/share/fonts/X11/100dpi,/data/user/0/x.org.server/files/img/usr/share/fonts/X11/75dpi,/data/user/0/x.org.server/files/img/usr/share/fonts/X11/cyrillic,/data/user/0/x.org.ser
ver/files/usr/share/fonts
09-02 20:54:40.859 23383 23413 I XSDL : > -screen
09-02 20:54:40.859 23383 23413 I XSDL : > 1280/134x720/75x16
09-02 20:54:40.859 23383 23413 I XSDL : > -exec
09-02 20:54:40.859 23383 23413 I XSDL : > /data/user/0/x.org.server/files/usr/bin/xhost + ; /data/user/0/x.org.server/files/usr/bin/xloadimage -onroot -fullscreen /storage/0000-0000/Andro
id/data/x.org.server/files/background.png
09-02 20:54:40.859 23383 23413 I XSDL : XSDL chdir to: /data/user/0/x.org.server/files
09-02 20:54:40.859 23383 23413 I XSDL : InitConnectionLimits: MaxClients = 2048
09-02 20:54:40.859 23383 23418 I XSDL : Starting Pulseaudio
09-02 20:54:40.859 23383 23418 I XSDL : HOME=/data/user/0/x.org.server/files TMPDIR=/data/user/0/x.org.server/files LD_LIBRARY_PATH=/data/user/0/x.org.server/files/usr/bin logwrapper /dat
a/user/0/x.org.server/files/usr/bin/pulseaudio --disable-shm -n -F /data/user/0/x.org.server/files/pulseaudio.conf --dl-search-path=/data/user/0/x.org.server/files/usr/bin --daemonize=false
--use-pid-file=false --log-target=stderr --log-level=debug
09-02 20:54:40.859 23383 23413 I XSDL : InitCard: (null)
09-02 20:54:40.859 23383 23413 I XSDL : InitOutput() enter
09-02 20:54:40.859 23383 23413 I XSDL : Calling SDL_Init()
09-02 20:54:40.859 23383 23413 I XSDL : sdlScreenInit
09-02 20:54:40.859 23383 23413 I XSDL : Attempting for 1280x720/16bpp mode
09-02 20:54:40.859 23383 23413 V libSDL : calling SDL_SetVideoMode(1280, 720, 16, 0)
09-02 20:54:40.859 23383 23411 I libSDL : SDL_SetVideoMode(): application requested mode 1280x720 OpenGL 0 HW 0 BPP 16
09-02 20:54:40.859 23383 23411 E libSDL : ERROR: Invalid window
09-02 20:54:40.859 23383 23411 E libSDL : ERROR: Setting the swap interval is not supported
09-02 20:54:40.859 23383 23411 E libSDL : ERROR: Getting the swap interval is not supported
09-02 20:54:40.859 23383 23411 E libSDL : ERROR: GL_GetAttribute not supported
09-02 20:54:40.875 337 378 I KERNEL : [11792.382782] [DISP] brightness level = 15
09-02 20:54:40.879 23383 23413 V libSDL : SDL_SetVideoMode(): Requested mode: 1280x720x16, obtained mode 1280x720x16
09-02 20:54:40.879 23383 23413 V libSDL : SDL_SetVideoMode(): returning surface 0xda1b9240
09-02 20:54:40.879 23383 23413 I XSDL : Set 1280x720/16bpp mode
09-02 20:54:40.889 23383 23413 I XSDL : sdlKeyboardType 1
09-02 20:54:40.889 23383 23413 I XSDL : sdlMapFramebuffer: shadow 0
09-02 20:54:40.889 23383 23413 I XSDL : sdlFinishInitScreen
09-02 20:54:40.889 23383 23413 I XSDL : sdlRandRInit
09-02 20:54:40.889 23383 23413 I XSDL : InitOutput() exit
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension Generic Event Extension
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension SHAPE
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension MIT-SHM
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XInputExtension [660/1972]
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XTEST
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension BIG-REQUESTS
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension SYNC
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XKEYBOARD
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XC-MISC
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XFIXES
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension RENDER
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension RANDR
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension COMPOSITE
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension DAMAGE
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension MIT-SCREEN-SAVER
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension DOUBLE-BUFFER
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension RECORD
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension DPMS
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension Present
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension DRI3
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension X-Resource
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XVideo
09-02 20:54:40.889 23383 23413 I XSDL : (II) Initializing extension XVideo-MotionCompensation
09-02 20:54:40.889 23383 23413 I XSDL : sdlCreateRes
09-02 20:54:40.899 23383 23413 I XSDL : [dix] Could not init font path element /data/user/0/x.org.server/files/img/usr/share/fonts/X11/misc, removing from list!
09-02 20:54:40.899 23383 23413 I XSDL : [dix] Could not init font path element /data/user/0/x.org.server/files/img/usr/share/fonts/X11/Type1, removing from list!
09-02 20:54:40.899 23383 23413 I XSDL : [dix] Could not init font path element /data/user/0/x.org.server/files/img/usr/share/fonts/X11/100dpi, removing from list!
09-02 20:54:40.899 23383 23413 I XSDL : [dix] Could not init font path element /data/user/0/x.org.server/files/img/usr/share/fonts/X11/75dpi, removing from list!
09-02 20:54:40.899 23383 23413 I XSDL : [dix] Could not init font path element /data/user/0/x.org.server/files/img/usr/share/fonts/X11/cyrillic, removing from list!
09-02 20:54:40.899 23383 23413 I XSDL : [dix] Could not init font path element /data/user/0/x.org.server/files/usr/share/fonts, removing from list!
09-02 20:54:40.899 23383 23413 I XSDL : (EE) XKB: Couldn't open rules file /data/user/0/x.org.server/files/usr/share/X11/xkb/rules/evdev
09-02 20:54:40.899 23383 23413 I XSDL : (EE) XKB: Failed to load keymap. Loading default keymap instead.
09-02 20:54:40.899 23383 23413 I XSDL : (EE) XKB: Couldn't open rules file /data/user/0/x.org.server/files/usr/share/X11/xkb/rules/evdev
09-02 20:54:40.899 23383 23413 I XSDL : XKB: Failed to compile keymap
09-02 20:54:40.899 23383 23413 I XSDL : Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
09-02 20:54:40.899 23383 23413 I XSDL : (EE)
09-02 20:54:40.899 23383 23413 I XSDL :
09-02 20:54:40.899 23383 23413 I XSDL :
09-02 20:54:40.899 23383 23413 I XSDL : Fatal server error:
09-02 20:54:40.899 23383 23413 I XSDL : (EE)
09-02 20:54:40.899 23383 23413 I XSDL :
09-02 20:54:40.899 23383 23413 I XSDL : Failed to activate virtual core keyboard: 2
09-02 20:54:40.899 23383 23413 I XSDL : (EE)
09-02 20:54:40.899 23383 23413 I XSDL :
09-02 20:54:40.899 23383 23413 I XSDL :
09-02 20:54:40.899 23383 23413 I XSDL : Current video mode: 1920 1080
09-02 20:54:40.899 23383 23413 V libSDL : calling SDL_SetVideoMode(480, 320, 0, 0)
09-02 20:54:40.899 23383 23411 I libSDL : SDL_SetVideoMode(): application requested mode 480x320 OpenGL 0 HW 0 BPP 16
09-02 20:54:40.899 23383 23411 E libSDL : ERROR: Invalid window
09-02 20:54:40.899 23383 23411 E libSDL : ERROR: Setting the swap interval is not supported
09-02 20:54:40.899 23383 23411 E libSDL : ERROR: Getting the swap interval is not supported
09-02 20:54:40.899 23383 23411 E libSDL : ERROR: GL_GetAttribute not supported
09-02 20:54:40.899 23383 23413 V libSDL : SDL_SetVideoMode(): Requested mode: 480x320x16, obtained mode 480x320x16
09-02 20:54:40.899 23383 23413 V libSDL : SDL_SetVideoMode(): returning surface 0xda1b9240
...
09-02 20:54:41.519 23421 23421 I pulseaudio: try_dlopen (dlopen.a, (null))
09-02 20:54:41.519 23421 23421 I pulseaudio: tryall_dlopen (dlopen.a, lt_preopen)
09-02 20:54:41.519 23421 23421 I pulseaudio: Calling lt_preopen->module_open (dlopen.a)
09-02 20:54:41.519 23421 23421 I pulseaudio: Result: Success
09-02 20:54:41.519 23421 23421 I pulseaudio: loaders: lt_dlopen, lt_preopen
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] core-util.c: setpriority() worked.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] core-util.c: Successfully gained nice level -11.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: This is PulseAudio 7.0-1200-g2ef0
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Compilation host: i686-pc-linux-android
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Compilation CFLAGS: -g -ffunction-sections -funwind-tables -fdata-sections -fstack-protector-strong -no-canonical-prefixe
s -Wformat -Werror=format-security -Oz -DNDEBUG -fPIC -I/home/pelya/src/endless_space/SDL-android/project/jni/application/src/pulseaudio/x86/libtool-master/install/include
-I/home/pelya/src/endless_space/SDL-android/project/jni/application/src/pulseaudio/x86/json-c-12916e229c769da4929f6df7f038ab51cf0cb067/install/include/json-c -I/home/pelya/
src/endless_space/SDL-android/project/jni/application/src/pulseaudio/x86/libsndfile-1.0.25/install/include -Werror=implicit-function-declaration -Wall -W -Wextra -pipe
-Wno-long-long -Wno-overlength-strings -Wundef -Wformat=2 -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdec
laration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-label
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Running on host: Linux i686 3.10.72-x86_64_moor-gb6d574d #1 SMP PREEMPT Fri Jun 23 00:42:48 CST 2017
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Found 4 CPUs.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Page size is 4096 bytes
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Compiled with Valgrind support: no
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Running in valgrind mode: no
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Running in VM: no
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Running from build tree: no
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: Optimized build: yes
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] main.c: NDEBUG defined, all asserts disabled.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Machine ID is localhost.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Using runtime directory /data/user/0/x.org.server/files/.config/pulse/localhost-runtime.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Using state directory /data/user/0/x.org.server/files/.config/pulse.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Using modules directory /data/user/0/x.org.server/files/usr/bin.
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Running in system mode: no
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] main.c: System supports high resolution timers
09-02 20:54:41.519 23421 23421 I pulseaudio: D: [pulseaudio] memblock.c: Using private memory pool with 1024 slots of size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is
65496
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2
09-02 20:54:41.519 23421 23421 I pulseaudio: I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
09-02 20:54:41.527 337 378 I KERNEL : [11793.035329] [DISP] brightness level = 15
09-02 20:54:41.529 23421 23421 I pulseaudio: I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
09-02 20:54:41.529 23421 23421 I pulseaudio: I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
09-02 20:54:41.529 23421 23421 I pulseaudio: I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
09-02 20:54:41.529 23421 23421 I pulseaudio: I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
09-02 20:54:41.529 23421 23421 I pulseaudio: W: [pulseaudio] cli-command.c: stat('/data/user/0/x.org.server/files/pulseaudio.conf'): No such file or directory
09-02 20:54:41.529 23421 23421 I pulseaudio: E: [pulseaudio] main.c: Failed to initialize daemon due to errors while executing startup commands. Source of commands: command line arguments
09-02 20:54:41.529 23421 23421 I pulseaudio: I: [pulseaudio] main.c: Daemon terminated.
I hope it is going to be helpful.
Thanks for your hard work!
It fails to start because it fails to load data files
09-02 20:54:40.899 23383 23413 I XSDL : (EE) XKB: Couldn't open rules file /data/user/0/x.org.server/files/usr/share/X11/xkb/rules/evdev
Is this a fresh installation? Could you try to uninstall and reinstall the app? I'm not sure that the newest release will work on Android 6. If that does not help, you can try the old version from here: https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/
Yeah, I have tried to reinstall the application as well as cleaning its data directories (*/Android/data/x.org.server/files/
) - it does not seem to help.
It seems that my only way is to use the older version.
Thanks for trying to help with the problem!
BTW, do you have any recommendations which older version to try at first?
Nevermind, version 1.20.41 seems to work fine.