A topic in Error'd
-
@loopback0 said in A topic in Error'd:
@izzion Pendantry doesn't count as work. Mods and admins actually do it.
Depends on the pendantry. Sometimes it's work, sometimes it's fun.
-
@ben_lubar said in A topic in Error'd:
@Yamikuronue said in A topic in Error'd:
@remi said in A topic in Error'd:
I rather suspect that devs are just lazy and put error codes because they can't be bothered to do anything else.
Nah, coming up with a bunch of numbers takes work. Lazy devs just put "an error occurred".
In C# stuff using async, it's common to see "The following error occurred: One or more errors occurred." because it wraps your errors even though only one of them was thrown.
Yeah, I'm still not sure how to truly handle that, but haven't time to fix.
-
@Tsaukpaetra It depends on exactly how you're using
async
. If you're just using the keywords, then the normal try/catch will get the unwrapped exception. Start calling things likeResult
orGetAwaiter()
or whatever, and it suddenly ain't so simple.
-
@RaceProUK said in A topic in Error'd:
@Tsaukpaetra It depends on exactly how you're using
async
. If you're just using the keywords, then the normal try/catch will get the unwrapped exception. Start calling things likeResult
orGetAwaiter()
or whatever, and it suddenly ain't so simple.So doing
.Result
means it breaks things? No wonder. Not something that was clear in the example code IIRC.This is what I ended up doing because I didn't want to unwrap several levels of exception just to find out what happened:
try { HttpResponseMessage response = HTTPdl.GetAsync(url).Result; response.Content.ReadAsStreamAsync().Result.CopyTo(Filemem); MediaType = response.Content.Headers.ContentType.MediaType; } catch (Exception) { System.Diagnostics.Debug.WriteLine("Failed to download " + url); return; }
Just swallow it up and move on!
(This particular function happens to be a "play arbitrary sound byte from the internet" function, so not mission critical)
-
@Tsaukpaetra Seriously, convert that code to use
async
/await
: it'll save you loads of hassle ;)
-
@Gąska said in A topic in Error'd:
@dkf as long as it's copyable.
They can just take a picture of the screen with their phone camera. Problem solving, the modern way!
-
@RaceProUK said in A topic in Error'd:
BSOD errors are logged in the system logs?
Not always.
A colleague of mine had a system where the SSD was failing (we didn't know this for sure at the time). The first symptom of failure was that the disk would switch to read only mode, and then after an hour or so there'd be a BSOD (or maybe a hang; I forget which). Unfortunately, modern Windows can build up quite a large cache of unwritten files, all waiting for the disk to become writeable again, and the crash would wipe it all out. Of course. There would be nothing written to the logs about what had just happened, since the logs were on the (at that point read-only) SSD. Windows 10 doesn't really like its system disk switching to read-only mode under its feet; it really assumes that that's impossible. (Linux doesn't like it either, but at least tells you rapidly that the shit has hit the fan and that you might as well do a hard reboot right now.)
Once we'd managed to figure out that it really was the SSD that was going wonky (and not a memory fault, CPU cooling fault, or mobo fault) and gone through the “fun” of persuading Dell () that this was indeed the case, the replacement disk has made a huge difference. And it was all done while my colleague was working remotely from another continent, which made dealing with Dell () doubly entertaining.
Happily it wasn't my equipment that was bust. ;)
-
@dkf said in A topic in Error'd:
@Gąska said in A topic in Error'd:
@dkf as long as it's copyable.
They can just take a picture of the screen with their phone camera. Problem solving, the modern way!
Good luck googling error message with screenshot.
-
@Gąska Well you can type the error into Google but most of the time Googling the error from a BSOD just gives things that may or may not help.
-
@RaceProUK said in A topic in Error'd:
@Tsaukpaetra Seriously, convert that code to use
async
/await
: it'll save you loads of hassle ;)Yeah, but then I'd have to async all the way back up, and this is in a method seven layers deep already...
-
@Tsaukpaetra If you really can't use
async
/await
, replace.Result
with.GetAwaiter().GetResult()
, which behaves better, and doesn't run the risk of deadlocking
-
@RaceProUK said in A topic in Error'd:
@Tsaukpaetra If you really can't use
async
/await
, replace.Result
with.GetAwaiter().GetResult()
, which behaves better, and doesn't run the risk of deadlockingBookmarked for future attempt. ;) Thanks.
-
@Yamikuronue said in A topic in Error'd:
Lazy devs just put "an error occurred".
And yes, I know MS are actually pretty good about giving you something you can use.
-
@Scarlet_Manuka "Your computer restarted because of a problem. Press a key or wait a few seconds to continue starting up."
With zero useful information on the error screen. I would hope something at least gets put in the system log, but was a few years since I had it so I can't remember.
-
@Scarlet_Manuka It's particularly annoying when it also says “the system administrator has been notified” when you're the sysadmin and haven't had notification of anything further than jack shit and you know that it's logged nothing useful at all.
-
@dkf That's been a problem ever since the very first "contact your system administrator" error message.
-
@dkf said in A topic in Error'd:
@Scarlet_Manuka It's particularly annoying when it also says “the system administrator has been notified” when you're the sysadmin and haven't had notification of anything further than jack shit and you know that it's logged nothing useful at all.
Well...you were notified so why bother with another channel when it just told you?
-
Oh god... you guys jinxed me. I walk in today, open my email inbox, and right on top: an email from a user who was told to contact their administrator.
I have no fucking clue what happened, don't ask me!
-
@Yamikuronue said in A topic in Error'd:
I have no fucking clue what happened, don't ask me!
I blame the default error page for Ruby-on-Rails.
-
@Yamikuronue said in A topic in Error'd:
an email from a user who was told to contact their administrator
The program should select the person to contact randomly from set: administrator, lawyer, gardener, hitman.
-
@Adynathos said in A topic in Error'd:
The program should select the person to contact randomly from set: administrator, lawyer, gardener, hitman, therapist, drug dealer.
Pull request.
-
@dkf said in A topic in Error'd:
I blame the default error page for Ruby-on-Rails.
It's been around a lot longer than RoR has...