Linux segv violation problem

Hi Guys
First congratulation for onwer realdash napko

problems with autostart on linux debian bulleyse
any ideas?
pi@vasf:~ $ journalctl -u realdash.service
– Journal begins at Tue 2023-12-05 07:43:02 CET, ends at Mon 2024-03-11 19:27:21 CET. –
mar 11 19:19:33 vasf systemd[1]: /etc/systemd/system/realdash.service:10: Unknown section ‘Intasll’. Ignoring.
mar 11 19:24:10 vasf systemd[1]: Started realdash Service.
mar 11 19:24:10 vasf realdash[2213]: 19:24:10.590 os_linux.cpp(444)(tid:0x2cc76f51) : NUTS_INFO -
mar 11 19:24:10 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:24:10 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:24:10 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 1.
mar 11 19:24:10 vasf systemd[1]: Stopped realdash Service.
mar 11 19:24:10 vasf systemd[1]: Started realdash Service.
mar 11 19:24:11 vasf realdash[2214]: 19:24:11.046 os_linux.cpp(444)(tid:0x1651dec0) : NUTS_INFO -
mar 11 19:24:11 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:24:11 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:24:11 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 2.
mar 11 19:24:11 vasf systemd[1]: Stopped realdash Service.
mar 11 19:24:11 vasf systemd[1]: Started realdash Service.
mar 11 19:24:11 vasf realdash[2215]: 19:24:11.294 os_linux.cpp(444)(tid:0x92294430) : NUTS_INFO -
mar 11 19:24:11 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:24:11 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:24:11 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 3.
mar 11 19:24:11 vasf systemd[1]: Stopped realdash Service.
mar 11 19:24:11 vasf systemd[1]: Started realdash Service.
mar 11 19:24:11 vasf realdash[2216]: 19:24:11.545 os_linux.cpp(444)(tid:0x596d53a4) : NUTS_INFO -
mar 11 19:24:11 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:24:11 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:24:11 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 4.
mar 11 19:24:11 vasf systemd[1]: Stopped realdash Service.
mar 11 19:24:11 vasf systemd[1]: Started realdash Service.
mar 11 19:24:11 vasf realdash[2217]: 19:24:11.794 os_linux.cpp(444)(tid:0x7c3a4bc9) : NUTS_INFO -
mar 11 19:24:11 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:24:11 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:24:11 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 5.
mar 11 19:24:11 vasf systemd[1]: Stopped realdash Service.
mar 11 19:24:11 vasf systemd[1]: realdash.service: Start request repeated too quickly.
mar 11 19:24:11 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:24:11 vasf systemd[1]: Failed to start realdash Service.
– Boot e79ddcf18df7450db3445d931ba3a0ee –
mar 11 19:25:46 vasf systemd[1]: Started realdash Service.
mar 11 19:25:48 vasf realdash[412]: 19:25:48.107 os_linux.cpp(444)(tid:0x0b958a3f) : NUTS_INFO -
mar 11 19:25:48 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:25:48 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:48 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 1.
mar 11 19:25:48 vasf systemd[1]: Stopped realdash Service.
mar 11 19:25:48 vasf systemd[1]: Started realdash Service.
mar 11 19:25:48 vasf realdash[617]: 19:25:48.790 os_linux.cpp(444)(tid:0x613e1efe) : NUTS_INFO -
mar 11 19:25:48 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:25:48 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:48 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 2.
mar 11 19:25:48 vasf systemd[1]: Stopped realdash Service.
mar 11 19:25:48 vasf systemd[1]: Started realdash Service.
mar 11 19:25:49 vasf realdash[635]: 19:25:49.006 os_linux.cpp(444)(tid:0x69e7ec30) : NUTS_INFO -
mar 11 19:25:49 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:25:49 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:49 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 3.
mar 11 19:25:49 vasf systemd[1]: Stopped realdash Service.
mar 11 19:25:49 vasf systemd[1]: Started realdash Service.
mar 11 19:25:49 vasf realdash[637]: 19:25:49.472 os_linux.cpp(444)(tid:0xca3d918d) : NUTS_INFO -
mar 11 19:25:49 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:25:49 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:49 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 4.
mar 11 19:25:49 vasf systemd[1]: Stopped realdash Service.
mar 11 19:25:49 vasf systemd[1]: Started realdash Service.
mar 11 19:25:49 vasf realdash[639]: 19:25:49.933 os_linux.cpp(444)(tid:0xabc88818) : NUTS_INFO -
mar 11 19:25:49 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:25:49 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:50 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 5.
mar 11 19:25:50 vasf systemd[1]: Stopped realdash Service.
mar 11 19:25:50 vasf systemd[1]: realdash.service: Start request repeated too quickly.
mar 11 19:25:50 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:50 vasf systemd[1]: Failed to start realdash Service.
lines 38-69/69 (END)

sorry is this information
sudo systemctl status realdash.service
● realdash.service - realdash Service
Loaded: loaded (/etc/systemd/system/realdash.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Mon 2024-03-11 19:25:50 CET; 14min ago
Process: 639 ExecStart=/usr/bin/realdash (code=killed, signal=SEGV)
Main PID: 639 (code=killed, signal=SEGV)
CPU: 83ms

mar 11 19:25:49 vasf systemd[1]: realdash.service: Main process exited, code=killed, status=11/SEGV
mar 11 19:25:49 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:50 vasf systemd[1]: realdash.service: Scheduled restart job, restart counter is at 5.
mar 11 19:25:50 vasf systemd[1]: Stopped realdash Service.
mar 11 19:25:50 vasf systemd[1]: realdash.service: Start request repeated too quickly.
mar 11 19:25:50 vasf systemd[1]: realdash.service: Failed with result ‘signal’.
mar 11 19:25:50 vasf systemd[1]: Failed to start realdash Service.

Hard to say for sure, but one cause could be that X is not fully started yet and RealDash is unable to create the window for itself.

Another cause can be user permissions. RealDash does not work properly on root permissions, but has to be executed in user space.

hi friend

here my realdash.service file

[Unit]
Description=RealDash
After=getty.target

[Service]
Type=simple
ExecStart=/usr/bin/startx /usr/bin/realdash
StandardInput=tty
StandardOutput=file:/home/pi/xstart.log
StandardError=file:/home/pi/xstart_error.log
TTYPath=/dev/tty3
User=pi
Environment=“DISPLAY=:0”
Environment=“XDG_RUNTIME_DIR=/run/user/$(id -u pi)”

[Install]
WantedBy=multi-user.target

Seeing your start command, the cause could be that X is not started properly yet when the realdash command is ran indeed.
Maybe you can try to put a ‘sleep’ command after the startx command, e.g. “sleep 5” for 5 seconds, if that works you can try a lower value. Or start X separately first, with another service file (unless realdash is the only graphical application you want to run or sth, don’t know the exact setup).
I’m not exactly a systemd expert and would need to try out some things to know what actually works first, but I’m sure you can find info/syntax online.

1 Like

change code, but same result…

[Unit]
Description=RealDash
After=getty.target

[Service]
Type=simple
ExecStart=/usr/bin/startx /usr/bin/realdash
StandardOutput=syslog
StandardError=syslog
User=pi
Environment=“DISPLAY=:0” # Añade esta línea para especificar el display
ExecStartPost=/bin/sleep 5 # Añade un retraso de 5 segundos después de iniciar X

[Install]
WantedBy=multi-user.target

thanks for suggestions

I suppose the ‘execstartpost’ thing is executed right after the execstart command, so that’s probably not gonna work.

Neither will my suggestion though as the syntax is as you have it there: startx followed by the command of the graphical application you want to run. Sorry, must have been 10 years or so since I started an X server manually.

What happens if you just run it from the command line? Might throw some errors that can help you troubleshoot.
If you need to specify the display you want to use, you can do so with an environment variable, for example, or maybe with the -d option for startx (best to check the man page).

1 Like

Ok friend
I’m going to try to create a startup script with the separate applications, to give RealDash time to start
Thanks for your contribution

2 Likes