Commit 5607633
committed
fix: improve enrollment stop sequence and thread safety
1. Fixed thread synchronization issue by ensuring camera cleanup
completes before proceeding
2. Added proper signal disconnections to prevent race conditions during
stop
3. Implemented RAII pattern with CheckDoneGuard to ensure m_checkDone
flag is always set
4. Reordered resource cleanup sequence for safer shutdown
5. Removed unnecessary QCoreApplication::processEvents() call that could
cause reentrancy issues
Log: Fixed enrollment process stop sequence to prevent application
crashes
Influence:
1. Test enrollment start and stop multiple times in quick succession
2. Verify camera resources are properly released after enrollment
completion
3. Check that no race conditions occur during enrollment cancellation
4. Validate that face detection and anti-spoofing processes terminate
cleanly
5. Test enrollment with different camera devices and configurations
fix: 改进注册停止序列和线程安全性
1. 修复线程同步问题,确保相机清理完成后再继续执行
2. 添加正确的信号断开连接,防止停止过程中的竞争条件
3. 使用 CheckDoneGuard 实现 RAII 模式,确保 m_checkDone 标志始终被设置
4. 重新安排资源清理顺序以实现更安全的关闭
5. 移除可能导致重入问题的不必要 QCoreApplication::processEvents() 调用
Log: 修复注册过程停止序列,防止应用程序崩溃
Influence:
1. 测试快速连续多次启动和停止注册过程
2. 验证注册完成后相机资源是否正确释放
3. 检查注册取消过程中是否出现竞争条件
4. 验证人脸检测和活体检测过程是否干净终止
5. 使用不同的相机设备和配置测试注册功能
PMS: BUG-3099151 parent 80a8804 commit 5607633
2 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 119 | + | |
| 120 | + | |
124 | 121 | | |
125 | 122 | | |
| 123 | + | |
| 124 | + | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| |||
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
107 | | - | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| |||
162 | 171 | | |
163 | 172 | | |
164 | 173 | | |
165 | | - | |
166 | 174 | | |
167 | 175 | | |
168 | | - | |
169 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
170 | 180 | | |
171 | 181 | | |
172 | 182 | | |
| |||
233 | 243 | | |
234 | 244 | | |
235 | 245 | | |
236 | | - | |
237 | 246 | | |
238 | 247 | | |
239 | 248 | | |
| |||
0 commit comments