HandheldCompanion
HandheldCompanion copied to clipboard
HC takes a very long time to start on boot, log shows only one line aka stalled process
Device manufacturer
- [x] AYANEO
- [ ] AYN
- [ ] AOKZOE
- [ ] ASUS
- [ ] GPD
- [ ] ONEXPLAYER
- [ ] VALVE
- [ ] LENOVO
Device model Ayaneo 1S and Ayaneo KUN
Handheld Companinion Version 0.20.2.7
Describe the bug HC takes up to 5 minutes to start when doing so on boot, log is not always created and shows only the first line with version info.
Starting HC manually after a minutes after boot, HC starts fine.
User tried with 0.20.2.5 and does not have this problem, so it's recent.
Logs file HandheldCompanion-20240105-1S.log HandheldCompanion-20240105-KUN.log
This might be a Windows issue, a user reported having this problem and after updating to a Windows Preview release the problem was gone.
A user of HC who could reproduce this issue easily installed VS2022 and ran HC in debug mode. Debug mode log showed nothing out of the ordinary and HC started fine (in about 30-40 seconds).
After doing this, opening the regular installed HC went also fine again and it was no longer possible to reproduce the problem.
After having this issue myself and "fixing" it with a device reboot, @Valkirie suggested:
you have a stalled executable already running We could always add a MessageBox. Have a look at App.xaml.cs That's where we try to set to foreground the previous iteration and kill the current one. On a stalled executable then I guess it's a dead end as we can't put it foreground. Maybe SetForegroundWindow will return false on a stalled process and we can kill it instead..
This issue may have been related to the ADLX wrapper usage which has been fixed, to be observed.
Thanks to Sentry.io, it has been observed that this could be caused due to a stalled HidHide install.
Time outs and logging have been added, HC now continues. Closing ticket.