MeisApps / pcbu-desktop

Desktop app for PC Bio Unlock
https://meis-apps.com/pc-bio-unlock
GNU General Public License v3.0
16 stars 2 forks source link

Unable to pair on new desktop app (Linux) #9

Closed davidmartos96 closed 2 months ago

davidmartos96 commented 3 months ago

Hello! The new desktop app is looking nice.

I have an issue setting it up on Linux though, and the previous Java based version was pairing fine. On the new app, after setting up the server IP address manually, when I try to pair an Android device, the mobile app will complain with "Failed to connect to the PC. Please try setting you IP Address in the desktop app settings and make sure your firewall is configured correctly".

When starting the pairing flow I see the following logs, but the desktop settings look just fine

image

[2024-07-04 10:51:11.288] Invalid server IP settings.
[2024-07-04 10:51:11.288] Pairing server started.
[2024-07-04 10:51:11.290] Invalid server IP settings.

I've never experienced firewall or connection issues with AppImage based apps.

Not sure if related, but another thing I'm experiencing when running the desktop app is that it will hang for several seconds before displaying the UI with the following logs. The QT log is the one that displays after several seconds of freeze.

[2024-07-04 10:41:09.822] Logger init.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
[2024-07-04 10:41:10.205] Failed checking for updates: SSL server verification failed
qt.accessibility.atspi: Error in contacting registry: "org.freedesktop.DBus.Error.NoReply" "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."

Thank you for your work, keep it up!

Desktop app version 2.0.1

MeisApps commented 3 months ago

Oops, I wasn't setting the IP address correctly if it's manually entered. Will be fixed in the next update. Do you mean the freeze happens only with the logs window? If not, please tell me which distro you're using and your desktop environment.

davidmartos96 commented 3 months ago

@MeisApps I see.

The freeze happens every time I open the app. It didn't the first time I opened it though.

My distro is Fedora 39 with GNOME

davidmartos96 commented 3 months ago

@MeisApps Not related to the logs window, because the logs I'm seeing them by launching the AppImage from a terminal

MeisApps commented 3 months ago

Please try running the AppImage with the following environment variable: NO_AT_BRIDGE=1 ./PCBioUnlock.AppImage. I tried to reproduce the freezing on your distro within a VM, but it worked fine there. It looks like the qt.accessibility.atspi line causes this.

davidmartos96 commented 3 months ago

@MeisApps With that env var it doesn't freeze

MeisApps commented 3 months ago

Thanks for testing. Just one more thing, could you please try installing/reinstalling the package at-spi2-core? The issue might get resolved through that. The env var is more of a workaround by simply disabling accessibility.

davidmartos96 commented 3 months ago

@MeisApps dnf reinstall at-spi2-core fixed the freeze. Thanks!

MeisApps commented 2 months ago

Fixed in the latest version.

davidmartos96 commented 2 months ago

Thank you!