basti564 / Oculess

Removes account requirements and telemetry from Oculus Quest devices
The Unlicense
1.81k stars 76 forks source link

Audio Service occasionally crashes [fixed] #108

Closed threethan closed 1 year ago

threethan commented 1 year ago

I've noticed that every once and a while I've been getting popups saying that Oculess keeps crashing, and the audio accessibility service gets killed by the system.

I've worked out the source of this - occasionally PackageManager fetches PackageInfo objects but then fails to retrieve their packageName. I'm not sure what causes this, but it would sometimes happen enough for the OS to kill Oculess for throwing too many errors.

Properly fixing this would require the package list to be refreshed constantly which would cause a performance hit, but surrounding calls in try/catch stops the service from being killed and any issues should be basically unnoticeable.

I just pushed this workaround to main, but I'm gonna let Basti build it with their key whenever they have time so people can update in place. I'm just documenting it here as a known issue.