Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13258

Crash on geowithin query

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc2
    • Affects Version/s: 2.6.0-rc1
    • Component/s: Geo
    • Labels:
      None
    • ALL
    • Hide
      feedbacks.find({ loc: { '$geoWithin': { '$geometry': { coordinates: [ [ [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ] ] ], type: 'Polygon' } } }, display: true }) { fields: { ts: 1, photo: 1, heading: 1, comments: 1, words: 1, rating: 1, loc: 1 }, safe: undefined, sort: [ [ 'ts', -1 ] ], limit: 100, skip: 0 }
      Show
      feedbacks.find({ loc: { '$geoWithin': { '$geometry': { coordinates: [ [ [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ], [ 50.243472, -3.8665 ] ] ], type: 'Polygon' } } }, display: true }) { fields: { ts: 1, photo: 1, heading: 1, comments: 1, words: 1, rating: 1, loc: 1 }, safe: undefined, sort: [ [ 'ts', -1 ] ], limit: 100, skip: 0 }

      I'm using Mongo from Node.js using the Mongoose driver. Latest version of Mongo (RC1). When running a certain GeoWithin query the server crashes.
      Error produced in the log is:

      [conn14] SEVERE: src/third_party/s2/s2loop.h:116:  Check failed: (i) < ((2 * num_vertices_))
      

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            3equals Mike W1
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: