US 12,001,878 B2
Auto-recovery for AR wearable devices
Piotr Gurgul, Hergiswil (CH)
Assigned to Snap Inc., Santa Monica, CA (US)
Filed by Snap Inc., Santa Monica, CA (US)
Filed on Jun. 3, 2022, as Appl. No. 17/831,949.
Prior Publication US 2023/0393890 A1, Dec. 7, 2023
Int. Cl. G06F 9/48 (2006.01); G02B 27/01 (2006.01); G06F 3/14 (2006.01)
CPC G06F 9/4856 (2013.01) [G02B 27/0172 (2013.01); G06F 3/14 (2013.01); G02B 2027/014 (2013.01); G02B 2027/0178 (2013.01)] 19 Claims
OG exemplary drawing
 
1. A method performed on an augmented reality (AR) wearable device, the method comprising:
registering an uncaught exception handler;
invoking a pass-through application as a background process, the pass-through application comprising an on-resume procedure;
invoking an application as a foreground process;
in response to detecting the application is unresponsive,
invoking the on-resume procedure to switch the pass-through application as the foreground process from the background process, and
causing, by the on-resume procedure, the application to be restarted as the foreground process and the pass-through application to be switched as the background process from the foreground process; and
in response to an exception without an exception handler,
invoking the uncaught exception handler as the foreground process,
causing, by the uncaught exception handler, a process associated with the application to be terminated, and
causing, by the uncaught exception handler, the application to be restarted as the foreground process.