GSConnect / gnome-shell-extension-gsconnect

KDE Connect implementation for GNOME
GNU General Public License v2.0
3.22k stars 259 forks source link

Device status showing like connected, despite not connected #1869

Open Altonss opened 1 month ago

Altonss commented 1 month ago

Describe the bug

The associated device is showing as if it was connected (battery status, possibility to click on send files...), despite not being connected.

Steps to reproduce

No response

Expected behavior

It should show an up to date status of the connection.

GSConnect version

57

Installed from

GNOME Extensions website

GNOME Shell version

46

Linux distribution/release

Fedora Linux 40 (Workstation Edition)

Paired device(s)

No response

KDE Connect app version

1.32.2 (F-Droid)

Plugin(s)

No response

Support log

No response

Screenshots

No response

Notes

No response

ferdnyc commented 1 month ago

@Altonss

Hmm, that's not a whole lot to go on, unfortunately. A few questions:

  1. If the device is showing data in the extension, what makes you say it's not connected? (I believe you, I'm just wondering how you determined that. Does it not show up on the Android side? Is the Android device offline? Does trying to interact with it via GSConnect fail?)
  2. Is this something that just happened once, or does it happen repeatably?
  3. What about if you open the GSConnect Preferences ("Mobile Settings" from the user menu); (a) does it show as "Connected" in the device list, and (b) what happens if you hit the Refresh button in the upper-left corner?

Unfortunately the "Generate Support Log" debugging tool doesn't work in the release version of v57, or I'd recommend collecting logs that way. But you can run journalctl --user -b --grep gsconnect in a terminal window, to see if there have been any messages logged since boot; JavaScript errors would be the most interesting data, if there are any.

You'll probably see at least one "Failed to start app-gnome-org.gnome.Shell.Extensions.GSConnect.Preferences..." message; if the preferences did start, then you can disregard those.

Altonss commented 1 month ago

If the device is showing data in the extension, what makes you say it's not connected? (I believe you, I'm just wondering how you determined that. Does it not show up on the Android side? Is the Android device offline? Does trying to interact with it via GSConnect fail?)

The battery level was wrong, which indicates it was still displaying data from a past connection. And on the Android side it wasn't showing up as connected too :)

Is this something that just happened once, or does it happen repeatably?

Right now I'm not sure, maybe it already happened in the past but I don't remember.

What about if you open the GSConnect Preferences ("Mobile Settings" from the user menu); (a) does it show as "Connected" in the device list, and (b) what happens if you hit the Refresh button in the upper-left corner?

IIRC it was showing as connected in the device list.

I'll try to collect logs if I see this issue again :)