Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting large cyclodextrins structure cause Ketcher to freeze #4241

Closed
Zhirnoff opened this issue Mar 13, 2024 · 3 comments · Fixed by #4265 or #4273
Closed

Pasting large cyclodextrins structure cause Ketcher to freeze #4241

Zhirnoff opened this issue Mar 13, 2024 · 3 comments · Fixed by #4265 or #4273
Assignees
Labels
bug Performance Bucket: Performance related issues Priority: High

Comments

@Zhirnoff
Copy link
Collaborator

Zhirnoff commented Mar 13, 2024

Steps to Reproduce

  1. Open Ketcher
  2. Paste structure

  ChemDraw03082412002D

  0  0  0     0  0              0 V3000
M  V30 BEGIN CTAB
M  V30 COUNTS 231 253 21 0 1
M  V30 BEGIN ATOM
M  V30 1 C 1.350748 -3.710939 0.000000 0
M  V30 2 C 0.640693 -3.285679 0.000000 0
M  V30 3 C 0.047692 -3.857036 0.000000 0
M  V30 4 C -0.751038 -4.060390 0.000000 0
M  V30 5 O -0.040485 -4.486092 0.000000 0
M  V30 6 C 0.555331 -3.913686 0.000000 0
M  V30 7 C 1.263620 -4.336020 0.000000 0
M  V30 8 O 2.164827 -3.008504 0.000000 0
M  V30 9 C -2.217859 -3.137926 0.000000 0
M  V30 10 C -2.330717 -2.317332 0.000000 0
M  V30 11 C -3.153630 -2.216621 0.000000 0
M  V30 12 C -3.810183 -1.729024 0.000000 0
M  V30 13 O -3.693349 -2.541999 0.000000 0
M  V30 14 C -2.871706 -2.648010 0.000000 0
M  V30 15 C -2.757578 -3.463414 0.000000 0
M  V30 16 O -1.157249 -3.331010 0.000000 0
M  V30 17 C -4.042248 -0.026659 0.000000 0
M  V30 18 C -3.475529 0.578434 0.000000 0
M  V30 19 C -3.914372 1.283189 0.000000 0
M  V30 20 C -3.947114 2.102016 0.000000 0
M  V30 21 O -4.507483 1.500291 0.000000 0
M  V30 22 C -4.072009 0.793273 0.000000 0
M  V30 23 C -4.634642 0.189892 0.000000 0
M  V30 24 O -3.524780 -0.969276 0.000000 0
M  V30 25 C -2.730137 3.360680 0.000000 0
M  V30 26 C -1.903856 3.290889 0.000000 0
M  V30 27 C -1.619061 4.066760 0.000000 0
M  V30 28 C -0.994477 4.596651 0.000000 0
M  V30 29 O -1.817943 4.668926 0.000000 0
M  V30 30 C -2.100971 3.889633 0.000000 0
M  V30 31 C -2.926534 3.959479 0.000000 0
M  V30 32 O -3.149489 2.373063 0.000000 0
M  V30 33 C 0.719152 4.407653 0.000000 0
M  V30 34 C 1.184498 3.721726 0.000000 0
M  V30 35 C 1.964343 3.987030 0.000000 0
M  V30 36 C 2.769975 3.834584 0.000000 0
M  V30 37 O 2.306948 4.517032 0.000000 0
M  V30 38 C 1.523071 4.250623 0.000000 0
M  V30 39 C 1.062971 4.935335 0.000000 0
M  V30 40 O -0.315011 4.113581 0.000000 0
M  V30 41 C 3.689071 2.386646 0.000000 0
M  V30 42 C 3.430006 1.600009 0.000000 0
M  V30 43 C 4.123331 1.144546 0.000000 0
M  V30 44 C 4.499175 0.417982 0.000000 0
M  V30 45 O 4.754154 1.201748 0.000000 0
M  V30 46 C 4.063203 1.654505 0.000000 0
M  V30 47 C 4.316416 2.442246 0.000000 0
M  V30 48 O 2.820938 3.022106 0.000000 0
M  V30 49 C 3.944548 -1.196649 0.000000 0
M  V30 50 C 3.170444 -1.495192 0.000000 0
M  V30 51 C 3.254149 -2.314461 0.000000 0
M  V30 52 C 2.927391 -3.067970 0.000000 0
M  V30 53 O 3.695255 -2.773015 0.000000 0
M  V30 54 C 3.609949 -1.950212 0.000000 0
M  V30 55 C 4.379525 -1.650510 0.000000 0
M  V30 56 O 3.894634 -0.125713 0.000000 0
M  V30 57 H -4.837499 -0.246135 0.000000 0
M  V30 58 H -2.547875 -3.893754 0.000000 0
M  V30 59 H 1.732333 -4.442086 0.000000 0
M  V30 60 H 4.755921 -1.349095 0.000000 0
M  V30 61 H 4.316968 2.921948 0.000000 0
M  V30 62 H 0.684257 5.232112 0.000000 0
M  V30 63 H -3.393592 3.851258 0.000000 0
M  V30 64 O -0.506880 -3.242226 0.000000 0
M  V30 65 C -1.866278 -2.801872 0.000000 0
M  V30 66 C -1.612040 -2.017023 0.000000 0
M  V30 67 C -2.164619 -1.404421 0.000000 0
M  V30 68 C -2.971437 -1.576669 0.000000 0
M  V30 69 C -3.225676 -2.361517 0.000000 0
M  V30 70 C -2.673097 -2.974119 0.000000 0
M  V30 71 C -1.313698 -3.414473 0.000000 0
M  V30 72 O 1.095051 -3.164319 0.000000 0
M  V30 73 C 2.106262 -2.154702 0.000000 0
M  V30 74 C 2.689165 -2.738525 0.000000 0
M  V30 75 C 3.486222 -2.525628 0.000000 0
M  V30 76 C 3.700376 -1.728908 0.000000 0
M  V30 77 C 3.117474 -1.145085 0.000000 0
M  V30 78 C 2.320417 -1.357982 0.000000 0
M  V30 79 C 1.309205 -2.367599 0.000000 0
M  V30 80 O 1.251473 -5.160590 0.000000 0
M  V30 81 Si 0.531003 -5.562521 0.000000 0
M  V30 82 C 0.518851 -6.387431 0.000000 0
M  V30 83 C 0.129072 -4.842052 0.000000 0
M  V30 84 C -0.293907 -5.550369 0.000000 0
M  V30 85 C 1.227169 -6.810410 0.000000 0
M  V30 86 C 0.506699 -7.212342 0.000000 0
M  V30 87 C -0.201618 -6.789363 0.000000 0
M  V30 88 O -3.267648 -1.401880 0.000000 0
M  V30 89 C -4.146732 -0.275343 0.000000 0
M  V30 90 C -3.496325 0.232197 0.000000 0
M  V30 91 C -3.610664 1.049235 0.000000 0
M  V30 92 C -4.375409 1.358734 0.000000 0
M  V30 93 C -5.025816 0.851195 0.000000 0
M  V30 94 C -4.911477 0.034156 0.000000 0
M  V30 95 C -4.032393 -1.092381 0.000000 0
M  V30 96 O -1.614589 -2.681194 0.000000 0
M  V30 97 C -0.187691 -2.604788 0.000000 0
M  V30 98 C -0.143578 -3.428608 0.000000 0
M  V30 99 C 0.591927 -3.802315 0.000000 0
M  V30 100 C 1.283320 -3.352203 0.000000 0
M  V30 101 C 1.239207 -2.528383 0.000000 0
M  V30 102 C 0.503702 -2.154676 0.000000 0
M  V30 103 C -0.923196 -2.231081 0.000000 0
M  V30 104 O -3.407892 -3.971054 0.000000 0
M  V30 105 C -3.943740 -5.295721 0.000000 0
M  V30 106 C -4.708537 -4.986348 0.000000 0
M  V30 107 C -5.358860 -5.493995 0.000000 0
M  V30 108 C -5.244386 -6.311015 0.000000 0
M  V30 109 C -4.479589 -6.620387 0.000000 0
M  V30 110 C -3.829267 -6.112740 0.000000 0
M  V30 111 C -3.293418 -4.788073 0.000000 0
M  V30 112 O -3.441683 1.747927 0.000000 0
M  V30 113 C -3.060153 3.124993 0.000000 0
M  V30 114 C -2.265104 2.904716 0.000000 0
M  V30 115 C -1.676814 3.483111 0.000000 0
M  V30 116 C -1.883574 4.281782 0.000000 0
M  V30 117 C -2.678623 4.502059 0.000000 0
M  V30 118 C -3.266912 3.923664 0.000000 0
M  V30 119 C -3.648442 2.546598 0.000000 0
M  V30 120 O -3.303095 -0.231283 0.000000 0
M  V30 121 C -2.346541 -1.292828 0.000000 0
M  V30 122 C -2.959425 -1.845095 0.000000 0
M  V30 123 C -2.787589 -2.652001 0.000000 0
M  V30 124 C -2.002870 -2.906640 0.000000 0
M  V30 125 C -1.389986 -2.354374 0.000000 0
M  V30 126 C -1.561822 -1.547467 0.000000 0
M  V30 127 C -2.518376 -0.485922 0.000000 0
M  V30 128 O -5.439776 0.374970 0.000000 0
M  V30 129 Si -5.681728 1.163693 0.000000 0
M  V30 130 C -6.485759 1.348518 0.000000 0
M  V30 131 C -4.893005 1.405645 0.000000 0
M  V30 132 C -5.496903 1.967723 0.000000 0
M  V30 133 C -7.047837 0.744619 0.000000 0
M  V30 134 C -7.289789 1.533342 0.000000 0
M  V30 135 C -6.727711 2.137241 0.000000 0
M  V30 136 O -1.197445 3.835799 0.000000 0
M  V30 137 C 0.231137 3.867871 0.000000 0
M  V30 138 C 0.249654 3.043079 0.000000 0
M  V30 139 C 0.973203 2.646719 0.000000 0
M  V30 140 C 1.678236 3.075151 0.000000 0
M  V30 141 C 1.659719 3.899943 0.000000 0
M  V30 142 C 0.936170 4.296303 0.000000 0
M  V30 143 C -0.492412 4.264231 0.000000 0
M  V30 144 O -2.265951 2.748244 0.000000 0
M  V30 145 C -2.358519 1.322303 0.000000 0
M  V30 146 C -3.181786 1.375747 0.000000 0
M  V30 147 C -3.639704 0.689499 0.000000 0
M  V30 148 C -3.274354 -0.050193 0.000000 0
M  V30 149 C -2.451087 -0.103637 0.000000 0
M  V30 150 C -1.993169 0.582611 0.000000 0
M  V30 151 C -1.900602 2.008552 0.000000 0
M  V30 152 O -3.277862 4.706141 0.000000 0
M  V30 153 Si -2.807006 5.383577 0.000000 0
M  V30 154 C -3.158255 6.130068 0.000000 0
M  V30 155 C -2.129570 4.912720 0.000000 0
M  V30 156 C -2.060515 5.734825 0.000000 0
M  V30 157 C -3.980359 6.199124 0.000000 0
M  V30 158 C -3.509503 6.876559 0.000000 0
M  V30 159 C -2.687398 6.807503 0.000000 0
M  V30 160 O 2.160851 3.493084 0.000000 0
M  V30 161 C 3.282162 2.607343 0.000000 0
M  V30 162 C 2.770780 1.959954 0.000000 0
M  V30 163 C 3.075744 1.193389 0.000000 0
M  V30 164 C 3.892090 1.074213 0.000000 0
M  V30 165 C 4.403473 1.721602 0.000000 0
M  V30 166 C 4.098509 2.488167 0.000000 0
M  V30 167 C 2.977198 3.373908 0.000000 0
M  V30 168 O 0.382898 3.731554 0.000000 0
M  V30 169 C -0.863269 3.032309 0.000000 0
M  V30 170 C -1.266978 3.751783 0.000000 0
M  V30 171 C -2.091917 3.761898 0.000000 0
M  V30 172 C -2.513145 3.052538 0.000000 0
M  V30 173 C -2.109435 2.333063 0.000000 0
M  V30 174 C -1.284497 2.322949 0.000000 0
M  V30 175 C -0.038331 3.022194 0.000000 0
M  V30 176 O 1.426336 5.675648 0.000000 0
M  V30 177 Si 2.249468 5.731142 0.000000 0
M  V30 178 C 2.612974 6.471742 0.000000 0
M  V30 179 C 2.304962 4.908011 0.000000 0
M  V30 180 C 2.990068 5.367636 0.000000 0
M  V30 181 C 2.153348 7.156847 0.000000 0
M  V30 182 C 2.976480 7.212342 0.000000 0
M  V30 183 C 3.436105 6.527236 0.000000 0
M  V30 184 O 3.672948 0.450062 0.000000 0
M  V30 185 C 3.599061 -0.976969 0.000000 0
M  V30 186 C 2.775165 -0.934310 0.000000 0
M  V30 187 C 2.326273 -1.626496 0.000000 0
M  V30 188 C 2.701278 -2.361341 0.000000 0
M  V30 189 C 3.525174 -2.403999 0.000000 0
M  V30 190 C 3.974066 -1.711814 0.000000 0
M  V30 191 C 4.047953 -0.284783 0.000000 0
M  V30 192 O 2.952127 2.237181 0.000000 0
M  V30 193 C 1.638050 2.798498 0.000000 0
M  V30 194 C 1.962127 3.557181 0.000000 0
M  V30 195 C 1.467127 4.217181 0.000000 0
M  V30 196 C 0.648050 4.118498 0.000000 0
M  V30 197 C 0.323973 3.359816 0.000000 0
M  V30 198 C 0.818973 2.699816 0.000000 0
M  V30 199 C 2.133050 2.138498 0.000000 0
M  V30 200 O 5.123703 2.614184 0.000000 0
M  V30 201 Si 5.675985 2.001313 0.000000 0
M  V30 202 C 6.482887 2.173168 0.000000 0
M  V30 203 C 5.063115 1.449032 0.000000 0
M  V30 204 C 5.847840 1.194411 0.000000 0
M  V30 205 C 6.737507 2.957893 0.000000 0
M  V30 206 C 7.289789 2.345023 0.000000 0
M  V30 207 C 7.035168 1.560298 0.000000 0
M  V30 208 O 2.427260 -2.271559 0.000000 0
M  V30 209 C 1.154403 -2.920952 0.000000 0
M  V30 210 C 0.779476 -2.186067 0.000000 0
M  V30 211 C -0.044415 -2.143322 0.000000 0
M  V30 212 C -0.493380 -2.835460 0.000000 0
M  V30 213 C -0.118454 -3.570344 0.000000 0
M  V30 214 C 0.705438 -3.613090 0.000000 0
M  V30 215 C 1.978295 -2.963698 0.000000 0
M  V30 216 O 3.471803 -0.727327 0.000000 0
M  V30 217 C 3.258822 0.685653 0.000000 0
M  V30 218 C 4.074607 0.808618 0.000000 0
M  V30 219 C 4.376008 1.576591 0.000000 0
M  V30 220 C 3.861625 2.221599 0.000000 0
M  V30 221 C 3.045841 2.098634 0.000000 0
M  V30 222 C 2.744439 1.330661 0.000000 0
M  V30 223 C 2.957420 -0.082320 0.000000 0
M  V30 224 O 5.023931 -2.166210 0.000000 0
M  V30 225 Si 4.899577 -2.981785 0.000000 0
M  V30 226 C 5.543708 -3.497266 0.000000 0
M  V30 227 C 4.084003 -2.857431 0.000000 0
M  V30 228 C 4.384096 -3.625915 0.000000 0
M  V30 229 C 6.312193 -3.197172 0.000000 0
M  V30 230 C 6.187838 -4.012746 0.000000 0
M  V30 231 C 5.419354 -4.312839 0.000000 0
M  V30 END ATOM
M  V30 BEGIN BOND
M  V30 1 2 69 70
M  V30 2 1 68 69
M  V30 3 2 67 68
M  V30 4 1 66 67
M  V30 5 2 65 66
M  V30 6 1 65 70
M  V30 7 1 65 71
M  V30 8 1 64 71
M  V30 9 1 3 64 CFG=1
M  V30 10 2 77 78
M  V30 11 1 76 77
M  V30 12 2 75 76
M  V30 13 1 74 75
M  V30 14 2 73 74
M  V30 15 1 73 78
M  V30 16 1 73 79
M  V30 17 1 72 79
M  V30 18 1 2 72 CFG=1
M  V30 19 1 82 85
M  V30 20 1 82 86
M  V30 21 1 82 87
M  V30 22 1 81 82
M  V30 23 1 81 83
M  V30 24 1 81 84
M  V30 25 1 80 81
M  V30 26 1 7 80
M  V30 27 2 93 94
M  V30 28 1 92 93
M  V30 29 2 91 92
M  V30 30 1 90 91
M  V30 31 2 89 90
M  V30 32 1 89 94
M  V30 33 1 89 95
M  V30 34 1 88 95
M  V30 35 1 11 88 CFG=1
M  V30 36 2 101 102
M  V30 37 1 100 101
M  V30 38 2 99 100
M  V30 39 1 98 99
M  V30 40 2 97 98
M  V30 41 1 97 102
M  V30 42 1 97 103
M  V30 43 1 96 103
M  V30 44 1 10 96 CFG=1
M  V30 45 2 109 110
M  V30 46 1 108 109
M  V30 47 2 107 108
M  V30 48 1 106 107
M  V30 49 2 105 106
M  V30 50 1 105 110
M  V30 51 1 105 111
M  V30 52 1 104 111
M  V30 53 1 15 104
M  V30 54 2 117 118
M  V30 55 1 116 117
M  V30 56 2 115 116
M  V30 57 1 114 115
M  V30 58 2 113 114
M  V30 59 1 113 118
M  V30 60 1 113 119
M  V30 61 1 112 119
M  V30 62 1 19 112 CFG=1
M  V30 63 2 125 126
M  V30 64 1 124 125
M  V30 65 2 123 124
M  V30 66 1 122 123
M  V30 67 2 121 122
M  V30 68 1 121 126
M  V30 69 1 121 127
M  V30 70 1 120 127
M  V30 71 1 18 120 CFG=1
M  V30 72 1 130 133
M  V30 73 1 130 134
M  V30 74 1 130 135
M  V30 75 1 129 130
M  V30 76 1 129 131
M  V30 77 1 129 132
M  V30 78 1 128 129
M  V30 79 1 23 128
M  V30 80 2 141 142
M  V30 81 1 140 141
M  V30 82 2 139 140
M  V30 83 1 138 139
M  V30 84 2 137 138
M  V30 85 1 137 142
M  V30 86 1 137 143
M  V30 87 1 136 143
M  V30 88 1 27 136 CFG=1
M  V30 89 2 149 150
M  V30 90 1 148 149
M  V30 91 2 147 148
M  V30 92 1 146 147
M  V30 93 2 145 146
M  V30 94 1 145 150
M  V30 95 1 145 151
M  V30 96 1 144 151
M  V30 97 1 26 144 CFG=1
M  V30 98 1 154 157
M  V30 99 1 154 158
M  V30 100 1 154 159
M  V30 101 1 153 154
M  V30 102 1 153 155
M  V30 103 1 153 156
M  V30 104 1 152 153
M  V30 105 1 31 152
M  V30 106 2 165 166
M  V30 107 1 164 165
M  V30 108 2 163 164
M  V30 109 1 162 163
M  V30 110 2 161 162
M  V30 111 1 161 166
M  V30 112 1 161 167
M  V30 113 1 160 167
M  V30 114 1 35 160 CFG=1
M  V30 115 2 173 174
M  V30 116 1 172 173
M  V30 117 2 171 172
M  V30 118 1 170 171
M  V30 119 2 169 170
M  V30 120 1 169 174
M  V30 121 1 169 175
M  V30 122 1 168 175
M  V30 123 1 34 168 CFG=1
M  V30 124 1 178 181
M  V30 125 1 178 182
M  V30 126 1 178 183
M  V30 127 1 177 178
M  V30 128 1 177 179
M  V30 129 1 177 180
M  V30 130 1 176 177
M  V30 131 1 39 176
M  V30 132 2 189 190
M  V30 133 1 188 189
M  V30 134 2 187 188
M  V30 135 1 186 187
M  V30 136 2 185 186
M  V30 137 1 185 190
M  V30 138 1 185 191
M  V30 139 1 184 191
M  V30 140 1 43 184 CFG=1
M  V30 141 2 197 198
M  V30 142 1 196 197
M  V30 143 2 195 196
M  V30 144 1 194 195
M  V30 145 2 193 194
M  V30 146 1 193 198
M  V30 147 1 193 199
M  V30 148 1 192 199
M  V30 149 1 42 192 CFG=1
M  V30 150 1 202 205
M  V30 151 1 202 206
M  V30 152 1 202 207
M  V30 153 1 201 202
M  V30 154 1 201 203
M  V30 155 1 201 204
M  V30 156 1 200 201
M  V30 157 1 47 200
M  V30 158 2 213 214
M  V30 159 1 212 213
M  V30 160 2 211 212
M  V30 161 1 210 211
M  V30 162 2 209 210
M  V30 163 1 209 214
M  V30 164 1 209 215
M  V30 165 1 208 215
M  V30 166 1 51 208 CFG=1
M  V30 167 2 221 222
M  V30 168 1 220 221
M  V30 169 2 219 220
M  V30 170 1 218 219
M  V30 171 2 217 218
M  V30 172 1 217 222
M  V30 173 1 217 223
M  V30 174 1 216 223
M  V30 175 1 50 216 CFG=1
M  V30 176 1 226 229
M  V30 177 1 226 230
M  V30 178 1 226 231
M  V30 179 1 225 226
M  V30 180 1 225 227
M  V30 181 1 225 228
M  V30 182 1 224 225
M  V30 183 1 55 224
M  V30 184 1 1 6
M  V30 185 1 2 1
M  V30 186 1 1 8 CFG=3
M  V30 187 1 1 59 CFG=1
M  V30 188 1 2 3
M  V30 189 1 4 3
M  V30 190 1 4 5
M  V30 191 1 4 16 CFG=3
M  V30 192 1 5 6
M  V30 193 1 6 7 CFG=3
M  V30 194 1 52 8 CFG=3
M  V30 195 1 9 14
M  V30 196 1 9 10
M  V30 197 1 9 16 CFG=3
M  V30 198 1 9 58 CFG=1
M  V30 199 1 10 11
M  V30 200 1 12 11
M  V30 201 1 12 13
M  V30 202 1 12 24 CFG=3
M  V30 203 1 13 14
M  V30 204 1 14 15 CFG=3
M  V30 205 1 17 22
M  V30 206 1 17 18
M  V30 207 1 17 24 CFG=3
M  V30 208 1 17 57 CFG=1
M  V30 209 1 18 19
M  V30 210 1 19 20
M  V30 211 1 20 21
M  V30 212 1 20 32 CFG=3
M  V30 213 1 21 22
M  V30 214 1 22 23 CFG=3
M  V30 215 1 25 30
M  V30 216 1 26 25
M  V30 217 1 25 32 CFG=3
M  V30 218 1 25 63 CFG=1
M  V30 219 1 26 27
M  V30 220 1 27 28
M  V30 221 1 28 29
M  V30 222 1 28 40 CFG=3
M  V30 223 1 29 30
M  V30 224 1 30 31 CFG=3
M  V30 225 1 33 38
M  V30 226 1 34 33
M  V30 227 1 33 40 CFG=3
M  V30 228 1 33 62 CFG=1
M  V30 229 1 34 35
M  V30 230 1 35 36
M  V30 231 1 36 37
M  V30 232 1 36 48 CFG=3
M  V30 233 1 37 38
M  V30 234 1 38 39 CFG=3
M  V30 235 1 41 46
M  V30 236 1 42 41
M  V30 237 1 41 48 CFG=3
M  V30 238 1 41 61 CFG=1
M  V30 239 1 42 43
M  V30 240 1 43 44
M  V30 241 1 44 45
M  V30 242 1 44 56 CFG=3
M  V30 243 1 45 46
M  V30 244 1 46 47 CFG=3
M  V30 245 1 49 54
M  V30 246 1 50 49
M  V30 247 1 49 56 CFG=3
M  V30 248 1 49 60 CFG=1
M  V30 249 1 50 51
M  V30 250 1 52 51
M  V30 251 1 52 53
M  V30 252 1 53 54
M  V30 253 1 54 55 CFG=3
M  V30 END BOND
M  V30 BEGIN SGROUP
M  V30 1 SUP 1 ATOMS=(8 64 65 66 67 68 69 70 71) XBONDS=(1 9) LABEL=OBn -
M  V30 CSTATE=(4 9 0.554572 -0.614810 0)
M  V30 2 SUP 2 ATOMS=(8 72 73 74 75 76 77 78 79) XBONDS=(1 18) LABEL=OBn -
M  V30 CSTATE=(4 18 -0.454358 -0.121361 0)
M  V30 3 SUP 3 ATOMS=(8 80 81 82 83 84 85 86 87) XBONDS=(1 26) LABEL=OTBS -
M  V30 CSTATE=(4 26 0.012147 0.824569 0)
M  V30 4 SUP 4 ATOMS=(8 88 89 90 91 92 93 94 95) XBONDS=(1 35) LABEL=OBn -
M  V30 CSTATE=(4 35 0.114017 -0.814742 0)
M  V30 5 SUP 5 ATOMS=(8 96 97 98 99 100 101 102 103) XBONDS=(1 44) LABEL=OBn -
M  V30 CSTATE=(4 44 -0.716128 0.363862 0)
M  V30 6 SUP 6 ATOMS=(8 104 105 106 107 108 109 110 111) XBONDS=(1 53) -
M  V30 LABEL=OTBS CSTATE=(4 53 0.650314 0.507640 0)
M  V30 7 SUP 7 ATOMS=(8 112 113 114 115 116 117 118 119) XBONDS=(1 62) -
M  V30 LABEL=OBn CSTATE=(4 62 -0.472689 -0.464739 0)
M  V30 8 SUP 8 ATOMS=(8 120 121 122 123 124 125 126 127) XBONDS=(1 71) -
M  V30 LABEL=OBn CSTATE=(4 71 -0.172434 0.809717 0)
M  V30 9 SUP 9 ATOMS=(8 128 129 130 131 132 133 134 135) XBONDS=(1 79) -
M  V30 LABEL=OTBS CSTATE=(4 79 0.805134 -0.185078 0)
M  V30 10 SUP 10 ATOMS=(8 136 137 138 139 140 141 142 143) XBONDS=(1 88) -
M  V30 LABEL=OBn CSTATE=(4 88 -0.421616 0.230961 0)
M  V30 11 SUP 11 ATOMS=(8 144 145 146 147 148 149 150 151) XBONDS=(1 97) -
M  V30 LABEL=OBn CSTATE=(4 97 0.362095 0.542645 0)
M  V30 12 SUP 12 ATOMS=(8 152 153 154 155 156 157 158 159) XBONDS=(1 105) -
M  V30 LABEL=OTBS CSTATE=(4 105 0.351329 -0.746662 0)
M  V30 13 SUP 13 ATOMS=(8 160 161 162 163 164 165 166 167) XBONDS=(1 114) -
M  V30 LABEL=OBn CSTATE=(4 114 -0.196508 0.493946 0)
M  V30 14 SUP 14 ATOMS=(8 168 169 170 171 172 173 174 175) XBONDS=(1 123) -
M  V30 LABEL=OBn CSTATE=(4 123 0.801600 -0.009828 0)
M  V30 15 SUP 15 ATOMS=(8 176 177 178 179 180 181 182 183) XBONDS=(1 131) -
M  V30 LABEL=OTBS CSTATE=(4 131 -0.363365 -0.740313 0)
M  V30 16 SUP 16 ATOMS=(8 184 185 186 187 188 189 190 191) XBONDS=(1 140) -
M  V30 LABEL=OBn CSTATE=(4 140 0.450383 0.694485 0)
M  V30 17 SUP 17 ATOMS=(8 192 193 194 195 196 197 198 199) XBONDS=(1 149) -
M  V30 LABEL=OBn CSTATE=(4 149 0.477879 -0.637172 0)
M  V30 18 SUP 18 ATOMS=(8 200 201 202 203 204 205 206 207) XBONDS=(1 157) -
M  V30 LABEL=OTBS CSTATE=(4 157 -0.807288 -0.171937 0)
M  V30 19 SUP 19 ATOMS=(8 208 209 210 211 212 213 214 215) XBONDS=(1 166) -
M  V30 LABEL=OBn CSTATE=(4 166 0.826888 -0.042902 0)
M  V30 20 SUP 20 ATOMS=(8 216 217 218 219 220 221 222 223) XBONDS=(1 175) -
M  V30 LABEL=OBn CSTATE=(4 175 -0.301359 -0.767864 0)
M  V30 21 SUP 21 ATOMS=(8 224 225 226 227 228 229 230 231) XBONDS=(1 183) -
M  V30 LABEL=OTBS CSTATE=(4 183 -0.644405 0.515701 0)
M  V30 END SGROUP
M  V30 END CTAB
M  END

Actual behavior
Structure appears under mouse cursor and any movement results in freezes.

Expected behavior
Structure appears under mouse cursor and movement on canvas not freezes application. User can choose a convenient location on canvas to add structure.

Related issues: #4093 #4096
Screenshots

2024-03-13_15h31_21.mp4

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 112.0.5615.138 (Official Build) (64-bit)

Ketcher version
[Version 2.19.0-rc.2]

#187202099

@Zhirnoff Zhirnoff added bug Priority: High Performance Bucket: Performance related issues labels Mar 13, 2024
@Zhirnoff Zhirnoff added this to the Ketcher 2.21.0-rc.1 milestone Mar 13, 2024
@Zhirnoff Zhirnoff changed the title Pasting large cyclodextrins cause Ketcher to freeze Pasting large cyclodextrins structure cause Ketcher to freeze Mar 13, 2024
rrodionov91 added a commit that referenced this issue Mar 18, 2024
- added debounce for structures merge calculations
- added functionalGroup link to sgroup to more efficiently search it during different operations (for example for checking is atom in contracted group)
rrodionov91 added a commit that referenced this issue Mar 19, 2024
- added debounce for structures merge calculations
- added functionalGroup link to sgroup to more efficiently search it during different operations (for example for checking is atom in contracted group)
rrodionov91 added a commit that referenced this issue Mar 19, 2024
…#4273)

- added stop handling of mousemove if previous handler in progress
- added debounce for structures merge calculations
- added functionalGroup link to sgroup to more efficiently search it during different operations (for example for checking is atom in contracted group)
- added condition for invalidation in bonds operations
rrodionov91 added a commit that referenced this issue Mar 19, 2024
…r to freeze (#4265)

- added stop handling of mousemove if previous handler in progress
- added debounce for structures merge calculations
- added functionalGroup link to sgroup to more efficiently search it during different operations (for example for checking is atom in contracted group)
- added condition for invalidation in bonds operations
@Zhirnoff
Copy link
Collaborator Author

The bug fix does not match Expected result described. Currently, when pasting, structure freezes slightly when under cursor. Further improvement of this behavior is planned to be implemented within the scope of ticket #4096.

@Zhirnoff
Copy link
Collaborator Author

When structure is under cursor, moving to toolbars causes errors in the DevTool Console

2024-03-28_16h11_43.mp4

@Zhirnoff
Copy link
Collaborator Author

Errors in DevTool Console moved to separate bug #4368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment