Windows 11: window doesn't show & tray icon entries not working

#258 · closed · 14 comments

View on GitHub ↗

BOB74j

### Description Nyrna on Windows 11 does not respond to any tray icon menu entries regardless of Nyrna settings. This also means that the Nyrna window cannot be invoked when set the "Start hidden in system tray" setting is set to "on". There is no way to restore GUI functionality short of manually deleting the app data at %APPDATA%\codes.merritt\nyrna\storage to return to default settings. ### To Reproduce Steps to reproduce the behavior: 1. Install Nyrna version 2.16 or above on Windows. 2. Launch Nyrna. 3. Right-click the Nyrna tray icon. Nyrna will not respondd to the "Show", "Hide", "Reset Window", or "Exit" options. ### Expected behavior Nyrna should respond to the tray icon menu options regardless of Nyrna settings. ### System Information - OS: Windows 11 25H2 - Nyrna Version 2.26.1 ### Logs <details> <summary>Logs</summary> ``` INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 LoggingManager.initialize (package:nyrna/logs/logging_manager.dart:58) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Logger initialized. INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 main (package:nyrna/main.dart:52) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Starting Nyrna v2.26.1 INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── TRACE ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── TRACE │ #0 SystemTrayManager.initialize (package:nyrna/system_tray/system_tray_manager.dart:31) TRACE │ #1 main (package:nyrna/main.dart:96) TRACE ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ TRACE │ Setting system tray icon to assets/icons/codes.merritt.Nyrna.ico TRACE └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 HotkeyService.addHotkey (package:nyrna/hotkey/global/hotkey_service.dart:34) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Registered hotkey: Pause INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 LoadingCubit.checkDependencies (package:nyrna/loading/cubit/loading_cubit.dart:18) INFO │ #1 new LoadingCubit (package:nyrna/loading/cubit/loading_cubit.dart:14) INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Checking dependencies.. INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 AutostartService._isRunningInMsix (package:nyrna/autostart/autostart_service.dart:119) INFO │ #1 AutostartService.enable (package:nyrna/autostart/autostart_service.dart:33) INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Running in MSIX: false INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 AutostartService._setupLaunchAtStartup (package:nyrna/autostart/autostart_service.dart:142) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 packageName: nyrna INFO │ 💡 resolvedExecutable: C:\Users\Joe\AppData\Roaming\Nyrna\nyrna.exe INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -------------------------------------------------------------------------------- 2026-03-19 16:48:55 INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 LoggingManager.initialize (package:nyrna/logs/logging_manager.dart:58) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Logger initialized. INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 main (package:nyrna/main.dart:52) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Starting Nyrna v2.26.1 INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── TRACE ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── TRACE │ #0 SystemTrayManager.initialize (package:nyrna/system_tray/system_tray_manager.dart:31) TRACE │ #1 main (package:nyrna/main.dart:96) TRACE ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ TRACE │ Setting system tray icon to assets/icons/codes.merritt.Nyrna.ico TRACE └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 HotkeyService.addHotkey (package:nyrna/hotkey/global/hotkey_service.dart:34) INFO │ #1 <asynchronous suspension> INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Registered hotkey: Pause INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── INFO │ #0 LoadingCubit.checkDependencies (package:nyrna/loading/cubit/loading_cubit.dart:18) INFO │ #1 new LoadingCubit (package:nyrna/loading/cubit/loading_cubit.dart:14) INFO ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ INFO │ 💡 Checking dependencies.. INFO └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ``` </details>

Comments

Merrit

Thanks for opening the issue, will try to take a look

Merrit

I can't reproduce (on Windows 10). Please try this: - In Nyrna go to `Settings` → `Troubleshooting` and enable `Verbose logging` - Close Nyrna - delete `%APPDATA%\codes.merritt\nyrna\logs` - Reproduce the issue - Paste new logs (if any) from that directory here

Merrit

nvm, I missed that you did attach logs

Merrit

I presume this is a Window 11 regression since I can't repro on Windows 10. I'm afraid I can't test again Windows 11.

BOB74j

I did some additional testing and determined that 2.15.0 is the latest version with working tray menu entries on Windows 11. 2.16.0 and beyond present the issue as described above. I also tested on a fresh install of Windows 11 with the same results.

BOB74j

More testing, the failure to respond to the tray icon menu entries is present regardless of Nyrna settings. "Show", "Hide", and "Reset Window" do not produce any action. As a result certain settings combinations, as described previously, can get the app stuck in the tray with no way to invoke the GUI, but the main issue is the unresponsive tray menu entries. Since this regression first appeared in v2.16.0, could it be related to [this commit](https://github.com/Merrit/nyrna/commit/7b14705c73c0ea8d21acfad18102344756b311a5) to the system tray functionality? EDIT: I updated my [Visual C++ redistributables](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-supported-redistributable-version) while attempting some debugging. Fortunately, this fixed the portable app under version 2.26.1. The non-portable installation, however, remains affected by the issue.

Merrit

Thanks, that's a great lead on what the issue might be; I tried updating the build environment, which should give it all kinds of newer MS dependencies. These are the updated builds, if you can test if they resolve the issue that would be great: [windows-artifacts.zip](https://github.com/user-attachments/files/28069370/windows-artifacts.zip)

BOB74j

> Thanks, that's a great lead on what the issue might be; I tried updating the build environment, which should give it all kinds of newer MS dependencies. > > These are the updated builds, if you can test if they resolve the issue that would be great: > > [windows-artifacts.zip](https://github.com/user-attachments/files/28069370/windows-artifacts.zip) Launching the provided build as the included portable app does nothing. No GUI, no tray icon, no response to the default pause hotkey, and no Nyrna process in Task Manager. Just the creation of an empty log file at %APPDATA%\codes.merritt\nyrna\logs. The installed version does report a DLL error message on launch in a fresh Windows VM without the latest Visual C++, but after installing the latest redistributable the behavior mimics the portable application. The log file and the error message suggest that Nyrna tries to do something but exits early into execution. <img width="620" height="228" alt="Image" src="https://github.com/user-attachments/assets/395aaba3-4387-4507-9368-882b35dc3467" /> I ran into the very same behavior yesterday when I built Nyrna from source. Launching the executable made the empty log file and nothing else. I attributed the silent crash to my own user error with the build process, but could there be some new issue at play with the dependencies?

Merrit

> I attributed the silent crash to my own user error with the build process, but could there be some new issue at play with the dependencies? Quite possible. Also Microsoft has been making big changes to Windows 11. I have an idea for something else to try, I will look into shortly.

Merrit

I believe it should be working now, please try this build: https://github.com/Merrit/nyrna/actions/runs/26374103225/artifacts/7188783976

BOB74j

> I believe it should be working now, please try this build: https://github.com/Merrit/nyrna/actions/runs/26374103225/artifacts/7188783976 With this latest build, the app opens as expected. The portable app also functions as expected, with the cosmetic issue that the hotkey assignment shows as "null" whether set to the default Pause key or any other key. The hotkey still operates correctly. However, the installer remains plagued by the unresponsive tray icon menu entries. Another diagnostic tidbit: from a fresh install with %APPDATA%\codes.merritt\ empty, the first launch is unaffected. The tray icon responds. But after exiting, all subsequent launches are affected. <img width="516" height="593" alt="Image" src="https://github.com/user-attachments/assets/ee4aa8d4-21f4-43be-900e-ba9513da1229" />

Merrit

> Another diagnostic tidbit: from a fresh install with %APPDATA%\codes.merritt\ empty, the first launch is unaffected. The tray icon responds. But after exiting, all subsequent launches are affected. Thanks, this was helpful! How about this: https://github.com/Merrit/nyrna/actions/runs/26406359025/artifacts/7200433383

BOB74j

> How about this: https://github.com/Merrit/nyrna/actions/runs/26406359025/artifacts/7200433383 Functions as expected from both the portable app and the installer! Thanks for the persistence on this issue. Just another minor cosmetic problem that cropped up on this latest build: there are some unintelligible characters that show on hovering over the tray icon. <img width="62" height="85" alt="Image" src="https://github.com/user-attachments/assets/2adf14d8-3edc-4066-bf44-3cc50d20b673" />

Merrit

Fixed that as well, with 8a44fef5944871d22c0d049d30f3747041d3a266. Appreciate your assistance debugging and testing, thank you! :)