Commit cfd6eec
authored
CHANGE: Improve error logging when events get discarded (ISXB-691) (#1929)
* Check event processing after raised error
Improves existing test to make sure a "full" even buffer has in fact discarded events and that they are not processed in the next update
* Add total bytes processed per device in error message
* Fix test
* Update CHANGELOG.md
* Fix formatting
* Move error check to end of while loop
Addresses issues where the warning is not shown even though the bytes of events processed exceed the limit. This turns the check more rigorous.
* Improve string manipulation1 parent 5ecee3e commit cfd6eec
4 files changed
Lines changed: 87 additions & 12 deletions
File tree
- Assets/Tests/InputSystem
- Packages/com.unity.inputsystem
- InputSystem
- Devices
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
2368 | | - | |
| 2368 | + | |
2369 | 2369 | | |
2370 | 2370 | | |
| 2371 | + | |
2371 | 2372 | | |
2372 | 2373 | | |
2373 | 2374 | | |
2374 | 2375 | | |
| 2376 | + | |
| 2377 | + | |
2375 | 2378 | | |
2376 | 2379 | | |
2377 | 2380 | | |
2378 | 2381 | | |
2379 | 2382 | | |
2380 | 2383 | | |
2381 | 2384 | | |
| 2385 | + | |
2382 | 2386 | | |
2383 | | - | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
2384 | 2390 | | |
2385 | 2391 | | |
2386 | 2392 | | |
2387 | 2393 | | |
2388 | 2394 | | |
2389 | 2395 | | |
2390 | 2396 | | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
2391 | 2406 | | |
2392 | 2407 | | |
2393 | 2408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
676 | 679 | | |
677 | 680 | | |
678 | 681 | | |
| |||
Lines changed: 61 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
3062 | 3063 | | |
3063 | 3064 | | |
3064 | 3065 | | |
3065 | | - | |
3066 | | - | |
3067 | | - | |
3068 | | - | |
3069 | | - | |
3070 | | - | |
3071 | | - | |
3072 | | - | |
3073 | | - | |
3074 | 3066 | | |
3075 | 3067 | | |
3076 | 3068 | | |
| |||
3382 | 3374 | | |
3383 | 3375 | | |
3384 | 3376 | | |
| 3377 | + | |
| 3378 | + | |
3385 | 3379 | | |
3386 | 3380 | | |
3387 | 3381 | | |
| |||
3464 | 3458 | | |
3465 | 3459 | | |
3466 | 3460 | | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
3467 | 3465 | | |
3468 | 3466 | | |
3469 | 3467 | | |
3470 | 3468 | | |
3471 | 3469 | | |
3472 | 3470 | | |
| 3471 | + | |
| 3472 | + | |
3473 | 3473 | | |
3474 | 3474 | | |
3475 | 3475 | | |
| |||
3493 | 3493 | | |
3494 | 3494 | | |
3495 | 3495 | | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
| 3508 | + | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
3496 | 3548 | | |
3497 | 3549 | | |
3498 | 3550 | | |
| |||
0 commit comments