wfview closes when you disconnect from radio to change settings

Brief summary of problem (put in title as well):
Radio Model: Icom 7100
Connectivity (USB/Ethernet/Wifi/Other): USB
Operating System: Bookworm Raspberry PI 4
wfview version (press “About”): 2.11
Checked the wfview manual (Y/N): Y
Checked the wfview FAQ (Y/N): Y
Tried to google it (Y/N/NA): Y

What I did: recently upgraded to 2.11

Expected behavior: when i disconnect from radio i expect to remain in wfview and be able to adjust settings.
I am using pi as a server. I have the pi set up to automatically load wfview on start up using systemd.

If I stop wfview in systemd, disable wfview in systemd and reboot, I can bring up wfview disconnect from the radio and make changes to settings. When I restart and enable wfview in systemd the changes made were not incorporated.

Observed behavior: Disconnecting from radio in wfview closes wfview. Note this only happens when vfview is started on wfview started from systemd.

It seems like your wfview client might be crashing on disconnect.

Can you launch the client from the terminal and try and replicate the issue? See if it says anything helpful in the terminal when it closes on disconnect. You may wish to add “ -d” to the command so that you get more debug information.

—E
de W6EL

Below is output from terminal window

kd4vlh@Jeep-pi:~ $ wfview
Current translation language: “”
Recognized requested language and loaded the translations (or at least found the /translations resource folder). Installing translator.
Changed to translation language: “en_GB”

(wfview:2468): GLib-GObject-CRITICAL **: 09:58:55.815: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed

Also noted that when I run wfview from terminal everything works. But when it is run from systemd disconnect from radio shuts down wfview. In reviewing logs I noted that the terminal version runs from wfview.conf located in .config in my user directory while the wfview run in systemd uses /.config/wfview/wfview.conf

my wfview.service file is listed below
Unit]
Description=Start wfview

[Service]
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/kd4vlh/.Xauthority
ExecStart=/usr/local/bin/wfview
Restart=always
RestartSec=10s
KillMode=process
TimeoutSec=infinity

[Install]
WantedBy=graphical.target

is there something wrong with my wfview.service file?

Thanks Chuck KD4VLH

Hi Chuck,

It seems like your systemd unit file runs wfview as root. That explains why it is loading the config from an alternate location. We don’t recommend this.

Help me understand, when your systemd unit loads up, does it launch wfview graphically? What if you don’t log in, does it still manage to do so?

–E
de W6EL

I have the raspberry pi 4 set up with auto login and then use the system unit file from my previous post to run wfview. Wfview connects to the radio and, used as a server I can connect my laptop to the raspberry pi and control the radio. In the version that starts with the systemd service file The sound setting on the server need to be changed for the sound to work on the laptop. When I disconnect from the radio to change the settings wfview closes. Due to the systemd unit fileunder the program restarts but when you disconnect the radio the wfview closes again. I have modified the systemd unit file to run wfview under my username, added User=kd4vlh. I have confirmed this with “ps aux | grep wfview”. If I stop and disable the systemd unit file, reboot the pi and start wfview from a terminal window I can disconnect the radio and adjust setting as i need too. With the vfview run from the terminal all controls work along with sound. I can run ft8 and/or fldigi.
Chuck KD4VLH