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. So I just found a Google "easter egg" you REALLY don't want to find...

So I just found a Google "easter egg" you REALLY don't want to find...

Scheduled Pinned Locked Moved The Lounge
javascriptcloudcsharplinqcom
23 Posts 12 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.
  • Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #1

    My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

    0 L M H V 8 Replies Last reply
    0
    • Sander RosselS Sander Rossel

      My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      0 Offline
      0 Offline
      0x01AA
      wrote on last edited by
      #2

      Maybe an async thing?

      Sander RosselS 1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        This "fixer upper" appears not to be part of the "public API" for EF. My first impression is to comment it out. Sounds like someone's (GitHub) "Hail Mary" for a situation that may not even exist. Like "garbage collecting" when it isn't necessary, effective or understood.

        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

        Sander RosselS 1 Reply Last reply
        0
        • Sander RosselS Sander Rossel

          My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I'm not a C# dev but the commit for that code[^] appears to imply that the switch "Microsoft.EntityFrameworkCore.Issue23659" can be used to avoid that code path. I'm heading out the door, be back in a few hours.

          Sander RosselS 1 Reply Last reply
          0
          • Sander RosselS Sander Rossel

            My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

            Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

            M Offline
            M Offline
            Marc Clifton
            wrote on last edited by
            #5

            Sander Rossel wrote:

            I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it.

            I tried putting in spaces for the phrase "null reference exception" and I get:

            Quote:

            Try using words that might appear on the page you’re looking for. For example, "cake recipes" instead of "how to make a cake."

            Well, I guess you should make a cake. :laugh:

            Latest Article:
            Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

            Sander RosselS 1 Reply Last reply
            0
            • M Marc Clifton

              Sander Rossel wrote:

              I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it.

              I tried putting in spaces for the phrase "null reference exception" and I get:

              Quote:

              Try using words that might appear on the page you’re looking for. For example, "cake recipes" instead of "how to make a cake."

              Well, I guess you should make a cake. :laugh:

              Latest Article:
              Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain

              Sander RosselS Offline
              Sander RosselS Offline
              Sander Rossel
              wrote on last edited by
              #6

              When life gives you NullPointerReference exception, make NullPointerReferencake :~

              Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

              1 Reply Last reply
              0
              • L Lost User

                I'm not a C# dev but the commit for that code[^] appears to imply that the switch "Microsoft.EntityFrameworkCore.Issue23659" can be used to avoid that code path. I'm heading out the door, be back in a few hours.

                Sander RosselS Offline
                Sander RosselS Offline
                Sander Rossel
                wrote on last edited by
                #7

                Already fixed it. Used the same C# property for two separate navigational properties. Which "sort of" works, apparently :~ The exception really doesn't make sense though, as do the symptoms X|

                Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                1 Reply Last reply
                0
                • L Lost User

                  This "fixer upper" appears not to be part of the "public API" for EF. My first impression is to comment it out. Sounds like someone's (GitHub) "Hail Mary" for a situation that may not even exist. Like "garbage collecting" when it isn't necessary, effective or understood.

                  "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                  Sander RosselS Offline
                  Sander RosselS Offline
                  Sander Rossel
                  wrote on last edited by
                  #8

                  The code only uses "official" code. No "someone's quick 'n' dirty fix from the internet" code. Fixed it though, apparently I was using a single property for two separate navigation properties, which sort of works :~ Weird behavior and weird error though X|

                  Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                  1 Reply Last reply
                  0
                  • 0 0x01AA

                    Maybe an async thing?

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #9

                    Nope. Apparently I was using a single property for two separate navigation properties, which "sort of" works :~ Weird behavior and weird error though X|

                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                    1 Reply Last reply
                    0
                    • Sander RosselS Sander Rossel

                      My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

                      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #10

                      Look for WeakReference in the code. There's also Lazy but I doubt that's causing it because it's thread safe, at least if you set it up to be - it's worth looking for those too. though. Another thing to look for is harder to search for, but the lazy init pattern used in older code. You'll find it hidden behind property accessors usually. Replace it.

                      To err is human. Fortune favors the monsters.

                      Sander RosselS 1 Reply Last reply
                      0
                      • Sander RosselS Sander Rossel

                        My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

                        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                        V Offline
                        V Offline
                        V 0
                        wrote on last edited by
                        #11

                        I did see this before. I even had the case where the debug build would work and the release build did not, for what I can only guess would be a similar reason. Don't remember how I solved it though.

                        V.

                        Sander RosselS 1 Reply Last reply
                        0
                        • H honey the codewitch

                          Look for WeakReference in the code. There's also Lazy but I doubt that's causing it because it's thread safe, at least if you set it up to be - it's worth looking for those too. though. Another thing to look for is harder to search for, but the lazy init pattern used in older code. You'll find it hidden behind property accessors usually. Replace it.

                          To err is human. Fortune favors the monsters.

                          Sander RosselS Offline
                          Sander RosselS Offline
                          Sander Rossel
                          wrote on last edited by
                          #12

                          It was none of that. The code doesn't use WeakReference (nor does any code I've ever seen). I used the same C# property for two separate navigational properties in EF. Which "sort of" works, apparently. The exception really doesn't make sense though, as do the symptoms X|

                          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                          G 1 Reply Last reply
                          0
                          • V V 0

                            I did see this before. I even had the case where the debug build would work and the release build did not, for what I can only guess would be a similar reason. Don't remember how I solved it though.

                            V.

                            Sander RosselS Offline
                            Sander RosselS Offline
                            Sander Rossel
                            wrote on last edited by
                            #13

                            I used the same C# property for two separate navigational properties, which "sort of" works, apparently. The exception doesn't make sense though, so it seems to be quite a specific error.

                            Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                            pkfoxP 1 Reply Last reply
                            0
                            • Sander RosselS Sander Rossel

                              I used the same C# property for two separate navigational properties, which "sort of" works, apparently. The exception doesn't make sense though, so it seems to be quite a specific error.

                              Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                              pkfoxP Offline
                              pkfoxP Offline
                              pkfox
                              wrote on last edited by
                              #14

                              What do you mean "sort of works" ?

                              Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP

                              Sander RosselS 1 Reply Last reply
                              0
                              • Sander RosselS Sander Rossel

                                My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

                                Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                R Offline
                                R Offline
                                Richard Deeming
                                wrote on last edited by
                                #15

                                Sander Rossel wrote:

                                Well, Google it for yourself... No results :((

                                Not true. With "verbatim" search on, there is one result... ... this thread! :laugh:


                                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                Sander RosselS M J 3 Replies Last reply
                                0
                                • R Richard Deeming

                                  Sander Rossel wrote:

                                  Well, Google it for yourself... No results :((

                                  Not true. With "verbatim" search on, there is one result... ... this thread! :laugh:


                                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                  Sander RosselS Offline
                                  Sander RosselS Offline
                                  Sander Rossel
                                  wrote on last edited by
                                  #16

                                  Wow, that's indexed rather quickly :omg: :laugh:

                                  Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                  1 Reply Last reply
                                  0
                                  • pkfoxP pkfox

                                    What do you mean "sort of works" ?

                                    Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP

                                    Sander RosselS Offline
                                    Sander RosselS Offline
                                    Sander Rossel
                                    wrote on last edited by
                                    #17

                                    It works when I first look at it using the debugger. It sometimes works for the first one or two results, but eventually breaks on the third or fourth. So it sort of works, sometimes. The error isn't consistent.

                                    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                    1 Reply Last reply
                                    0
                                    • R Richard Deeming

                                      Sander Rossel wrote:

                                      Well, Google it for yourself... No results :((

                                      Not true. With "verbatim" search on, there is one result... ... this thread! :laugh:


                                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                      M Offline
                                      M Offline
                                      maze3
                                      wrote on last edited by
                                      #18

                                      odd, there an article from 2 Jul 2011 on code project asking about nullreferenceexception "FixupSkipNavigations" ;P :^)

                                      1 Reply Last reply
                                      0
                                      • R Richard Deeming

                                        Sander Rossel wrote:

                                        Well, Google it for yourself... No results :((

                                        Not true. With "verbatim" search on, there is one result... ... this thread! :laugh:


                                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                        J Offline
                                        J Offline
                                        jsc42
                                        wrote on last edited by
                                        #19

                                        Richard Deeming wrote:

                                        Sander Rossel wrote:Well, Google it for yourself... No results :(( Not true. With "verbatim" search on, there is one result... ... this thread! :laugh:

                                        but that has a date of 2 JuneJuly 2011 Other search engines are available: Bing has four matches Editted: Fixed date

                                        1 Reply Last reply
                                        0
                                        • Sander RosselS Sander Rossel

                                          It was none of that. The code doesn't use WeakReference (nor does any code I've ever seen). I used the same C# property for two separate navigational properties in EF. Which "sort of" works, apparently. The exception really doesn't make sense though, as do the symptoms X|

                                          Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

                                          G Offline
                                          G Offline
                                          Gary Wheeler
                                          wrote on last edited by
                                          #20

                                          Sander Rossel wrote:

                                          I used the same C# property for two separate navigational properties in EF. Which "sort of" works, apparently. The exception really doesn't make sense though, as do the symptoms X|

                                          Sounds like someone is using ReferenceEquals instead of an actual value comparison.

                                          Software Zen: delete this;

                                          Sander RosselS 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