tizonia / tizonia-openmax-il

Command-line cloud music player for Linux with support for Spotify, Google Play Music, YouTube, SoundCloud, TuneIn, iHeartRadio, Plex servers and Chromecast devices.
https://tizonia.org
GNU Lesser General Public License v3.0
1.69k stars 86 forks source link

tizonia exiting (OMX_ErrorInsufficientResources) #559

Open neogeek23 opened 5 years ago

neogeek23 commented 5 years ago

Description

After the first run of docker-tizonia, Tizonia fails to play music.

Steps to Reproduce

  1. Reboot
  2. Run docker-tizonia for spotify
  3. Enjoy some music
  4. Ctrl-C to kill the tizonia process and allow the tizonia container to close.
  5. Run docker-tizonia for spotify
  6. Notice that it doesn't work and throws errors as quoted below.

Expected behavior: I expect that anytime I start docker-tizonia, that the process should be able to use system resources to be able to play music.

Actual behaviour: It seems to work well until after the very first time I connect to a remote media source to stream music. For the very first time it connects and get a playlist and plays it, beautifully. Any attempt after that and before restarting I get the following message. It seems that some part of my audio/network system that Tizonia wants is not properly released so I can't use except for the first time it tries.

Reproduces how often: This happens everytime except the first time after restarting when running docker-tizonia.

Versions

Tizonia 0.17.0

Installation Method Used

I have installed Tizonia through docker. I am using RHEL 7.

[brad@reason ~]$ docker-tizonia --spotify-user fgmtfqkhc9iin90g38rs390gu --spotify-password DerpDerp1 --spotify-recommendations-by-genre synth-pop
tizonia 0.17.0. Copyright (C) 2019 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

[Spotify] [Connecting] : 'fgmtfqkhc9iin90g38rs390gu'.
[Spotify] [Recomendations by genre] 'synth-pop'.
[Spotify] (ConnectionError) : HTTPSConnectionPool(host='accounts.spotify.com', port=443): Max retries exceeded with url: /api/token (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8593022690>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))

tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_source.spotify.pcm:port:0]
 [OMX_ErrorInsufficientResources]

[brad@reason ~]$ sudo lshw -short
[sudo] password for brad: 
H/W path           Device      Class          Description
=========================================================
                               system         20EQS3B400 (LENOVO_MT_20EQ_BU_Think_FM_ThinkPad P50)
/0                             bus            20EQS3B400
/0/3                           memory         128KiB L1 cache
/0/4                           memory         128KiB L1 cache
/0/5                           memory         1MiB L2 cache
/0/6                           memory         8MiB L3 cache
/0/7                           processor      Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
/0/8                           memory         32GiB System Memory
/0/8/0                         memory         16GiB SODIMM DDR4 Synchronous 2133 MHz (0.5 ns)
/0/8/1                         memory         [empty]
/0/8/2                         memory         16GiB SODIMM DDR4 Synchronous 2133 MHz (0.5 ns)
/0/8/3                         memory         [empty]
/0/e                           memory         128KiB BIOS
/0/100                         bridge         Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
/0/100/1                       bridge         Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)
/0/100/1/0                     display        GM107GLM [Quadro M1000M]
/0/100/2                       display        HD Graphics 530
/0/100/14                      bus            Sunrise Point-H USB 3.0 xHCI Controller
/0/100/14/0        usb1        bus            xHCI Host Controller
/0/100/14/0/1                  input          HP USB 1000dpi Laser Mouse
/0/100/14/0/2                  input          HP Business Slim Keyboard
/0/100/14/0/8                  multimedia     Integrated Camera
/0/100/14/0/9                  generic        VFS7500 Touch Fingerprint Sensor
/0/100/14/0/e                  communication  Bluetooth wireless interface
/0/100/14/1        usb2        bus            xHCI Host Controller
/0/100/14.2                    generic        Sunrise Point-H Thermal subsystem
/0/100/16                      communication  Sunrise Point-H CSME HECI #1
/0/100/16.3                    communication  Sunrise Point-H KT Redirection
/0/100/17          scsi0       storage        Sunrise Point-H SATA controller [AHCI mode]
/0/100/17/0.0.0    /dev/sda    disk           512GB SAMSUNG MZNLN512
/0/100/17/0.0.0/1  /dev/sda1   volume         1000MiB EXT4 volume
/0/100/17/0.0.0/2  /dev/sda2   volume         475GiB Linux filesystem partition
/0/100/1c                      bridge         Sunrise Point-H PCI Express Root Port #1
/0/100/1c.2                    bridge         Sunrise Point-H PCI Express Root Port #3
/0/100/1c.2/0      wlp4s0      network        Wireless 8260
/0/100/1c.4                    bridge         Sunrise Point-H PCI Express Root Port #5
/0/100/1d                      bridge         Sunrise Point-H PCI Express Root Port #13
/0/100/1d/0                    generic        RTS525A PCI Express Card Reader
/0/100/1f                      bridge         Sunrise Point-H LPC Controller
/0/100/1f.2                    memory         Memory controller
/0/100/1f.3                    multimedia     Sunrise Point-H HD Audio
/0/100/1f.4                    bus            Sunrise Point-H SMBus
/0/100/1f.6        enp0s31f6   network        Ethernet Connection (2) I219-LM
/0/0                           system         PnP device PNP0c01
/0/1                           system         PnP device PNP0c02
/0/2                           system         PnP device PNP0b00
/0/9                           generic        PnP device LEN0071
/0/a                           generic        PnP device LEN005b
/1                             power          00NY493
/2                 virbr1-nic  network        Ethernet interface
/3                 virbr0-nic  network        Ethernet interface
/4                 virbr0      network        Ethernet interface
/5                 virbr1      network        Ethernet interface
/6                 docker0     network        Ethernet interface
[brad@reason ~]$  cat /usr/share/gnome/gnome-version.xml
<?xml version="1.0" encoding="UTF-8"?>
<gnome-version>
 <platform>3</platform>
 <minor>22</minor>
 <micro>2</micro>
 <distributor>GNOME.Org</distributor>
 <date>2017-04-19</date>
[brad@reason ~]$ uname -a
Linux reason 3.10.0-862.14.4.el7.x86_64 #1 SMP Fri Sep 21 09:07:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[brad@reason /]$ cat /usr/local/bin/docker-tizonia
#!/bin/bash

USER_ID=$(id -u);
GROUP_ID=$(id -g);

docker run -it --rm \
    -e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
    --volume=${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse \
    --volume="${HOME}/.config/tizonia":/home/tizonia/.config/tizonia \
    --volume "${HOME}/.config/pulse/cookie":/home/tizonia/.config/pulse/cookie \
    --name tizonia \
    tizonia/docker-tizonia "$@";
erikLundstedt commented 4 years ago

this now happens for me too running on debian stable

`[Google Play Music] [Connecting] : 'EMAILADDRESS'. ModuleNotFoundError: No module named 'tizgmusicproxy'

tizonia exiting (OMX_ErrorInsufficientResources).

[OMX.Aratelia.audio_source.http:port:0] [OMX_ErrorInsufficientResources] `

juanrubio commented 4 years ago

@erikLundstedt

Hi Eric, Are you running the docker image, snap package or the debian installation?

erikLundstedt commented 3 years ago

@erikLundstedt

Hi Eric, Are you running the docker image, snap package or the debian installation?

hi sorry i didn't answer sooner, I pretty much switched to the desktop app after I started getting the error

I think it was the default Debian package I tried again yesterday as i have a coupple of scripts that talks to tizonia but I got the same error with booth the snap and the deb(the deb had some issues that i think are machine specific, tried the snap and got same error as before exept for the module not found part) and then again on my laptop

im now running bullseye/sid