Useful error messages.


  • mod

    This is the thread of "useful" error messages.

    5 indeed.



  • SQL Error: ORA-02248: invalid option for ALTER SESSION
    02248. 00000 -  "invalid option for ALTER SESSION"
    *Cause:    Obvious.
    

    :laughing:



  • When did Oracle ever produce a useful error message?


  • Winner of the 2016 Presidential Election


  • Winner of the 2016 Presidential Election

    Do messages that actually tell you what's wrong but are useless in the sense that the developer that made them is useless and should have just wrote the code that would prevent it instead of writing the error message?

    Translation: Registration date is not equal to today's date.

    Oh, so you can check, but not fill it in?


  • mod

    Well a few minutes later I tried to save the same file again and got:

    So apparently it means something!


  • Winner of the 2016 Presidential Election

    Does it count the failures? Will Int32 be enough to contain it? Find out next time in this thread!



  • AppReceiveWorker: [NOTHING] in QUEUE Received response for a command which hasn't been sent.

    Uh...

    So nothing in the queue received a response for a command that wasn't sent? So... nothing happened? :confused:

    And yes, receiving this error caused the system to fail since the networking thread would post -1 and exit.





  • test.h:

    extern void func( struct WINDOW * w );
    

    test.c:

    #include <test.h>
    
    struct WINDOW;
    
    int main( void )
    {
        struct WINDOW * w;
        func(w);
    }
    

    gcc -isystem . -o test test.c:

    test.c: In function ‘main’:
    test.c:8:10: warning: passing argument 1 of ‘func’ from incompatible pointer type
         func(w);
              ^
    In file included from test.c:1:0:
    ./test.h:1:13: note: expected ‘struct WINDOW *’ but argument is of type ‘struct WINDOW *’
     extern void func( struct WINDOW * w );
                 ^
    

    The actual cause, hidden by -isystem. You'd get the same behaviour froom a system header:

    test.c:1:26: warning: ‘struct WINDOW’ declared inside parameter list
     extern void func( struct WINDOW * w );
    

    EDIT: add include directive to test.c



  • You can declare named types inside a function signature?

    :wtf:



  • Only struct types. And the struct WINDOW ends up being scoped to the function declaration only, so it's impossible call the function without triggering the warning. Declaring struct WINDOW before the function declaration would resolve the problem.

    I don't know where i picked up this bit of trivia, but I assume the standard allows it or gcc wouldn't be allowing it in system headers. I do agree in general with gcc's behaviour to suppress certain warnings in system headers, as it can otherwise become impossible to have a warning-free compile.



  • Oh, and I note I forgot to include the #include <test.h> in test.c. Which was there in my compile source, but I was writing the test files and the post at the same time...



  • Yes, I reproduced the error in MS Paint, but I swear I've seen software I've worked on deliver this at times.

    The problem is that this is an error. It just never tells you what that error was.
    Fortunately it gets logged.



  • @sloosecannon said:

    Well, there's that one with... well, no... maybe... no... nope, FILE_NOT_FOUND...

    Filed Under: <a> 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 "useful" at line 1

    I thought MySQL was the one that expected you to run the program perror with the error number.

    How you were supposed to know this without consulting the manual is beyond me.



  • @Onyx said:

    Does it count the failures? Will Int32 be enough to contain it? Find out next time in this thread! Same Hat Time, Same Hat Channel

    Holy Overflow Batman!



  • @PleegWat said:

    Only struct types. And the struct WINDOW ends up being scoped to the function declaration only, so it's impossible call the function without triggering the warning. Declaring struct WINDOW before the function declaration would resolve the problem.

    I don't know where i picked up this bit of trivia, but I assume the standard allows it or gcc wouldn't be allowing it in system headers. I do agree in general with gcc's behaviour to suppress certain warnings in system headers, as it can otherwise become impossible to have a warning-free compile.


    Actually, it's for struct, union, and enum types (i.e. the taggable ones). And the fact that the scope of the structunionenum(1) tag is limited to the () of the function prototype if that is the first occurrence of the tag dates back to C89, ffs. And yes, the call being an error is required by the standard. The C89 standard.

    I first encountered this issue back in 1996...

    (1) No, not developmestuction...



  • @Steve_The_Cynic said:

    And yes, the call being an errora diagnostic is required by the standard. The C89 standard.

    PDTFY

    Seriously -- GCC is well within its rights to issue a mere warning here instead of an error, as ISO 9899 doesn't distinguish between the two:

    ### 5.1.1.3 Diagnostics A conforming implementation shall produce at least one diagnostic message (identified in an implementation-defined manner) if a preprocessing translation unit or translation unit contains a violation of any syntax rule or constraint, even if the behavior is also explicitly specified as undefined or implementation-defined. Diagnostic messages need not be produced in other circumstances.


  • @Yamikuronue said:

    5 indeed.

    Windows error numbers. 5 is Access Denied and 8 is Not Enough Memory. If you're saving to a USB flash drive, maybe it's dieing.


  • mod

    ...not enough fucking memory?! WTF? I'm saving to a local project directory on my hard drive.



  • @tarunik said:

    <abbr title="Pedantic Dickweeded That For You">PDTFY</abbr>

    Seriously -- GCC is well within its rights to issue a mere warning here instead of an error.


    The call, not the function prototype, you know, where struct WINDOW declared inside the () of the prototype isn't the same as struct WINDOW declared separately afterwards...

    But OK, alright, you can dickweed me if you want.



  • Doesn't matter if it's the function prototype or the callsite -- the standard doesn't care as long as the diagnostic flies out the door.



  • @xaade said:

    The problem is that this is an error. It just never tells you what that error was.Fortunately it gets logged.

    Inappropriate checking of GetLastError(). Either the failing function does not call SetLastError(), or the moron writing the software didn't check the value immediately.



  • Doesn't have to be a windows API.

    There is a lot of code I've seen that logs a message and then returns OK.



  • 5 is likely "Access Denied" and 8 is likely "Out of Space". Lots of libraries bubble up Windows API error messages.

    Crap... I should have read the whole thread before posting, someone beat me to this.



  • We have another method you can use to indicate zat, okay?


    Filed under: In the night...



  • @Yamikuronue said:

    ...not enough fucking memory?! WTF?

    I've had Excel complain that "there's not enough memory to open the workbook" or something like that when I tried to use the "Open" instead of "Save" button in IE.

    On-topic, actually.





  • @powerlord said:

    I thought MySQL was the one that expected you to run the program perror with the error number.

    How you were supposed to know this without consulting the manual is beyond me.

    :wtf:

    $ perror 5
    The program 'perror' can be found in the following packages:
     * mysql-server-5.5
     * mariadb-server-5.5
     * mysql-server-5.6
     * percona-xtradb-cluster-server-5.5
    Try: sudo apt-get install <selected package>
    

  • Winner of the 2016 Presidential Election

    Maybe someone should tell MySQL devs that

    printf can be found in following libraries:
    * stdio.h
    * cstdio
    Try: using it and printing the damned error on the screen!
    

  • Discourse touched me in a no-no place

    @Onyx said:

    Maybe someone should tell MySQL devs that

    Or better still

    [root@thinkpad tmp]# apropos perror
    [...]
    perror               (3)  - print a system error message
    

    As in:

    [root@thinkpad tmp]# cat perror.c
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    
    int main(int c, char** v){
            errno = v[1]?atoi(v[1]):5;
            perror("A wild error appears...");
            return 0;
    }
    [root@thinkpad tmp]# make perror
    cc     perror.c   -o perror
    [root@thinkpad tmp]# ./perror
    A wild error appears...: Input/output error
    [root@thinkpad tmp]# ./perror 0
    A wild error appears...: Success
    [root@thinkpad tmp]# ./perror 1
    A wild error appears...: Operation not permitted
    [root@thinkpad tmp]# ./perror 128
    A wild error appears...: Key has been revoked
    [root@thinkpad tmp]# ./perror 1283
    A wild error appears...: Unknown error 1283
    [root@thinkpad tmp]#
    

  • mod

    I am updating my graphics drivers.

    This bodes well.

    I also failed to capture a screenshot of the eula I agreed to: "No eula found" was the text, and both buttons were blank.


    WTF? Discourse hates metro chrome, doesn't it?

    I feel like I knew that, but it's not fixed. What's the key combo for submit again... ctrl-enter?


  • Discourse touched me in a no-no place

    From a game I'm playing. [spoiler]And playing far too much of. Apart from this it's not actually bad.[/spoiler]

    Now, for the bad thing about it. This “dialog” tends to take over the screen in the middle of something time critical and is entirely impossible to interact with. (That thing that looks like it might be pressable in the bottom-right corner is a lie.) The only way to make any progress at all is to slaughter the process entirely and start it up again. A problem happens? “Fuck you, asshole! I'm going to keel over and make you fail what you're currently doing, because dealing with your input is totally not me.”

    At least it all seems to checkpoint really frequently.



  • And that is why you use ContainsKey()



  • Does the game have a name?


  • Discourse touched me in a no-no place

    Yes, but I didn't think it was very important to this thread.


  • Winner of the 2016 Presidential Election

    @RaceProUK said:

    ContainsKey()

    Or TryGetValue()



  • It is, however, very important to our interests.


  • Impossible Mission Players - A

    I just got hit with this in MS Office when trying to spellcheck:
    Object found.

    Apparently, that's a critical problem and halts any repair attempt. I think a Windows Update did it...


  • Winner of the 2016 Presidential Election

    I still prefer null [object Object]



  • How about this error?

    Is there some sort of in-joke I don't know about where "Uninclused" means something?


  • sockdevs

    @Jerome_Viveiros said:

    Uninclused

    the power of google is strong with me! i shall google the answer!

    ..... BELGIUM!



  • I did that before. All I see is a bug report that includes the word "uninclused". I was hoping there was something more to it.



  • The origin may be this:


  • Impossible Mission Players - A

    Huh. Most of that question is filled with little oddities like that. I guess only a true programmar can understand.


  • mod

    The Macromedia JRun CFusion Server service could not be started.

    A service specific error occurred: 2.

    More help is available by typing NET HELPMSG 3547.

    Press any key to continue . . .

    Er, okay...

    C:>net helpmsg 3547

    A service specific error occurred: ***.

    EXPLANATION

    A service-specific error occurred.

    ACTION

    Refer to the Help or documentation for that service to determine the problem.

    Thanks! That cleared that right up.



  • There may be something of use in the Windows Event Viewer?




  • Discourse touched me in a no-no place

    @RaceProUK said:

    There may be something of use in the Windows Event Viewer?

    It'll probably be quite happy to tell you that “A service-specific error occurred.” :smirk:


  • mod

    Turned out to be the exact problem the requested enhancement to our promotion script was designed to prevent: stopping and starting the service too fast can lead to a situation where it just gives up and fails to start again. I had to get a server guy to come in and unbork it.

    Good news is, after adding a second pause timer to the script, I was unable to replicate the problem again, so I'm pretty sure that fixed it... TR :wtf: is CF


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.