Commit 62a0052
修复角色卡面板二次打开时 Live2D 预览卡死问题 (Project-N-E-K-O#999)
* fix: restore character card manager preview behavior
* fix: address workshop sync review comments
* fix: normalize workshop card faces and stabilize live2d preview
* fix: address PR 986 review feedback
* fix: preserve legacy card faces without sidecar
* fix: suppress stale live2d preview load errors
* fix: cancel stale live2d loads when switching 3d previews
* fix: restore live2d preview playback after steam load
* test: cover workshop card face refresh guards
* fix: address PR 988 review feedback
* fix: harden workshop card face sync writes
* fix: count workshop face sync backfill errors
* fix: reset live2d preview context on panel reopen
* fix: address PR 999 coderabbit feedback
- Cancel pending Steam tab init timer on panel close so the 500ms
delayed buildSteamTabContent cannot rebuild the Live2D preview
after destroyLive2DPreviewContext has run.
- Replace the misleading removeModel(force, options) signature with
an options-only API; force=true previously *skipped* window
cleanup, the inverse of what the name implied. All 5 callers now
pass { skipCloseWindows: true } explicitly.
- Tighten the panel-close regression test to assert that the first
pixi_app.destroy() actually fired, locking in the destroy
contract in destroyLive2DPreviewContext.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: address PR 999 coderabbit follow-up
- Pull ticker.stop() out of the bundled UI-cleanup try in removeModel
so that an exception from removeChild / ticker.remove cannot leave
the ticker running while activeModel.destroy() executes.
- Move _mouthTicker = null out of its `if` block to match the
unconditional null assignment used for _lockIconTicker /
_floatingButtonsTicker, so all three ticker fields drop their
references uniformly.
- Loosen canvasDisplayAfterReopen assertion to "!= 'none'", matching
the existing test in the same file and tolerating an explicit
"block" value if loadLive2DModelByName ever sets one.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Hongzhi Wen <cartabio.coder1@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d52dfba commit 62a0052
3 files changed
Lines changed: 411 additions & 145 deletions
File tree
- static
- js
- tests/frontend
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4141 | 4141 | | |
4142 | 4142 | | |
4143 | 4143 | | |
| 4144 | + | |
4144 | 4145 | | |
4145 | | - | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
4146 | 4149 | | |
4147 | 4150 | | |
4148 | 4151 | | |
4149 | 4152 | | |
4150 | 4153 | | |
4151 | 4154 | | |
| 4155 | + | |
4152 | 4156 | | |
4153 | 4157 | | |
4154 | 4158 | | |
| |||
4160 | 4164 | | |
4161 | 4165 | | |
4162 | 4166 | | |
4163 | | - | |
| 4167 | + | |
4164 | 4168 | | |
4165 | 4169 | | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
4166 | 4178 | | |
4167 | 4179 | | |
4168 | 4180 | | |
4169 | | - | |
4170 | | - | |
4171 | | - | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
4172 | 4186 | | |
4173 | 4187 | | |
4174 | 4188 | | |
| |||
4179 | 4193 | | |
4180 | 4194 | | |
4181 | 4195 | | |
4182 | | - | |
4183 | | - | |
4184 | | - | |
4185 | | - | |
4186 | | - | |
4187 | | - | |
4188 | | - | |
4189 | | - | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
4190 | 4202 | | |
4191 | 4203 | | |
4192 | 4204 | | |
| |||
6914 | 6926 | | |
6915 | 6927 | | |
6916 | 6928 | | |
6917 | | - | |
| 6929 | + | |
6918 | 6930 | | |
6919 | 6931 | | |
6920 | 6932 | | |
| |||
7018 | 7030 | | |
7019 | 7031 | | |
7020 | 7032 | | |
7021 | | - | |
| 7033 | + | |
7022 | 7034 | | |
7023 | 7035 | | |
7024 | 7036 | | |
| |||
7139 | 7151 | | |
7140 | 7152 | | |
7141 | 7153 | | |
| 7154 | + | |
7142 | 7155 | | |
7143 | 7156 | | |
7144 | 7157 | | |
7145 | | - | |
7146 | | - | |
| 7158 | + | |
| 7159 | + | |
7147 | 7160 | | |
7148 | 7161 | | |
7149 | 7162 | | |
| |||
7187 | 7200 | | |
7188 | 7201 | | |
7189 | 7202 | | |
| 7203 | + | |
| 7204 | + | |
| 7205 | + | |
| 7206 | + | |
| 7207 | + | |
| 7208 | + | |
| 7209 | + | |
| 7210 | + | |
| 7211 | + | |
| 7212 | + | |
| 7213 | + | |
| 7214 | + | |
| 7215 | + | |
| 7216 | + | |
| 7217 | + | |
| 7218 | + | |
| 7219 | + | |
| 7220 | + | |
| 7221 | + | |
| 7222 | + | |
| 7223 | + | |
| 7224 | + | |
| 7225 | + | |
| 7226 | + | |
| 7227 | + | |
| 7228 | + | |
| 7229 | + | |
| 7230 | + | |
| 7231 | + | |
| 7232 | + | |
| 7233 | + | |
| 7234 | + | |
| 7235 | + | |
| 7236 | + | |
| 7237 | + | |
| 7238 | + | |
| 7239 | + | |
| 7240 | + | |
| 7241 | + | |
| 7242 | + | |
| 7243 | + | |
| 7244 | + | |
| 7245 | + | |
| 7246 | + | |
| 7247 | + | |
| 7248 | + | |
| 7249 | + | |
| 7250 | + | |
| 7251 | + | |
| 7252 | + | |
| 7253 | + | |
| 7254 | + | |
| 7255 | + | |
| 7256 | + | |
| 7257 | + | |
| 7258 | + | |
| 7259 | + | |
| 7260 | + | |
| 7261 | + | |
| 7262 | + | |
| 7263 | + | |
| 7264 | + | |
| 7265 | + | |
| 7266 | + | |
| 7267 | + | |
| 7268 | + | |
7190 | 7269 | | |
7191 | 7270 | | |
7192 | 7271 | | |
| |||
7199 | 7278 | | |
7200 | 7279 | | |
7201 | 7280 | | |
7202 | | - | |
| 7281 | + | |
7203 | 7282 | | |
7204 | 7283 | | |
7205 | 7284 | | |
| |||
7231 | 7310 | | |
7232 | 7311 | | |
7233 | 7312 | | |
7234 | | - | |
| 7313 | + | |
7235 | 7314 | | |
7236 | 7315 | | |
7237 | 7316 | | |
| |||
0 commit comments