Hex Artifact Content
Not logged in

Artifact fcc9af040f70571f2806f585794dc5e385091f76:

Ticket change [fcc9af040f] - New ticket [bbab46cf4d] Strange Interaction Between Spatialite and Shapely. by anonymous 2020-05-04 23:55:47.
0000: 44 20 32 30 32 30 2d 30 35 2d 30 34 54 32 33 3a  D 2020-05-04T23:
0010: 35 35 3a 34 37 2e 36 33 35 0a 4a 20 66 6f 75 6e  55:47.635.J foun
0020: 64 69 6e 20 34 2e 33 2e 30 61 2d 31 32 2e 66 63  din 4.3.0a-12.fc
0030: 33 31 0a 4a 20 69 63 6f 6d 6d 65 6e 74 20 23 23  31.J icomment ##
0040: 5c 73 45 78 70 65 63 74 65 64 5c 73 62 65 68 61  \sExpected\sbeha
0050: 76 69 6f 72 5c 73 61 6e 64 5c 73 61 63 74 75 61  vior\sand\sactua
0060: 6c 5c 73 62 65 68 61 76 69 6f 72 2e 5c 72 5c 6e  l\sbehavior.\r\n
0070: 5c 72 5c 6e 54 68 65 72 65 5c 73 69 73 5c 73 61  \r\nThere\sis\sa
0080: 5c 73 73 74 72 61 6e 67 65 5c 73 69 6e 74 65 72  \sstrange\sinter
0090: 61 63 74 69 6f 6e 5c 73 62 65 74 77 65 65 6e 5c  action\sbetween\
00a0: 73 6c 6f 61 64 69 6e 67 5c 73 73 70 61 74 69 61  sloading\sspatia
00b0: 6c 69 74 65 5c 73 34 2e 33 2e 30 5c 73 61 6e 64  lite\s4.3.0\sand
00c0: 5c 73 73 68 61 70 65 6c 79 5c 73 31 2e 37 2e 30  \sshapely\s1.7.0
00d0: 2e 5c 73 49 5c 73 61 6d 5c 73 6e 6f 74 5c 73 73  .\sI\sam\snot\ss
00e0: 75 72 65 5c 73 77 68 65 72 65 5c 73 65 78 61 63  ure\swhere\sexac
00f0: 74 6c 79 5c 73 74 68 65 5c 73 65 72 72 6f 72 5c  tly\sthe\serror\
0100: 73 69 73 5c 73 68 61 70 70 65 6e 69 6e 67 5c 73  sis\shappening\s
0110: 73 6f 5c 73 49 5c 73 61 6d 5c 73 72 65 70 6f 72  so\sI\sam\srepor
0120: 74 69 6e 67 5c 73 74 68 65 5c 73 69 73 73 75 65  ting\sthe\sissue
0130: 5c 73 69 6e 5c 73 62 6f 74 68 5c 73 72 65 70 6f  \sin\sboth\srepo
0140: 73 69 74 6f 72 69 65 73 2e 5c 72 5c 6e 5c 72 5c  sitories.\r\n\r\
0150: 6e 54 68 65 5c 73 65 78 70 65 63 74 65 64 5c 73  nThe\sexpected\s
0160: 62 65 68 61 76 69 6f 72 5c 73 69 73 5c 73 74 68  behavior\sis\sth
0170: 61 74 5c 73 6f 6e 65 5c 73 73 68 6f 75 6c 64 5c  at\sone\sshould\
0180: 73 62 65 5c 73 61 62 6c 65 5c 73 74 6f 5c 73 69  sbe\sable\sto\si
0190: 6d 70 6f 72 74 5c 73 73 68 61 70 65 6c 79 5c 73  mport\sshapely\s
01a0: 61 66 74 65 72 5c 73 6c 6f 61 64 69 6e 67 5c 73  after\sloading\s
01b0: 73 70 61 74 69 61 6c 69 74 65 5c 73 77 69 74 68  spatialite\swith
01c0: 6f 75 74 5c 73 61 5c 73 73 65 67 6d 65 6e 74 61  out\sa\ssegmenta
01d0: 74 69 6f 6e 5c 73 66 61 75 6c 74 68 2e 5c 72 5c  tion\sfaulth.\r\
01e0: 6e 5c 72 5c 6e 54 68 65 5c 73 61 63 74 75 61 6c  n\r\nThe\sactual
01f0: 5c 73 62 65 68 61 76 69 6f 72 5c 73 69 73 5c 73  \sbehavior\sis\s
0200: 74 68 61 74 5c 73 6c 61 6f 64 69 6e 67 5c 73 73  that\slaoding\ss
0210: 68 61 70 65 6c 79 5c 73 61 66 74 65 72 5c 73 6c  hapely\safter\sl
0220: 6f 61 64 69 6e 67 5c 73 73 70 61 74 69 61 6c 69  oading\sspatiali
0230: 74 65 5c 73 70 72 6f 64 75 63 65 73 5c 73 61 5c  te\sproduces\sa\
0240: 73 73 65 67 6d 65 6e 74 61 74 69 6f 6e 5c 73 66  ssegmentation\sf
0250: 61 75 6c 74 2e 5c 72 5c 6e 5c 72 5c 6e 23 23 5c  ault.\r\n\r\n##\
0260: 73 53 74 65 70 73 5c 73 74 6f 5c 73 72 65 70 72  sSteps\sto\srepr
0270: 6f 64 75 63 65 5c 73 74 68 65 5c 73 70 72 6f 62  oduce\sthe\sprob
0280: 6c 65 6d 2e 5c 72 5c 6e 5c 72 5c 6e 5c 72 5c 6e  lem.\r\n\r\n\r\n
0290: 5c 72 5c 6e 60 60 60 5c 72 5c 6e 66 72 6f 6d 5c  \r\n```\r\nfrom\
02a0: 73 73 71 6c 61 6c 63 68 65 6d 79 5c 73 69 6d 70  ssqlalchemy\simp
02b0: 6f 72 74 5c 73 63 72 65 61 74 65 5f 65 6e 67 69  ort\screate_engi
02c0: 6e 65 5c 72 5c 6e 66 72 6f 6d 5c 73 73 71 6c 61  ne\r\nfrom\ssqla
02d0: 6c 63 68 65 6d 79 2e 65 76 65 6e 74 5c 73 69 6d  lchemy.event\sim
02e0: 70 6f 72 74 5c 73 6c 69 73 74 65 6e 5c 72 5c 6e  port\slisten\r\n
02f0: 5c 72 5c 6e 5c 72 5c 6e 64 65 66 5c 73 6c 6f 61  \r\n\r\ndef\sloa
0300: 64 5f 73 70 61 74 69 61 6c 69 74 65 28 61 70 69  d_spatialite(api
0310: 5f 63 6f 6e 6e 65 63 74 69 6f 6e 2c 5c 73 63 6f  _connection,\sco
0320: 6e 6e 65 63 74 69 6f 6e 5f 72 65 63 6f 72 64 29  nnection_record)
0330: 3a 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73 61 70 69  :\r\n\s\s\s\sapi
0340: 5f 63 6f 6e 6e 65 63 74 69 6f 6e 2e 65 6e 61 62  _connection.enab
0350: 6c 65 5f 6c 6f 61 64 5f 65 78 74 65 6e 73 69 6f  le_load_extensio
0360: 6e 28 54 72 75 65 29 5c 72 5c 6e 5c 73 5c 73 5c  n(True)\r\n\s\s\
0370: 73 5c 73 61 70 69 5f 63 6f 6e 6e 65 63 74 69 6f  s\sapi_connectio
0380: 6e 2e 6c 6f 61 64 5f 65 78 74 65 6e 73 69 6f 6e  n.load_extension
0390: 28 27 6d 6f 64 5f 73 70 61 74 69 61 6c 69 74 65  ('mod_spatialite
03a0: 2e 73 6f 27 29 5c 72 5c 6e 5c 72 5c 6e 5c 72 5c  .so')\r\n\r\n\r\
03b0: 6e 65 6e 67 69 6e 65 5c 73 3d 5c 73 63 72 65 61  nengine\s=\screa
03c0: 74 65 5f 65 6e 67 69 6e 65 28 27 73 71 6c 69 74  te_engine('sqlit
03d0: 65 3a 2f 2f 27 29 5c 72 5c 6e 6c 69 73 74 65 6e  e://')\r\nlisten
03e0: 28 65 6e 67 69 6e 65 2c 5c 73 27 63 6f 6e 6e 65  (engine,\s'conne
03f0: 63 74 27 2c 5c 73 6c 6f 61 64 5f 73 70 61 74 69  ct',\sload_spati
0400: 61 6c 69 74 65 29 5c 72 5c 6e 5c 72 5c 6e 5c 72  alite)\r\n\r\n\r
0410: 5c 6e 23 5c 73 66 72 6f 6d 5c 73 73 68 61 70 65  \n#\sfrom\sshape
0420: 6c 79 5c 73 69 6d 70 6f 72 74 5c 73 73 70 65 65  ly\simport\sspee
0430: 64 75 70 73 5c 73 5c 73 23 5c 73 52 65 6d 6f 76  dups\s\s#\sRemov
0440: 65 5c 73 63 6f 6d 6d 65 6e 74 5c 73 74 6f 5c 73  e\scomment\sto\s
0450: 61 76 6f 69 64 5c 73 73 65 67 6d 65 6e 74 61 74  avoid\ssegmentat
0460: 69 6f 6e 5c 73 66 61 75 6c 74 5c 72 5c 6e 65 6e  ion\sfault\r\nen
0470: 67 69 6e 65 5f 63 6f 6e 6e 65 63 74 69 6f 6e 5c  gine_connection\
0480: 73 3d 5c 73 65 6e 67 69 6e 65 2e 63 6f 6e 6e 65  s=\sengine.conne
0490: 63 74 28 29 5c 72 5c 6e 66 72 6f 6d 5c 73 73 68  ct()\r\nfrom\ssh
04a0: 61 70 65 6c 79 5c 73 69 6d 70 6f 72 74 5c 73 73  apely\simport\ss
04b0: 70 65 65 64 75 70 73 5c 72 5c 6e 60 60 60 5c 72  peedups\r\n```\r
04c0: 5c 6e 5c 72 5c 6e 5c 72 5c 6e 5c 72 5c 6e 52 75  \n\r\n\r\n\r\nRu
04d0: 6e 6e 69 6e 67 5c 73 74 68 65 5c 73 61 62 6f 76  nning\sthe\sabov
04e0: 65 5c 73 63 6f 64 65 5c 73 70 72 6f 64 75 63 65  e\scode\sproduce
04f0: 73 5c 73 74 68 65 5c 73 66 6f 6c 6c 6f 77 69 6e  s\sthe\sfollowin
0500: 67 5c 73 73 65 67 6d 65 6e 74 61 74 69 6f 6e 5c  g\ssegmentation\
0510: 73 66 61 75 6c 74 3a 5c 72 5c 6e 60 60 60 5c 72  sfault:\r\n```\r
0520: 5c 6e 70 79 74 68 6f 6e 3a 5c 73 42 79 74 65 4f  \npython:\sByteO
0530: 72 64 65 72 56 61 6c 75 65 73 2e 63 70 70 3a 34  rderValues.cpp:4
0540: 36 3a 5c 73 73 74 61 74 69 63 5c 73 69 6e 74 5c  6:\sstatic\sint\
0550: 73 67 65 6f 73 3a 3a 69 6f 3a 3a 42 79 74 65 4f  sgeos::io::ByteO
0560: 72 64 65 72 56 61 6c 75 65 73 3a 3a 67 65 74 49  rderValues::getI
0570: 6e 74 28 63 6f 6e 73 74 5c 73 75 6e 73 69 67 6e  nt(const\sunsign
0580: 65 64 5c 73 63 68 61 72 2a 2c 5c 73 69 6e 74 29  ed\schar*,\sint)
0590: 3a 5c 73 41 73 73 65 72 74 69 6f 6e 5c 73 60 62  :\sAssertion\s`b
05a0: 79 74 65 4f 72 64 65 72 5c 73 3d 3d 5c 73 45 4e  yteOrder\s==\sEN
05b0: 44 49 41 4e 5f 4c 49 54 54 4c 45 27 5c 73 66 61  DIAN_LITTLE'\sfa
05c0: 69 6c 65 64 2e 5c 72 5c 6e 41 62 6f 72 74 65 64  iled.\r\nAborted
05d0: 5c 73 28 63 6f 72 65 5c 73 64 75 6d 70 65 64 29  \s(core\sdumped)
05e0: 5c 72 5c 6e 60 60 60 5c 72 5c 6e 5c 72 5c 6e 5c  \r\n```\r\n\r\n\
05f0: 72 5c 6e 5c 72 5c 6e 52 65 6d 6f 76 69 6e 67 5c  r\n\r\nRemoving\
0600: 73 74 68 65 5c 73 63 6f 6d 6d 65 6e 74 5c 73 70  sthe\scomment\sp
0610: 72 65 76 65 6e 74 73 5c 73 74 68 65 5c 73 73 65  revents\sthe\sse
0620: 67 6d 65 6e 74 61 74 69 6f 6e 5c 73 66 61 75 6c  gmentation\sfaul
0630: 74 2e 5c 72 5c 6e 5c 72 5c 6e 23 23 5c 73 4f 70  t.\r\n\r\n##\sOp
0640: 65 72 61 74 69 6e 67 5c 73 73 79 73 74 65 6d 5c  erating\ssystem\
0650: 72 5c 6e 5c 72 5c 6e 46 65 64 6f 72 61 5c 73 33  r\n\r\nFedora\s3
0660: 31 0a 4a 20 6c 6f 67 69 6e 20 61 6e 6f 6e 79 6d  1.J login anonym
0670: 6f 75 73 0a 4a 20 6d 69 6d 65 74 79 70 65 20 74  ous.J mimetype t
0680: 65 78 74 2f 78 2d 66 6f 73 73 69 6c 2d 70 6c 61  ext/x-fossil-pla
0690: 69 6e 0a 4a 20 70 72 69 76 61 74 65 5f 63 6f 6e  in.J private_con
06a0: 74 61 63 74 20 31 32 64 61 65 32 33 33 30 38 35  tact 12dae233085
06b0: 61 31 38 61 37 37 33 37 32 62 31 39 35 64 61 33  a18a77372b195da3
06c0: 38 31 38 64 36 37 37 32 30 65 34 62 34 0a 4a 20  818d67720e4b4.J 
06d0: 73 65 76 65 72 69 74 79 20 43 72 69 74 69 63 61  severity Critica
06e0: 6c 0a 4a 20 73 74 61 74 75 73 20 4f 70 65 6e 0a  l.J status Open.
06f0: 4a 20 74 69 74 6c 65 20 53 74 72 61 6e 67 65 5c  J title Strange\
0700: 73 49 6e 74 65 72 61 63 74 69 6f 6e 5c 73 42 65  sInteraction\sBe
0710: 74 77 65 65 6e 5c 73 53 70 61 74 69 61 6c 69 74  tween\sSpatialit
0720: 65 5c 73 61 6e 64 5c 73 53 68 61 70 65 6c 79 0a  e\sand\sShapely.
0730: 4a 20 74 79 70 65 20 49 6e 63 69 64 65 6e 74 0a  J type Incident.
0740: 4b 20 62 62 61 62 34 36 63 66 34 64 65 64 64 39  K bbab46cf4dedd9
0750: 37 30 33 39 36 30 61 37 35 34 32 39 61 31 37 31  703960a75429a171
0760: 37 35 33 61 34 33 33 39 63 35 0a 55 20 61 6e 6f  753a4339c5.U ano
0770: 6e 79 6d 6f 75 73 0a 5a 20 65 63 38 65 33 31 34  nymous.Z ec8e314
0780: 64 30 64 62 63 64 36 34 62 63 31 61 37 39 31 31  d0dbcd64bc1a7911
0790: 30 38 33 36 38 35 63 61 36 0a                    083685ca6.