Welcome, Guest. Please login or register.

Author Topic: Facepalm moments  (Read 3523 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline MarcbTopic starter

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 407
    • Show only replies by Marcb
Facepalm moments
« on: October 18, 2010, 12:49:03 PM »
I just had a facepalm moment when I finally tracked down a bug in a little program I'm writing...
I was fixated for a month on a piece of code I just knew must be causing the problem... I re-wrote it in dozens of creative ways and guru every time...
I re-read the Rkms, googled and still guru every time..

Decided tonight to get on with other bits and come back to it...
Reading further down the code I saw it:
Turns out I forgot to free an exec list memory block instead... 2 seconds later, bugs gone...

What are some of your face palm moments?
"...but some animals are more equal than others."
 

Offline djrikki

  • Sr. Member
  • ****
  • Join Date: Mar 2010
  • Posts: 346
    • Show only replies by djrikki
Re: Facepalm moments
« Reply #1 on: October 18, 2010, 01:25:47 PM »
Looking through source code wondering why the hell it isn't working only to find you missed one measly closed curly } bracket or other such delimiter like an 'end if' or an 'end tell'.
Such basic branching always ends up in a facepalm moment for me

Offline jj

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4054
  • Country: wales
  • Thanked: 2 times
  • Gender: Male
    • Show only replies by jj
Re: Facepalm moments
« Reply #2 on: October 18, 2010, 01:27:40 PM »
Do it loads of times in work.  Reading through code to see why it doesn't work only to realsie you have used a ( instead of a { or vice versa.  Really easy to miss in amongst loads of code.
“We don't stop playing because we grow old; we grow old because we stop playing.” - George Bernard Shaw

Xbox Live: S0ulA55a551n2
 
Registered MorphsOS 3.13 user on Powerbook G4 15"
 

Offline Tension

Re: Facepalm moments
« Reply #3 on: October 18, 2010, 02:43:48 PM »
See the story of the Hedley Davis Memorial Disk Drive.

Facepalming wasn`t about in those days..

Offline TheGoose

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 1458
  • Country: us
  • Gender: Male
    • Show only replies by TheGoose
    • http://www.amiga.org/forums/blog.php?u=827
Re: Facepalm moments
« Reply #4 on: October 18, 2010, 03:42:44 PM »
Here's a good one for you:

G1200, A3000D, A1200 PPC AOS4.0C

I\'m on Google +
 

Offline tone007

Re: Facepalm moments
« Reply #5 on: October 18, 2010, 03:54:28 PM »
Plugging in a Zorro card backwards and powering up the A2000.  Luckily the board was a crappy revision anyway.
3 Commodore file cabinets, 2 Commodore USB turntables, 1 AmigaWorld beer mug
Alienware M14x i7 laptop running AmigaForever
 

Offline Tripitaka

  • Hero Member
  • *****
  • Join Date: Jun 2005
  • Posts: 1307
    • Show only replies by Tripitaka
    • http://acidapple.com
Re: Facepalm moments
« Reply #6 on: October 18, 2010, 05:11:06 PM »
Pulling a PCI graphics card from a PC at work, then I realised...it was still powered up. Oops, amazingly it did no harm to the PC or card.
Falling into a dark and red rage.
 

Offline Heiroglyph

  • Hero Member
  • *****
  • Join Date: Jun 2010
  • Posts: 1100
    • Show only replies by Heiroglyph
Re: Facepalm moments
« Reply #7 on: October 18, 2010, 05:29:41 PM »
Reading the docs, being aware of the fact I could blow up a USB port and still managing to plug in  one of the USB cables on my brand new Deneb backwards.  Port blown.

That was just last Friday and my forehead still hurts. :(
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: Facepalm moments
« Reply #8 on: October 18, 2010, 05:34:25 PM »
I was writing a screen blanker for the Commodore 64.  It was meant to work like the simple one on the TI-99/4A: countdown timer (I actually used a CIA TOD alarm) then set a bit to blank the screen, then reset that bit once a key is pressed.  Simple!

Except it would not work.  I removed the TOD alarm and implemented a countdown using an unused zero-page word.  I rewrote the TOD alarm handler.  I checked and checked.  Hours staring at this simple code, not understanding why it would not work.  I even duplicated functionality in BASIC (with an ML helper for the TOD alarm) to verify that I was POKEing the right places.

The next day it hit me.  Square in the gonads.  I had a BNE when I should have used a BEQ.  STUPID STUPID STUPID!  I was using the WarpEngine's ML monitor to write my code, and I probably could have found it if I had stepped through the code line-by-line (which, now I think of it, I believe the WarpEngine can do.)

Ah, well.  Lesson learned.

Another really good one would be when I was attempting a hardware upgrade for a client running an Exchange 2003 server.  I had diligently moved the Exchange database files to the D: partition so I could nuke the Windows installation in case the hardware move did not go so well.  Everything worked perfectly except that I had missed moving the log files, and they got nuked.  It took this poor machine 30 hours to do an eseutil repair on 42GB of email for a multi-million dollar company, and made me sweat every minute of it.  That has been the only major failure this server has suffered in the past eight years -- by my own hand!
 

Offline Tension

Re: Facepalm moments
« Reply #9 on: October 18, 2010, 06:37:06 PM »
Quote from: LoadWB;585528
It took this poor machine 30 hours to do an eseutil repair on 42GB of email for a multi-million dollar company, and made me sweat every minute of it.


I believe I would have shat myself in that situation.

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: Facepalm moments
« Reply #10 on: October 18, 2010, 06:55:06 PM »
Quote from: JJ;585493
Do it loads of times in work.  Reading through code to see why it doesn't work only to realsie you have used a ( instead of a { or vice versa.  Really easy to miss in amongst loads of code.


I remember reading somewhere that this error is what actually caused the AT&T outage in 1990.

http://www.phworld.org/history/attcrash.htm

(This just talks about the technicals, not the actual cause of the error other than a coding error.)
 

Offline spirantho

Re: Facepalm moments
« Reply #11 on: October 18, 2010, 08:13:34 PM »
Not a facepalm from my own doing, but a worthy one.

My local Uni has an email forwarding service for students who go away for holidays etc. One particular student set up an email forward to his home account.
Unfortunately he forgot to remove the email forwarding he'd previously set up from his home account to his uni account.

You can guess what happened. It resulted in a very irate sysadmin and a ton of headaches as a wonderful company checking for spammers thought the entire uni was a spam account and blocked everyone on it. I believe he may still be trying to get it unlocked....
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my shop! http://www.mutant-caterpillar.co.uk/shop/ - for 8-bit (and soon 16-bit) goodness!
 

Offline kolla

Re: Facepalm moments
« Reply #12 on: October 18, 2010, 10:24:57 PM »
Realizing what i had done when the old powermac refused to boot up with a zip-drive stuck into the SCSI port... the funny smell... fuuuu.... luckily the machine survived, the zip-drive didn't. To my defence, it was 8 o'clock in the morning, and it seemed like an obvious thing to do for some weird reason. Had a similar experience with my old A3000 and DSS8+ ... both survived.
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
 

Offline marcfrick2112

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 811
    • Show only replies by marcfrick2112
Re: Facepalm moments
« Reply #13 on: October 18, 2010, 10:38:50 PM »
Ohhhh, Man ... My poor A4000T looking sad in my closet...:(

Anyway, I buy a nice A4000T from a guy for $1000. CS MK3, Toaster/Flyer/PAR/TBC3. But all was never well with the machine.... Anywho, I have to take it apart.... And guess what? I forgot to note the orientation of the ribbon cables to the ports module.... Poof! I got it fixed.... now, it's broken again.....:madashell:
---------------
Marc Frick
---------------
A1200T / \'060, 256MB, CD-R, OS3.9
A4000 w/ WarpEngine / 82MB , OS3.1
A4000 16MB, OS 3.9
A1200 , \'030 / 10MB
A1200 (stock)

CD32 :)

...And a very sick 4000T
 

Offline yssing

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 1521
    • Show only replies by yssing
    • http://www.yssing.org
Re: Facepalm moments
« Reply #14 on: October 18, 2010, 11:09:29 PM »
Working on a rather big php project, and I had an annoying problem when moving from wamp til lamp. That I finally solved, was really because I did not read my own source and the error message correctly.
I also realised that LAMP is more strict than WAMP, which is good though..