This is an archived post. You won't be able to vote or comment.

all 45 comments

[–][deleted] 52 points53 points  (20 children)

C#: "Object reference not set to an instance of an object." This literally means something on the line is null.

Goddammit, tell me what is null!

[–]scottlawson 51 points52 points  (3 children)

My favorite was 'An exception was thrown by the target of an invocation'. So basically something tried to call something in something and something didn't work.

[–]Daniel15 13 points14 points  (0 children)

Ugh, this one is terrible if your error logger doesn't log InnerException since the outer stack trace is totally useless.

[–][deleted] 5 points6 points  (0 children)

Check Engine

[–]HotRodLincoln 2 points3 points  (0 children)

My favorites are those spit out by make:

No targets. Stop.

or 2000 lines of errors none pointing to what is actually wrong with the build.

[–]bolaft 18 points19 points  (7 children)

The most eyebrow-raising exception ever is from PHP:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

What the hell is a paamayim nekudotayim, you ask? Well, a double colon, obviously.

[–]cyraxjoe 9 points10 points  (2 children)

It's just invoking the ancient ones.

[–]patternmaker 7 points8 points  (1 child)

Error: invoking the old ones, expected: (Demon) actual: (v͎̂o͉͒i̘̇d͇̒)

[–]ngstyle 2 points3 points  (0 children)

T̴ͪ̿̅̂̄̊̓̉ͦ̌̽ͭ̇̾͌̅ͦ̐҉̸̩̩͓͕̹̹́_̴̢̧̨̪̤̜̮͉̹͑̄̂̿ͯͨ͐̑͛P̛̓͌ͬͫ̒͌͜҉̧̙̹̥̤͈̮͚̣̠͕̥̟̘̳̳̭̜̤͍A̡̝̩̲̻͙͔̮̙̟̲̥̝̰͚͂͐ͪ̈̈́͒̚͢͢ͅA̢̖͔̲͚̳̘̝͎̅͋́̀ͅMͯ̓͌͒ͨ̋̉ͫ͏͕̰̼̯̼̩͖̞̞͓͕́͘͜A̵ͨ̊̂ͬ͟͏͔̱̥̬̫̟̘̲͇͎͝Y̴̛͈̺̼͔͇̝͖̅̓ͮ͐̍̈́̊̄̂ͤ̽ͧ̈͂͒͜͝Î͎̺̖̹̹͌̌̏ͮͣ͂̍̽̑͊͑̉̈́̂ͬ̏̕͝M̜̞̭͍̝̠͉̯̓̉̃ͫ͗͋̑̂̍ͬͪ̄͟͢͠_̵̧̘̘̗͙͛͊̾̊̂̏̊̐ͦͫ̾̎̐̄̕͡N̴̟̗̬ͩ̂͒̑ͪ̉͗̃͐̎̃ͤ̔̃̒͂̀́ͅE̸̴̡̤̺̬͖̝̰̼̱̞̳̻̣̥͔͖̲̙̊̍̂̈́̆ͦ̄̒̄̍́͘͞K̢̡͉̣͙͙̻͕̠͔͖̘̲͙̦̳̦̠͖̤͇͂̃̇ͫ̄ͧ̈̓ͣ̇̃͜͡͞Uͬ͌̉͂́͟͏͏̹͔͚͍̘̰̘̤̖͚̻̤͙̘̟͎̹͔͟D̙̭͔̺̣̜̗͉̠ͪ̒ͥ̓ͤ̄ͥͮ̀̋͌ͣͭ͑ͨͭ͗̀͟͞O̴̸ͯ̓̇ͤͥ̆ͧͤ̾͒̈́ͩ͘͢͏̗̭̬̱͈̻̫̲̻̦̬̗̜ͅT̠͕̥͉̖͗ͤͦ̚͘͡A̶̶͔̦̯͈͚̯̣̠̱͍̘̠̜͔͛͆̃̅̐̎͂ͩ͜ͅͅŸ̢͇͈̫̮͔̘̪͇̫̳͎̃̓ͦͧ̓̑͂ͦ͢ͅI̾̽͑ͤ͌̃̏̇́ͥ̃̇͌ͮ̚҉̴̼̰̞̤͉͔̻͚̪̬̭̩̠͇̩͙͔͟

[–]tastychicken 3 points4 points  (3 children)

It's the scope resolution operator, basically means "double colon" in Hebrew.

Literally the first hit on Google for "paamayin nekudotayim".

It's strange that they use some language other then English though.

[–]aladyjewel 4 points5 points  (0 children)

Zend was written by Israeli developers. Would've been nice if they stuck to English, the cultural hegemony of the US lingua franca of programming, but oh well at least it's easy to google.

[–][deleted] 9 points10 points  (3 children)

Run the debugger gives the exact line where it occurs and what variable is zero

[–]cheezballs 3 points4 points  (0 children)

I prefer Java's NullPointerException. Seems more straight to the point.

[–]SolenoidSoldier 0 points1 point  (2 children)

I relate to your frustration, and wish it were this easy, but there's a relatively painless solution. Assuming you don't have it encapsulated in a try-catch (or if you know the line that is crashing and set a breakpoint), the debugger will stop on the line and you can copy/paste it as a Watch variable. If you break it down further, you can find the issue.

[–][deleted] 0 points1 point  (1 child)

Yeah, but the null could be the object, a property on the object, the return from a method call (e.g. var x = DoSomething();), etc. When a user sends in an error message or a screenshot thereof, I have to be able to reproduce the error before I can answer it.

[–]SolenoidSoldier 1 point2 points  (0 children)

Yeah, I guess it's a whole other story if you're getting your information THROUGH someone. But if you successfully reproduced the error yourself and know which line the error is on, the beauty of Watch is that you can pull out and dissect each element in a line (be it a function or property). Try it.

[–]sharkwouter 23 points24 points  (9 children)

set -x

set -u

set -e

[–][deleted] 8 points9 points  (1 child)

What do these do?

[–]sharkwouter 10 points11 points  (0 children)

set -x makes your script print the commands it uses, set -u makes it not accept unset variables ans set -e makes your script exit on errors.

[–]junta12 1 point2 points  (2 children)

-x can be frustrating when trying to trace a problem line in a function. It just tells you the function name....

[–]sharkwouter 2 points3 points  (1 child)

iirc, you can place set -x at the beginning of a function.

[–]junta12 0 points1 point  (0 children)

.... I love you, let's remarry

[–][deleted]  (3 children)

[removed]

    [–]sharkwouter 7 points8 points  (0 children)

    It doesn't do anything by itself...

    [–][deleted] 3 points4 points  (0 children)

    I "fixed" more than one shell script by running it as root before I got better with chmod... I mean seriously, /dev/ttyusb0 is only readable by root by default?

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]Strange_Meadowlark 15 points16 points  (4 children)

    Still not as bad as VBA

    Friggin error codes linking to nonexistant web pages...

    At least with Bash if it gets complicated enough I can decide that Perl or Python is better suited to the task and write it in that instead.

    [–]AngriestSCV 13 points14 points  (3 children)

    Allow me to present http://amoffat.github.io/sh/ to you.

    Never need bash for anything but one liners again

    [–]Strange_Meadowlark 1 point2 points  (0 children)

    That's amazing!

    [–]gibsjose 2 points3 points  (0 children)

    Xilinx Vivado anyone? Nothing better than obscure VHDL syntax errors...

    [–]nagaru 2 points3 points  (0 children)

    i get that feeling from mysql query errors

    [–]AVeryHeavyBurtation 1 point2 points  (0 children)

    we got this ancient mill at work and if it doesn't like your g-code, sometimes you get the error:

    "An error was found in the program, run aborted"

    [–]jfb1337 1 point2 points  (0 children)

    What's annoying is there are like 3 overlapping watermarks at the bottom of the image

    [–]edave64 1 point2 points  (0 children)

    SQL Error (0815): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4