Commit b4a23f5
committed
Potentially fix some issues loading app states.
This was motivated by a user report of app getting into a state where the app became unusable, due to loading an invalid state - however, I dont know if this work will actually fix the issue. The issue was happening in JS, however, I think the JS error was related to a c++ exception causing not everything to be loaded. I was able to
Have not fixed all potential issues.
Made so InterSpec::loadState c++ has more granular try/catchs, and tried re-arranging order of operations a little so changes to the GUI isnt as intertwined with the DB code, although this is still the case to a good extent.
Fixed issue of loading Act/Shield state that could cause inconsistencies, due to checks being applied to GUI state before it was fully deserialized.
Also added some JS try/catch around the spectrum calls to JS, since this is where the error showed up, but adding these protections are unlikely to be very useful.1 parent 3604105 commit b4a23f5
File tree
7 files changed
+272
-205
lines changed- InterSpec
- src
7 files changed
+272
-205
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | 269 | | |
271 | | - | |
272 | 270 | | |
273 | 271 | | |
274 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
| 375 | + | |
377 | 376 | | |
378 | | - | |
| 377 | + | |
379 | 378 | | |
380 | 379 | | |
381 | 380 | | |
| |||
468 | 467 | | |
469 | 468 | | |
470 | 469 | | |
471 | | - | |
472 | | - | |
473 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
474 | 481 | | |
475 | 482 | | |
476 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | | - | |
| 580 | + | |
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
| |||
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
714 | | - | |
715 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
716 | 725 | | |
717 | 726 | | |
718 | 727 | | |
| |||
937 | 946 | | |
938 | 947 | | |
939 | 948 | | |
940 | | - | |
941 | | - | |
942 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
943 | 959 | | |
944 | 960 | | |
945 | 961 | | |
946 | 962 | | |
947 | 963 | | |
948 | | - | |
949 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
950 | 973 | | |
951 | 974 | | |
952 | 975 | | |
953 | 976 | | |
954 | 977 | | |
955 | | - | |
956 | | - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
957 | 987 | | |
958 | 988 | | |
959 | 989 | | |
| |||
0 commit comments