Holdi601 / JoystickProfiler

Joystick Profiler Utility
HomePage
123 stars 13 forks source link

crash on launch #37

Closed subjec2change closed 2 years ago

subjec2change commented 2 years ago

why I feel like a ghost in the machine is in play here...is there a way to find more detailed logs as to why i cant start the program?

Holdi601 commented 2 years ago

Usually in the zip file created. Or in the Windows Event viewer. But most of the time its missing requirements from the SlimDX.dll library. I can suggest installing the slimdx runtime as that should install all requirements:

X64 Runtime: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/slimdx/SlimDX%20Runtime%20.NET%204.0%20x64%20(January%202012).msi

If that doesn’t help maybe the SDK: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/slimdx/SlimDX%20SDK%20(January%202012).msi

And in general slimdx ressources can be found here in case the links are dead for you https://code.google.com/archive/p/slimdx/downloads but please when possible try to choose the x64 option as that is what JoyPro uses

Cheers

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Sunday, 16 January 2022 02:20 To: @.> Cc: @.***> Subject: [Holdi601/JoystickProfiler] crash on launch (Issue #37)

[why]https://user-images.githubusercontent.com/97814728/149643650-27967285-0bf5-4d16-9793-30e2a9348a51.png I feel like a ghost in the machine is in play here...is there a way to find more detailed logs as to why i cant start the program?

— Reply to this email directly, view it on GitHubhttps://github.com/Holdi601/JoystickProfiler/issues/37, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEKZPQU4ZKMSQA3WGGOCGKTUWIMOXANCNFSM5MBU35EA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.***>

subjec2change commented 2 years ago

Damn. Event Viewer has nothing in it as if the program was never clicked on and there is no zip file generated like the other people have :< I installed anything from that SDK page that had x64 in the name but no dice. I can make a video showing what happens. I'm also looking for a program that can let me logcat the exe part for part to see what's wrong or where the break is. I'm getting upset messing with this thing this morning so ill come back to it after I walk away from the problem for a little. If you have any other things you want to me to send you or ideas you may have or if the bug report actually makes it to you let me know :)

Holdi601 commented 2 years ago

crash on startup is generally a sign of missing requirements. However with having a windows 10/11 install you should already have a decently new .Net framework install and cpp redist. And the only other thing needing requirements is the slimdx library. And if the sdk didnt fix it please also try the runtime with x64 and try a fresh restart that has so far fixed it for people that had the issue

subjec2change commented 2 years ago

Well installing all that was on the slimdx page and we reinstalled and repaired all cpp redist as seen in the first pictures. Nothing. I went as far as to just start trying different releases and the V31 at least opens! so its probably a odd one off or the program? strangely it runs on windows 11!(nothing works on that OS lol) ill keep narrowing it down and creating dump files but its been over 36 hours of troubleshooting. Id even give 200$ to the person who fixes this if there were bug bounties :) its not dotnet

image

I wish there was a log written somewhere but event viewer doesn't show anything and the nbug just has the same thing over and over :< I even tried disabling the network so it would save it as a zip file hopefully but that didn't work either. Always open to more ideas to get this to open though!

subjec2change commented 2 years ago

UPDATE image think its something as simple as a path you cant choose upon launch. Gonna test and see. image

subjec2change commented 2 years ago

ANNNNNDDDDD YAY! it is that! WOW I feel dumb now..so there are 2 things I have found

  1. Joypro looks for and refuses to ask where DCS is installed. It assumes that its in "C:\Program Files\Eagle Dynamics"
  2. It assumes that you are not running DCS Open Beta and on the stable channel. example in my case: "N:\Eagle Dynamics\DCS World OpenBeta" image

Maybe it should ask where the game is installed when you are opening the software for the first time. However im not a programmer im a Analyst by day. Larp as a pilot by night 💯

Needless to say a workaround for now is to create a path it wants which is "C:\Program Files\Eagle Dynamics\DCS World\Mods\aircraft"

Hope this helps! ❤️

Holdi601 commented 2 years ago

Hey thanks for you analysis, but yeah maybe it should check if the path exist, however it asks your registry on the system where it is installed. You might have a dead DCS entry in your registry causing this. I mean i expected most people not having it on C hence why i look up the registry entry for it.

But you re absolutetely right it shouldnt crash there, if im home i can bring a fix for that

Holdi601 commented 2 years ago

Check the registry keys mentioned in InitGames.cs#L119 if they dont exist fine, but if one of them exist and point to your C location than this caused the problem

subjec2change commented 2 years ago

Check the registry keys mentioned in InitGames.cs#L119 if they dont exist fine, but if one of them exist and point to your C location than this caused the problem

I bet you're right ill check that MMMM I have been playing since Lock On I could believe that I had DCS on the Windows drive in the past(plus I have a DIRTY registry)

Sorry to whoever was looking for a easy 200$ 💳

Holdi601 commented 2 years ago

will be fixed in v69