Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. bug solving poll

bug solving poll

Scheduled Pinned Locked Moved The Lounge
helpquestion
28 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Gary R Wheeler

    I had a bug once that took over a year to find and correct. I never gave up on the problem, but I would leave it and come back to it, sometimes weeks later. This is the only time I was desperate enough to use a link map to figure out in release-compiled code where a crash was taking place (this was a native app). There's always a critical piece of information to understanding the problem that you don't find out until the end. Once you find that bit, the problem's straightforward to fix. In my case, my app would randomly crash at a couple customers' locations, approximately once a week. We make commercial ink-jet printing systems, and my app is the user interface for the machine. It turns out these customers were shutting down their press hardware, but leaving the controller computer powered up, with the UI sitting on a particular screen. Overnight this was okay, but over a weekend the crash seemed to happen more often. The critical piece of information was that the customers were leaving the app sitting at that screen for long periods. I could simulate this at my desk. Eventually, running the simulation speed very fast, I could cause the crash in a few minutes. As it turns out, the app was leaking a GDI handle during a polling operation, and when the app finally reached the limit, it would crash.

    Software Zen: delete this;

    P Offline
    P Offline
    Per Soderlund
    wrote on last edited by
    #21

    Interesting. I hate when it feels like its right in front of me but I fail to see it. I´m currently looking for that little piece of information.

    1 Reply Last reply
    0
    • P Per Soderlund

      Have you guys ever found a bug or misbehaviour that you were unable to correct? I´ve had a bug haunting me for weeks that makes me wonder if there are unsolveable bugs out there. I lack experience since ive only been coding proffessionally for 5 years. If you had one,what was it and what made you give up?

      J Offline
      J Offline
      jeron1
      wrote on last edited by
      #22

      The closest I've come is when programming embedded stuff and there is actually an issue on the die of a microcontroller that prevents a subsystem (like a UART) from working correctly. There usually is a work-around, but not always, something which I painfully found out not too long ago, a UART that would work intermittently at a certain baud rate. But generally speaking I agree with the other posters, that there are no unsolvable issues. Sometimes the issues are not with your code, but perhaps in a library or such that you're linking to. Is it possible to make a smaller project that exhibits the problem?

      1 Reply Last reply
      0
      • P Per Soderlund

        Have you guys ever found a bug or misbehaviour that you were unable to correct? I´ve had a bug haunting me for weeks that makes me wonder if there are unsolveable bugs out there. I lack experience since ive only been coding proffessionally for 5 years. If you had one,what was it and what made you give up?

        H Offline
        H Offline
        H Brydon
        wrote on last edited by
        #23

        Söderlund wrote:

        Have you guys ever found a bug or misbehaviour that you were unable to correct?

        Yes - when it was an architectural problem which was at the center of the product design. A list of actions took place when triggered by an HI event. The actions could be processed in any order. The proper way to fix this one was to rearchitect and rewrite the app - all 3 million lines of it. Oh yeah it used the old SEH "__try" "__except" style of exception handling. It needed to be rewritten. Doing so would have required changing over 1000 lines of code in one whack.

        Windows 8 is the resurrected version of Microsoft Bob. The only thing missing is the Fisher-Price logo. - Harvey

        1 Reply Last reply
        0
        • P Per Soderlund

          Have you guys ever found a bug or misbehaviour that you were unable to correct? I´ve had a bug haunting me for weeks that makes me wonder if there are unsolveable bugs out there. I lack experience since ive only been coding proffessionally for 5 years. If you had one,what was it and what made you give up?

          K Offline
          K Offline
          kmoorevs
          wrote on last edited by
          #24

          I don't think there are unsolvable bugs, but I have had a few that caused me much grief. In each case, the bug was not in our application, but rather in an outside component such as a printer driver or third-party library. These can be difficult to track down, and even though the 'fault' is not in your code, the customer doesn't care. Happy hunting!

          "Go forth into the source" - Neal Morse

          1 Reply Last reply
          0
          • P Per Soderlund

            Have you guys ever found a bug or misbehaviour that you were unable to correct? I´ve had a bug haunting me for weeks that makes me wonder if there are unsolveable bugs out there. I lack experience since ive only been coding proffessionally for 5 years. If you had one,what was it and what made you give up?

            M Offline
            M Offline
            Member 4194593
            wrote on last edited by
            #25

            I was told many years ago when I first started working in the computer industry "Don't sweat it! It's just 1's and 0's, how hard can that be?" (mainframes, 1965). I never let a stupid machine that only understands 1's and 0's get the better of me. Dave.

            1 Reply Last reply
            0
            • P Per Soderlund

              Have you guys ever found a bug or misbehaviour that you were unable to correct? I´ve had a bug haunting me for weeks that makes me wonder if there are unsolveable bugs out there. I lack experience since ive only been coding proffessionally for 5 years. If you had one,what was it and what made you give up?

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #26

              Söderlund wrote:

              misbehaviour that you were unable to correct?

              Yes, a WinForms app that would crash once in a while; probably due to a cross-thread problem, but I never took the time to figure it out; I just told the user to get back in and I'd try to track it down later. I never tracked it down; there were always more important things that I could accomplish. There was also a memory leak in a C app that I didn't track down until a few years after I had left the job. So I made the fix in my copy, but couldn't get it to the client.

              Söderlund wrote:

              unsolveable bugs out there

              I can't prove that there aren't, therefore there must be. I'd like to know more (unless it's in VB).

              1 Reply Last reply
              0
              • G Gary R Wheeler

                I had a bug once that took over a year to find and correct. I never gave up on the problem, but I would leave it and come back to it, sometimes weeks later. This is the only time I was desperate enough to use a link map to figure out in release-compiled code where a crash was taking place (this was a native app). There's always a critical piece of information to understanding the problem that you don't find out until the end. Once you find that bit, the problem's straightforward to fix. In my case, my app would randomly crash at a couple customers' locations, approximately once a week. We make commercial ink-jet printing systems, and my app is the user interface for the machine. It turns out these customers were shutting down their press hardware, but leaving the controller computer powered up, with the UI sitting on a particular screen. Overnight this was okay, but over a weekend the crash seemed to happen more often. The critical piece of information was that the customers were leaving the app sitting at that screen for long periods. I could simulate this at my desk. Eventually, running the simulation speed very fast, I could cause the crash in a few minutes. As it turns out, the app was leaking a GDI handle during a polling operation, and when the app finally reached the limit, it would crash.

                Software Zen: delete this;

                P Offline
                P Offline
                Per Soderlund
                wrote on last edited by
                #27

                It´s easy to get that piece of information if you can reproduce or simulate the bug you are after. Which is the normal way to go, for me at least.

                G 1 Reply Last reply
                0
                • P Per Soderlund

                  It´s easy to get that piece of information if you can reproduce or simulate the bug you are after. Which is the normal way to go, for me at least.

                  G Offline
                  G Offline
                  Gary R Wheeler
                  wrote on last edited by
                  #28

                  In my case, I didn't know how to reproduce the bug without the little piece of information. Without reproducing the bug, I could only walk the code, hoping to find the problem. In this circumstance, the actual bug was in a controls library being used by the piece of UI in question, so it wasn't even in a piece of code I was reviewing.

                  Software Zen: delete this;

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups