Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App stuck on loading screen #10

Open
Crazyphil opened this issue Mar 7, 2023 · 7 comments
Open

App stuck on loading screen #10

Crazyphil opened this issue Mar 7, 2023 · 7 comments
Labels
bug Something isn't working UX User does not get meaningful feedback. Meaning it's hard to infer what might be going on

Comments

@Crazyphil
Copy link

Crazyphil commented Mar 7, 2023

I installed Trayasen on Windows 10 22H2 using the MSI installer of the latest release 0.0.3. After running the setup, a window with title Idasen Controller automatically appears, and also the carrot in the system task tray. Unfortunately, the main window seems to be stuck on the loading screen with a rotating carrot:

image

The tray icon's menu works, but none of the menu options (apart from Quit) do anything. What steps am I missing to successfully use your tool?

Edit: one thing that got to me when browsing through other libraries: I'm not using an Idasen desk but the Linak DPG1C controller, which seems to work differently from other controllers and has already caused discussions. So, maybe the problem is simply that I'm using your program for the wrong purpose.

@golota60
Copy link
Owner

golota60 commented Mar 7, 2023

Hey! thanks for the issue - there's a bug that made the app stuck in loading state permanently, when it should've showed the error. Will publish a 0.0.4 that shows the underlying error(should be up in ~30 minutes). When it's release if you find some time, please uninstall 0.0.3 and install 0.0.4, it should display the actual underlying error which will help me debug the issue further 🙏

In the meantime, you can:

  1. Try launching the app as an administrator
  2. Try modifying your config file from
{"local_name":null,"saved_positions":[]}

to

{"local_name":"YOUR_BLUETOOTH_DESK_NAME","saved_positions":[]}

Also - the menu options won't do anything if any other Trayasen window is open - this is to prevent user from opening up several windows and to have only one window open at the time

EDIT: v0.0.4 has been released

@Crazyphil
Copy link
Author

Thanks for your quick response.
I've installed version 0.0.4 and followed your instructions. This is what I found:

  • When I start the program after installation, the appearing window shows a different title in 0.0.4, but it still is stuck on loading and doesn't show an error message.
  • When I edit the config file and enter my (custom, not default) desk name, the setup window isn't shown, but the tray icon disappears after a few seconds. Seems like the program crashes.
  • When I start the program again as administrator, the program this time doesn't crash. It stays in the tray. However, I still cannot control the desk, I can only view and add height settings.

image

Btw, the Windows Event Viewer doesn't have an entry of a crashed program at the time Trayasen seems to crash. So maybe it "exits gracefully"?

@golota60
Copy link
Owner

golota60 commented Mar 8, 2023

Alright, so - setup window is only shown if the app doesn't detect loc_name field in the config file. With that being said, i think we can split this into two separate issues:

  1. w/o config loc_name field(infinite loading) - I think I've managed to reproduce infinite loading bug on my windows machine. For me this happens in one of three cases(will try to add more graceful handling of those cases in the future):
  • Bluetooth is turned off(unlikely, i think you've got your bluetooth on)
  • Desk is not paired with the machine
  • If no desks were found, bluetooth module will not finish loading until it finds atleast one, resulting in infinite loading. This may happen due to a couple of things:
    • Custom desk name(this should be covered by manually changing config file)
    • Other device is currently connected to the desk
  1. w/ config loc_name field - Setup step expectedly doesn't open, but the app silently failing when it fails to connect to the desk name that was saved in the config file. That might happen because of the same reasons that I've listed before.

So, finally, to resolve your issue 😛 You've got a custom desk name, so the setup step is expected to fail. So I assume that the app is correctly trying to connect to your desk with the name provided in the config file, but simply can't(for some reason). So, I'd advise you to:

  • Add your custom bluetooth desk name in the config file(you've already done that)
  • Make sure nothing else is connected to the desk(only one device can be connected to it at any time)

Your last point makes me think that the app is working correctly - if it failed to connect to the desk, it would close - but it doesn't. If you've added a couple of positions - i know it might be a silly this to ask, but have you tried clicking on a couple of them in the tray? Maybe by coincidence, you've tried moving the desk to a position it's been already at 😄

Could you:

  1. Open Trayasen as Administrator
  2. Then open up Windows Bluetooth manager and say whether it says Connected or Paired? This might be the crucial thing to decide whether it's actually connecting for this scenario

Your issue has showed a couple of incorrect assumptions I've made while creating the app - I'll create some actionable issues out of that. Especially the fact that I assumed that people wouldn't rename their desk 😛

@golota60
Copy link
Owner

Since this is happening on LINAK desks and not IKEA ones - I'm going to remove it from the milestone and await more reproductions 🙏

@golota60 golota60 removed this from the v0.0.6 milestone Sep 12, 2023
@falkenhawk
Copy link

falkenhawk commented Sep 14, 2023

fwiw it works for me beautifully (v0.0.6), and I have quite old (7y) LINAK desk with a bluetooth adapter.
image

@mariuszciaston
Copy link

I’m experiencing a similar issue.

I installed Trayasen 0.0.6 on the latest version of Windows 11 (23H2 22631.2715). After initiating the setup, a window titled “Trayasen - Setup” appears, along with a carrot icon in the system task tray. However, the main window seems to be stuck on a loading screen with a rotating carrot. The tray icon’s menu is functional, but none of the menu options (except for Quit) seem to work. I’ve tried running it as an administrator to no avail. My desk is connected to my Windows PC, as indicated in the Bluetooth control panel where it’s listed as “Desk 1234” - connected. I’ve also tested the official LINAK Desk Control app (https://www.microsoft.com/store/apps/9MV0MX54JGBR), which connects and operates without any issues from the same PC. The Desk Control app also works on Android. I’ve ensured that no other devices are connected to the desk while attempting to run Trayasen.

When I edit the ‘idasen-tray-config.json’ file and add my desk name like this:

{"local_name":"Desk 1234","saved_positions":[]}

The Trayasen Setup window and the carrot icon in the tray do not appear. I only see a waiting cursor for about 5 seconds, and then nothing. Running it as an administrator doesn’t change anything. I’ve managed to add some new positions, but when I click on them, the app closes/crashes.

After struggling with this for two days, I’ve found a solution: if I delete my desk “Desk 1234” from the Bluetooth and devices panel and then open the app, I receive a notification in the bottom right corner. After accepting the pairing, it works!

However, every time I want to open the app, I need to remove the connection in the Bluetooth and devices panel first. This is not ideal. Sometimes, I can’t connect at all, and the desk doesn’t appear in the Bluetooth and devices panel. But I’ve discovered that when I open the LINAK Desk Control app, it connects to the desk, and my “Desk 1234” reappears in the Bluetooth devices. So now, I can remove it from there, open Trayasen, and it should work again if not then I need to press bluetooth button on the desk.

In conclusion, the process of connecting the desk and the application is problematic. I would appreciate a more simplified process. In any case, I want to express my immense gratitude for this application. It’s the first one that has truly worked for me. I’ve tried numerous others here on GitHub, but I couldn’t get any of them to work.

@golota60
Copy link
Owner

golota60 commented Nov 22, 2023

Hey! Thanks for the feedback, I really do appreciate it - to be totally honest, seamless bluetooth integration which meaningful UX has been a challenge - there's simply no way to easily achieve meaningful feedback from the system about bluetooth, in a cross platform way. There's just no abstraction that would make that possible.

With that being said, things can definitely be better, even with current limitations. I'll be setting UX as a priority for a 0.1.0 release, with a target at the end of this year - with UX and cross-system keystroke bugs reported by @falkenhawk and tracked in #20

@golota60 golota60 mentioned this issue Nov 22, 2023
@golota60 golota60 added the UX User does not get meaningful feedback. Meaning it's hard to infer what might be going on label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UX User does not get meaningful feedback. Meaning it's hard to infer what might be going on
Projects
None yet
Development

No branches or pull requests

4 participants