Code52 / carnac

A utility to give some insight into how you use your keyboard
http://carnackeys.com/
Microsoft Public License
4.2k stars 506 forks source link

Silent crashes #214

Open mgroves opened 5 years ago

mgroves commented 5 years ago

I've been using Carnac a bit for streaming on Twitch. However, it seems to crash (silently) at random. I don't see any error messages or anything when it happens. What can I do to help you diagnose this?

There are some files in \AppData\Local\CrashDumps

computamike commented 2 years ago

I managed to load a recent crach into VS 2019. image

I then clicked on debug managed only - and got this error. image

System.Threading.AbandonedMutexException HResult=0x8013152D Message=Leaked a Mutex! Source= StackTrace:

this seems to have been reported is issue #169 - but I ran a 5 minute timer, so I'm wondering if the auto check updates from GitHub is causing this - and the 5 minutes seems conicidental? Interestingly the code looks like this : ![image](https://user-images.githubusercontent.com/464876/143443135-9300f60c-aad9-44b9-b525-40aee72c5dc6.png) I guess in the event of an error (like maybe my PC has a strange antivirus - like ESET - which just gets in the way) then I think the intention is to ignore the error? I guess that catch without an exception type does that (I've never tested that). I'll test with the Auto Updte from GH turned off - see if that improves stability.
computamike commented 2 years ago

So I have been running Carnac for hours and it hasn't spontaneously crashed. Can I suggest deactivating the GH auto update off, restarting Carnac and seeing if that is any better?

mouse33333 commented 2 years ago

So I have been running Carnac for hours and it hasn't spontaneously crashed. Can I suggest deactivating the GH auto update off, restarting Carnac and seeing if that is any better?

Thanks a lot, I've turned off the auto update, it also works in my computer.