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

[BUG] Process is running, but the program is not launching at all #520

Open
kwon0408 opened this issue Jun 26, 2024 · 6 comments
Open

[BUG] Process is running, but the program is not launching at all #520

kwon0408 opened this issue Jun 26, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@kwon0408
Copy link

Describe the bug
Process is running (shown in the Task Manager), but the program is not launching at all. No window, no tray icon.

To Reproduce
Steps to reproduce the behavior:

  1. Just run the program.

Expected behavior
The main window and the tray icon should show up.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Windows 11 23H2 64bit, OS Build number 22631.3737, default system language: Korean
  • Application version: 5.0.0

Additional context

  • Similar to [BUG] The main window doesn't show up #489, but the tray icon is also missing this time.
  • I have reinstalled several times, thinking whether there are any corrupted files. Below are their SHA256 hashes after the last attempt:
    • Installer: 2B197B08206DB196E07924D115914231073D42B380420AF5494E2754CDD8A919
    • The main executable (same for both portable and setup version): AB819C94709B89F5102703825EB48736DE52534898BE851A818C5264925ECDA8

Log files
application.log

@kwon0408 kwon0408 added the bug Something isn't working label Jun 26, 2024
@timschneeb
Copy link
Owner

This is related to issue #513. That bug prevents this app from launching correctly on some systems.

@timschneeb timschneeb closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
@kwon0408
Copy link
Author

The problem is still not solved in v5.0.1.

@BoyceXX
Copy link

BoyceXX commented Jun 28, 2024

Double it, still crash here unfortunately with v5.0.1. The same symptom.

@timschneeb timschneeb reopened this Jun 28, 2024
@timschneeb
Copy link
Owner

timschneeb commented Jun 28, 2024

In that case, I need to check it again. I can't reproduce this issue, which makes it a bit hard to debug

@BoyceXX
Copy link

BoyceXX commented Jul 2, 2024

In that case, I need to check it again. I can't reproduce this issue, which makes it a bit hard to debug

I think it has somthing to do with bluetooth switch.
When it is on, Release 5.0.1 works fine.
But when bluetooth was off before app startup, then it will crash.

Here is how the log file looks like on my pc after a crash of the app:

2024-07-02 09:16:57.197 +08:00 [INF] PlatformImpl: Using WindowsRtPlatformImplCreator
2024-07-02 09:16:57.219 +08:00 [DBG] Windows.HotkeyReceiver: WndProc probes attached
2024-07-02 09:16:57.294 +08:00 [DBG] WindowsRT.BluetoothService: Device watcher launched
2024-07-02 09:16:57.296 +08:00 [DBG] WindowsRT.BluetoothService: Device added: Bluetooth#Bluetoothc0:3c:59:db:06:d1-40:5e:f6:9d:fa:8d
2024-07-02 09:16:57.308 +08:00 [DBG] WindowsRT.BluetoothService: Device added: Bluetooth#Bluetooth0e:d1:45:dd:99:01-40:5e:f6:9d:fa:8d
2024-07-02 09:16:57.309 +08:00 [DBG] WindowsRT.BluetoothService: Device updated: Bluetooth#Bluetoothc0:3c:59:db:06:d1-40:5e:f6:9d:fa:8d
2024-07-02 09:16:57.312 +08:00 [ERR] Device info added
System.ArgumentException: 参数错误。

提供的设备 ID 不是有效的 BluetoothDevice 对象。
at GalaxyBudsClient.Platform.WindowsRT.BluetoothService.<.ctor>b__35_4(DeviceWatcher watcher, DeviceInformation deviceInfo)
2024-07-02 09:16:57.315 +08:00 [INF] IpcService: Server listening at tcp:host=::1,port=54533
2024-07-02 09:16:57.323 +08:00 [DBG] WindowsRT.BluetoothService: Device added: Bluetooth#Bluetoothc0:3c:59:db:06:d1-54:10:4f:1e:1b:ac
2024-07-02 09:16:57.328 +08:00 [DBG] WindowsRT.BluetoothService: Device added: Bluetooth#Bluetoothc0:3c:59:db:06:d1-e8:7f:6b:9c:7f:7d
2024-07-02 09:16:57.846 +08:00 [DBG] WindowsRT.BluetoothService: Selected 'Boyce 的 Buds FE' (54:10:4f:1e:1b:ac) from cache as target
2024-07-02 09:16:58.082 +08:00 [INF] User script directory: C:\Users\xx\AppData\Local/GalaxyBudsClient/scripts
2024-07-02 09:16:58.082 +08:00 [INF] ScriptManager: 0 user script(s) found
2024-07-02 09:16:58.083 +08:00 [INF] Translator mode file location: C:\Users\xx\AppData\Local/GalaxyBudsClient/custom_language.xaml
2024-07-02 09:16:58.083 +08:00 [DBG] Environment: "Production"
2024-07-02 09:16:58.330 +08:00 [DBG] Windows.HotkeyReceiver: All hotkeys unregistered
2024-07-02 09:16:58.330 +08:00 [INF] Startup time: "00:00:01.3126364"
2024-07-02 09:16:58.743 +08:00 [DBG] WindowsRT.BluetoothService: Device updated: Bluetooth#Bluetoothc0:3c:59:db:06:d1-40:5e:f6:9d:fa:8d
2024-07-02 09:17:01.911 +08:00 [DBG] MainWindow.OnClosing: Termination cancelled
2024-07-02 09:17:13.684 +08:00 [ERR] WindowsRT.BluetoothService: Unknown error while connecting
System.Runtime.InteropServices.COMException (0x8007277C)
at GalaxyBudsClient.Platform.WindowsRT.BluetoothService.ConnectAsync(String macAddress, String serviceUuid, CancellationToken cancelToken)
2024-07-02 09:17:16.434 +08:00 [DBG] WindowsRT.BluetoothService: Device enumeration complete
2024-07-02 09:17:16.435 +08:00 [DBG] WindowsRT.BluetoothService: Device updated: Bluetooth#Bluetoothc0:3c:59:db:06:d1-40:5e:f6:9d:fa:8d

@kwon0408
Copy link
Author

Tried updating to v5.1.0, but the symptom is just the same as before.

And then I dived into the current code and found a line in GalaxyBudsClient.Platform.WindowsRT.BluetoothService suspicious.

When a breakpoint is set on the line, it hits, but after the line is executed, my VS2022 gets out of the "paused" mode automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants