Repository: tizonia/tizonia-openmax-il

Issue #433: player: 'segmentation fault' while trying to get metadata of a track
Created: 2018-01-12T18:18:23Z
Segmentation fault in tizonia while trying to get value of Metadata property with tizonia-remote.
The same error while sending dbus query to org.mpris.MediaPlayer2.Player interface
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
Jan 12 21:14:02 azorin systemd-coredump[13380]: Process 13018 (tizonia) of user 1000 dumped core.
                                                Stack trace of thread 13021:
                                                #0  0x00007f2a3e43483d __memset_avx2_erms (libc.so.6)
                                                #1  0x00007f2a3d1ab099 _dbus_string_insert_bytes (libdbus-1.so.3)
                                                #2  0x00007f2a3d195104 n/a (libdbus-1.so.3)
                                                #3  0x00007f2a3d19520f _dbus_type_writer_recurse (libdbus-1.so.3)
                                                #4  0x00007f2a3d199f9f dbus_message_iter_open_container (libdbus-1.so.3)
                                                #5  0x00007f2a3ed07c2c _ZN3Tiz4DBus11MessageIter11new_variantEPKc (libtizdbus
                                                #6  0x00007f2a3ed0ec75 _ZN3Tiz4DBuslsERNS0_11MessageIterERKNS0_7VariantE (lib
                                                #7  0x00007f2a3ed0cdff _ZN3Tiz4DBus17PropertiesAdaptor3GetERKNS0_11CallMessag
                                                #8  0x00007f2a3ed0e327 _ZNK3Tiz4DBus8CallbackINS0_17PropertiesAdaptorENS0_7Me
                                                #9  0x00007f2a3ed03707 _ZN3Tiz4DBus16InterfaceAdaptor15dispatch_methodERKNS0_
                                                #10 0x00007f2a3ed0ae37 _ZN3Tiz4DBus13ObjectAdaptor14handle_messageERKNS0_7Mes
                                                #11 0x00007f2a3ed08e32 _ZN3Tiz4DBus13ObjectAdaptor7Private21message_function_
                                                #12 0x00007f2a3d19e86b n/a (libdbus-1.so.3)
                                                #13 0x00007f2a3d18f056 dbus_connection_dispatch (libdbus-1.so.3)
                                                #14 0x00007f2a3ecfe878 _ZN3Tiz4DBus10Connection7Private11do_dispatchEv (libti
                                                #15 0x00007f2a3ed00a92 _ZN3Tiz4DBus10Dispatcher16dispatch_pendingERNSt7__cxx1
                                                #16 0x00007f2a3ed00b7f _ZN3Tiz4DBus10Dispatcher16dispatch_pendingEv (libtizdb
                                                #17 0x00007f2a3ed01f79 _ZN3Tiz4DBus13BusDispatcher12do_iterationEv (libtizdbu
                                                #18 0x00007f2a3ed01dc1 _ZN3Tiz4DBus13BusDispatcher5enterEv (libtizdbus-c++.so
                                                #19 0x000055acf88831d7 n/a (tizonia)
                                                #20 0x000055acf88835d0 n/a (tizonia)
                                                #21 0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #22 0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13047:
                                                #0  0x00007f2a3f2ae39d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f2a3eac8a0f tiz_cond_wait (libtizplatform.so.0)
                                                #2  0x00007f2a3eac943b tiz_queue_receive (libtizplatform.so.0)
                                                #3  0x000055acf875665f n/a (tizonia)
                                                #4  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #5  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13085:
                                                #0  0x00007f2a3e3c891b __poll (libc.so.6)
                                                #1  0x00007f2a3835e773 n/a (libpulse.so.0)
                                                #2  0x00007f2a3834fbd0 pa_mainloop_poll (libpulse.so.0)
                                                #3  0x00007f2a38350271 pa_mainloop_iterate (libpulse.so.0)
                                                #4  0x00007f2a38350301 pa_mainloop_run (libpulse.so.0)
                                                #5  0x00007f2a3835e6ae n/a (libpulse.so.0)
                                                #6  0x00007f2a380fd81c n/a (libpulsecommon-11.1.so)
                                                #7  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #8  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13022:
                                                #0  0x00007f2a3f2ae39d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f2a3eac8a0f tiz_cond_wait (libtizplatform.so.0)
                                                #2  0x00007f2a3eac943b tiz_queue_receive (libtizplatform.so.0)
                                                #3  0x00007f2a3e8ac97e n/a (libtizcore.so.0)
                                                #4  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #5  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13018:
                                                #0  0x00007f2a3e3c43d8 __read (libc.so.6)
                                                #1  0x00007f2a3e357528 _IO_file_underflow@@GLIBC_2.2.5 (libc.so.6)
                                                #2  0x00007f2a3e358672 _IO_default_uflow (libc.so.6)
                                                #3  0x00007f2a3e352bb8 _IO_getc (libc.so.6)
                                                #4  0x000055acf86d3ed3 n/a (tizonia)
                                                #5  0x000055acf86d3f9e n/a (tizonia)
                                                #6  0x000055acf86d730c n/a (tizonia)
                                                #7  0x000055acf86f65cb n/a (tizonia)
                                                #8  0x000055acf86e456a n/a (tizonia)
                                                #9  0x000055acf86e26cf n/a (tizonia)
                                                #10 0x000055acf86c73e4 n/a (tizonia)
                                                #11 0x00007f2a3e2fdf4a __libc_start_main (libc.so.6)
                                                #12 0x000055acf86d3aca n/a (tizonia)
                                                Stack trace of thread 13072:
                                                #0  0x00007f2a3f2ae39d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f2a3eac8a0f tiz_cond_wait (libtizplatform.so.0)
                                                #2  0x00007f2a3eac943b tiz_queue_receive (libtizplatform.so.0)
                                                #3  0x00007f2a29cfde47 n/a (libtizonia.so.0)
                                                #4  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #5  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13083:
                                                #0  0x00007f2a3f2ae39d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f2a3eac8a0f tiz_cond_wait (libtizplatform.so.0)
                                                #2  0x00007f2a3eac943b tiz_queue_receive (libtizplatform.so.0)
                                                #3  0x00007f2a29cfde47 n/a (libtizonia.so.0)
                                                #4  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #5  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13019:
                                                #0  0x00007f2a3e3d2f86 epoll_pwait (libc.so.6)
                                                #1  0x00007f2a3ead0149 n/a (libtizplatform.so.0)
                                                #2  0x00007f2a3eaced84 n/a (libtizplatform.so.0)
                                                #3  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #4  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13020:
                                                #0  0x00007f2a3f2ae39d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f2a3eac8a0f tiz_cond_wait (libtizplatform.so.0)
                                                #2  0x00007f2a3eac943b tiz_queue_receive (libtizplatform.so.0)
                                                #3  0x000055acf8740977 n/a (tizonia)
                                                #4  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #5  0x00007f2a3e3d2e1f __clone (libc.so.6)
                                                Stack trace of thread 13084:
                                                #0  0x00007f2a3f2ae39d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f2a3eac8a0f tiz_cond_wait (libtizplatform.so.0)
                                                #2  0x00007f2a3eac943b tiz_queue_receive (libtizplatform.so.0)
                                                #3  0x00007f2a29cfde47 n/a (libtizonia.so.0)
                                                #4  0x00007f2a3f2a808c start_thread (libpthread.so.0)
                                                #5  0x00007f2a3e3d2e1f __clone (libc.so.6)
-- Subject: Process 13018 (tizonia) dumped core
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
--
-- Process 13018 (tizonia) crashed and dumped core.

Tizonia was compiled from aur package 'tizonia-all' on ArchLinux
Tizonia version:
tizonia 0.11.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

Duplicate issue #509: Headless option?
Created: 2018-08-28T15:26:31Z
Is there any possibility planned or already implemented that I can use tizonia in headless mode?
My workflow to describe it better: I'm using dwm and I wrote a simple bash script to search through my local music files with dmenu and then play them with mpd/mpc.
My idea is to search also for a song/album/artist in tizonia/spotify and then play the result with tizonia and display the current song info in my status bar.
Or do I just have to wait for #488, #438 and a headless option?

Closing comment (2018-08-28T23:56:19Z): Hi!, thanks for the interest in this feature.
It is correct, #488 is pretty much up to date on the current status. I.e. a proper RPC mechanism is currently the number 2 priority in my personal list, right after Pandora. I need to update the Roadmap section in README.md to make this more clear.
Actually, it may be possible to get what you need using the existing MPRIS implementation. The crash reported in #433 got fixed in the last release, but still, the song metadata is not being delivered via the D-BUS interface, if I recall correctly. I'll verify tomorrow and if it is still the case, I will create a new issue to get that fixed sometime.