Skip to content

SteamVR initialization unknown error code 1002 #91

@tomgoddard

Description

@tomgoddard

The initialization error code 1002 is not listed in pyopenvr/error_codes/init.py and this causes a cryptic KeyError instead of reporting why initialization failed. It looks like this error code is “Oculus Link Not Enabled (1002)” SteamVR error as given on this web page https://smartglasseshub.com/oculus-link-not-enabled-steamvr/ although I did not find documentation for it. It would be good to add this error string. Also it would probably when encountering an unknown error code to report "Unknown error code" instead of giving a KeyError that most users will struggle to even figure out it is a VR startup problem.

This traceback was reported in ChimeraX a molecular visualization package

https://www.rbvi.ucsf.edu/trac/ChimeraX/ticket/7774

I did not reproduce this error and the reporter did not provide their email. The traceback is here

File "C:\Program Files\ChimeraX 1.4\bin\lib\site-
packages\chimerax\vive\vr.py", line 506, in start_vr  
self._vr_system = vrs = openvr.init(openvr.VRApplication_Scene)  
File "C:\Program Files\ChimeraX 1.4\bin\lib\site-
packages\openvr\\__init__.py", line 7209, in init  
initInternal2(applicationType, pStartupInfo)  
File "C:\Program Files\ChimeraX 1.4\bin\lib\site-
packages\openvr\\__init__.py", line 7341, in initInternal2  
openvr.error_code.InitError.check_error_value(error.value)  
File "C:\Program Files\ChimeraX 1.4\bin\lib\site-
packages\openvr\error_code\\__init__.py", line 20, in check_error_value  
error_class = cls.error_index[int(error_value)]  
KeyError: 1002  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions