Giter VIP home page Giter VIP logo

Comments (8)

antiprism avatar antiprism commented on June 2, 2024

Hi

Thanks for reporting the issue. Just to check, you have built a 64 bit mpd_oled binary from source on the sytem you are running the binary on. Were there any warnings printed when compiling? If you aren't sure, could you rebuild mpd_oled and review the output for any warnings or errors.

Adrian.

from mpd_oled.

kan-ibal avatar kan-ibal commented on June 2, 2024

Yes, I have built it on the same system I'm running the binary on. There were no warnings when compiling. I have to add that when I run binary in terminal from command line it works as it suppose to.

from mpd_oled.

antiprism avatar antiprism commented on June 2, 2024

The issue seems strange.

Just to confirm

  • not playing music and running mpd_oled from the command line works fine, starting and stopping the music works fine
  • playing music and running mpd_oled from the command line works fine, stopping and starting the music works fine
  • not playing music and starting the mpd_oled service causes a crash
  • playing music and starting the mpd_oled service does not cause a crash, stopping the music causes a crash

The backtrace contains the line

#7 0x000000559187c648 n/a (/home/.local/bin/mpd_oled.new + 0x14c648)

Do you know anything about "/home/.local/bin/mpd_oled.new"?

Could you post the contents of: /etc/systemd/system/mpd_oled.service

Adrian.

from mpd_oled.

kan-ibal avatar kan-ibal commented on June 2, 2024
  • not playing music and running mpd_oled from the command line works fine, starting and stopping the music works fine

yes

  • playing music and running mpd_oled from the command line works fine, stopping and starting the music works fine

yes (as above)

  • not playing music and starting the mpd_oled service causes a crash
  • playing music and starting the mpd_oled service does not cause a crash, stopping the music causes a crash

yes - stopping or pausing(mpc client)

The backtrace contains the line
#7 0x000000559187c648 n/a (/home/.local/bin/mpd_oled.new + 0x14c648)
Do you know anything about "/home/.local/bin/mpd_oled.new"?

Yes, my mistake. Should be as above, /usr/local/bin. That is from my other test attempt.

Could you post the contents of: /etc/systemd/system/mpd_oled.service

Now is:

[Unit]
Description=MPD OLED Display

[Service]
ExecStart=/usr/local/bin/mpd_oled -k -a 3c -o 3 -b 10 -g 1 -f 25 -c fifo,/tmp/mpd.fifo

[Install]
WantedBy=multi-user.target

from mpd_oled.

antiprism avatar antiprism commented on June 2, 2024

Hi

The service file isn't as expected, as it should start mpd_oled from a launch script that waits for mpd to start. I am not sure if it will help, but it would make sense to have the service file setup like a new install for testing. If you are not running the repository version of mpd_oled then please install that version instead. In all cases (even if you reinstall), reset the service file with

sudo mpd_oled_service_uninstall
sudo mpd_oled_service_install
sudo mpd_oled_service_edit -k -a 3c -o 3 -b 10 -g 1 -f 25 -c fifo,/tmp/mpd.fifo

List the contents of /etc/systemd/system/mpd_oled.service and check it is now running mpd_oled_launch instead of mpd_oled

Adrian.

from mpd_oled.

kan-ibal avatar kan-ibal commented on June 2, 2024

I don't think it will help as well. Yes, I admit that my service file is custom but for testing purposes I followed your path but mpd_oled_service_edit gives me:

rAudio:~/mpd_oled/scripts  #  ./mpd_oled_service_edit -k -a 3c -o 3 -b 10 -g 1 -f 25 -c fifo,/tmp/mpd.fifo
setting service file to run: mpd_oled '-k -a 3c -o 3 -b 10 -g 1 -f 25 -c fifo,/tmp/mpd.fifo'
sed: -e expression #1, char 79: unknown option to `s'

using manual setup:

[Unit]
Description=MPD OLED Display

[Service]
ExecStart=/usr/local/bin/mpd_oled_launch /usr/local/bin/mpd_oled -k -a 3c -o 3 -b 10 -g 1 -f 25 -c fifo,/tmp/mp
d.fifo -p mpd

[Install]
WantedBy=multi-user.target

doesn't change anything.

from mpd_oled.

antiprism avatar antiprism commented on June 2, 2024

Hi

I tracked down the sed error, and will fix it, thanks.

It is difficult to suggest more things to try, but maybe it is related to the system user that is used to run the mpd_oled program when the service starts it.

I'll see if I can install here and take a look. Where can I download the rAudio image are you using? Are there any other instructions to set up the system as you have done?

Adrian.

from mpd_oled.

kan-ibal avatar kan-ibal commented on June 2, 2024

Full image you can find here and update via rAudio GUI to the latest. There is no additional system setup I have that may be applicable for that mpd_oled issue.
For my display, in /boot/config.txt I have following settings:

dtparam=i2c_arm=on
dtparam=i2c_arm_baudrate=800000

and in /etc/modules-load.d/mpd_oled.conf
i2c-dev

How to set wi-fi you can find in readme.

from mpd_oled.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.