HandheldCompanion icon indicating copy to clipboard operation
HandheldCompanion copied to clipboard

HC takes a very long time to start on boot, log shows only one line aka stalled process

Open CasperH2O opened this issue 1 year ago • 4 comments
trafficstars

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

CasperH2O avatar Jan 05 '24 20:01 CasperH2O

This might be a Windows issue, a user reported having this problem and after updating to a Windows Preview release the problem was gone.

CasperH2O avatar Jan 10 '24 08:01 CasperH2O

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.

CasperH2O avatar Feb 13 '24 10:02 CasperH2O

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..

CasperH2O avatar Mar 15 '24 08:03 CasperH2O

This issue may have been related to the ADLX wrapper usage which has been fixed, to be observed.

CasperH2O avatar Apr 12 '24 08:04 CasperH2O

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.

CasperH2O avatar Jul 14 '24 14:07 CasperH2O