-
-
Notifications
You must be signed in to change notification settings - Fork 238
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
New User Crash (Have Fix Solution) #410
Comments
I checked some recent issues and I noticed %LOCALAPPDATA%\IridiumIO\CompactGUI had been created. |
Solution:
It can fix error settings.json file. |
I also can confirm this issue. Never used this app before, both the standalone and integrated versions crashed shortly after opening. Good call on OP for quickly realizing an empty JSON file wouldn't be valid. The fix provided works, though the app complains the settings file is corrupt and that it'll be restoring the defaults. Not entirely unexpected, but odd that there's a corruption check that doesn't catch the parsers' exception? Though, as a JS developer, I still think it's odd that an empty array is considered a valid JSON object. I mean, of course technically in JS an Array is just an Object anyway..? Oddly enough, if your Out of curiosity, I also tried an array containing an empty object ( I can only think that when empty (``), the parser throws an exception that's not handled and I'm only speculating and again not particularly familiar with .net specifically and only to satisfy my own innate curiosity. ;-) That said, perhaps the corruption check should also verify that the whatever minimum required properties exist in the returned object before accessing any of them. But of course, the initial/core issue is that the file itself wasn't created properly upon first startup, the crash is a side-effect of that issue, though if the error handling around this was slightly more complete than at worst the core issue should've caused the corruption pop-up and not the crash; I struggled to word this properly as I didn't want to say "handled better" as clearly the developer had at least some forethought in error handling here, hence the pop-up recognizing the 'corruption' and re-creating the file with defaults anyway which I don't want to take away from as I see a ton of laziness or just not caring when it comes to error handling scenarios these days so I always want to recognize effort in that direction - no one can consider every possibility in advance and it's not fair to have that expectation when you have the hindsight of knowing an issue that wasn't considered! Anyhow; technically there's two, possibly (likely?) three issues here:
Anyhow, thanks @yige-yigeren for providing a workaround in the meantime. I've not used this software before but figured I'd give it a chance since I can't be bothered to deal with the CLI for this (or mostly anything on Windows, damn I hate PowerShell and even traditional |
@ForbiddenEra funnily enough there is a check in the program to rebuild the file if it is empty -.- It's been there for ages but my new attempts to fix the corrupted files have made things worse. It's really dumb, but the issue was simply that the program attempts to create the settings file twice in separate threads, resulting in a crash. I moved the creation check to the application startup (rather than waiting for the window itself to show), but forgot to actually remove it from the window code. This is now (hopefully for the last time) fixed in v3.2.1 |
I found that version has the function of automatically repairing the configuration. To be honest, if I write all config into the command line and want to complete the repair, I must write a .bat file. So I just fixed the json format error. |
I used to know this error, and the exception because of empty json was often very. . . abstract. So when I see a 0kb json file, I used to go to see what’s going on : ( |
Thanks for the fix, I didn't read the source code in detail so I can only give the cause of the error and a temporary solution. @.@ |
I've been coding since the mid '90s, threads will always get ya ;) I do a lot of server side JS these days though, almost no one uses threads. I do; but for most, 'threads' is just adding more 'replicas' to your kubernetes deployment manifest (if you're not familiar, it's basically spinning up extra completely separate containers [light weight VMs] running your process completely separately) which is insane, but hey, I also see stuff with 900+ libraries added with 80-90% of them doing things you could do yourself in a few lines of code but instead of learning you copy/paste from the internet. Anyhow, g'job on the quick fix. Cheers. |
Crash immediately after opening about 3-5s and exit instead of being unresponsive.
Use 3.2.0 with .net 6, I had try 3.1.1 and it also crash. I reinstall .net6 from microsoft but not any use.
All security software has been disabled and administrator rights have also been tried.
This is the event record of Windows: (xml)
Version Windows 11 Pro
Version 23H2
Installation date 2022/11/10
Operating system version 22631.3155
Experience the Windows Feature Experience Pack 1000.22684.1000.0
If you need more detailed information please tell me.
The text was updated successfully, but these errors were encountered: