Commit 90d2d17
authored
[cuegui] Add error handling for gRPC connection failures in FrameMonitor (#2079)
**Link the Issue(s) this Pull Request is related to.**
- #2078
**Summarize your change.**
When gRPC connections are interrupted or reset by the network/load
balancer, CueGUI would freeze and display "rpcObjects is None" errors,
requiring users to restart the application.
This change adds graceful error handling to _filterLayersUpdate() and
_frameRangeSelectionFilterUpdate() to catch grpc.RpcError exceptions and
allow the UI to continue functioning.
Changes:
- Import grpc module in FrameMonitor.py
- Wrap getLayers() calls in try/except blocks
- Log appropriate warnings for connection interruptions
- Return empty lists on failure to allow graceful degradation
- UI remains responsive and auto-recovers when connection is restored
This follows the same error handling pattern already used in
FrameMonitorTree._getUpdate() and _getUpdateChanged().1 parent 1705100 commit 90d2d17
1 file changed
+51
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
150 | 168 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
159 | 173 | | |
160 | 174 | | |
161 | 175 | | |
| |||
354 | 368 | | |
355 | 369 | | |
356 | 370 | | |
357 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
358 | 384 | | |
359 | 385 | | |
360 | 386 | | |
| |||
0 commit comments