From the error message you shared, it looks like there are two main issues here. Let's break them down:
1. Win32Exception with pdf2img.exe
Win32Exception: ApplicationName='D:/Build/VRElectricMotorAssembly/VRElectricMotorAssembly_Data/../Converter/pdf2img.exe', CommandLine='D:/Build/VRElectricMotorAssembly/VRElectricMotorAssembly_Data/StreamingAssets/PDF\AwA.pdf pageRight.png 0', CurrentDirectory='', Native error= Success
This error is triggered when trying to start a process (in this case, pdf2img.exe) from your application but fails for some reason. The exception message is a bit misleading since it mentions "Native error= Success," which sounds contradictory. Here are some potential solutions:
- Path Issue: Ensure the path to
pdf2img.exe is correct and accessible. Given the path in your error message, double-check that the relative path (../Converter/pdf2img.exe) correctly resolves to the actual location of pdf2img.exe relative to your application’s working directory.
- Permissions: The execution might be getting blocked due to insufficient permissions. Make sure the application/user has the necessary permissions to execute
pdf2img.exe.
- Command Line Arguments: Double-check the command-line arguments for correctness. Specifically, ensure that the paths (including
AwA.pdf and pageRight.png) are correct and accessible. Note the use of mixed slashes (/ and \). While Windows is generally forgiving about these, aiming for consistency might help.
- Compatibility Mode: If
pdf2img.exe is an older application, you might need to run it in compatibility mode.
2. OpenXR Error: xrRequestExitSession: XR_ERROR_SESSION_NOT_RUNNING
[XR] [17836] [22:32:21.849][Error] xrRequestExitSession: XR_ERROR_SESSION_NOT_RUNNING
This error indicates an issue with an XR (Extended Reality) session, which isn't running when a request to exit it is made. This might imply that the session wasn't started properly or was already terminated before the request to exit. Here are some areas to consider:
- Session Management: Make sure your XR session is being correctly managed - starting up and shutting down cleanly. This includes checking initialization code and ensuring that sessions are not inadvertently stopped or failed to start.
- XR Plugin Configuration: Review your XR plugin settings and configuration in Unity to ensure they are correctly set up for your target platform and devices.
- Debugging Logs: Look for any preceding errors or warnings that might indicate why the session was not running. These logs can provide clues on whether the session failed to start or was unexpectedly terminated.
- XR SDK Version: Ensure you're using a compatible version of the XR SDK that is known to work well with your development and target platforms.
Solving these issues involves a careful review of paths, permissions, and configurations in your project settings. It might also require examining the initialization sequence of your application to ensure everything is correctly set up before making calls to external processes or XR session functions.