I’m working on a sample application that I want to be automatically executed when the system initializes/boots.
When starting the application from the command-line, everything works fine, I can see the application on the screen and interact with it.
But when trying to start the application from its service, I got the following error:
Jan 20 14:00:19 apalis-imx6 systemd: Started GUI Autorun Testing. Jan 20 14:00:19 apalis-imx6 tcdemoapp: free(): invalid pointer Jan 20 14:00:19 apalis-imx6 systemd: autoruntest.service: Main process exited, code=killed, status=6/ABRT Jan 20 14:00:19 apalis-imx6 systemd: autoruntest.service: Failed with result 'signal'.
This is my sample service:
[Unit] Description=GUI Totalcross Autorun Testing After=multi-user.target [Service] Environment=XDG_RUNTIME_DIR=/var/run/user/0 Environment=DISPLAY=:0 Type=simple ExecStart=/home/root/app/tcdemoapp [Install] WantedBy=multi-user.targe
Even if the system is already running, and I try to start it with
systemctl start tcdemoapp, the same error occurs.
My environment is a Yocto Build Dunfell with BSP 5.1.0 from Toradex on an Apalis iMX6DL Arm32v7, running Wayland. And TotalCross library 6.1.0 (from meta-totalcross).
Could you help me indicating what I may be doing wrong?