Skip to main content
Version: Dev (main)

Troubleshooting

Language:

Joining QAROS as a local app​

What the user sees when a source app on the QAROS PC cannot join, and what fixes it. The Vulkan cube prints each of these.

SymptomCauseFix
qar_library_load(NULL) returns falseno qar-streaming-c.dll beside the executable, QAR_INSTANCE unset, no QAROS installation on this PC, and none on PATHinstall QAROS (Installation)
qar_library_load(NULL) returns false, message names QAR_INSTANCEQAR_INSTANCE names an instance with no recorded runtime: a development hub that is not running, or a name typed wrong. The installed runtime is not used insteadstart that hub, or unset QAR_INSTANCE to use the installed QAROS. An app the Hub or the Visualizer starts gets the Hub's own QAR_INSTANCE, so only an app you start by hand is affected
The app runs an older or newer runtime than the installed QAROSa qar-streaming-c.dll beside the executable, or the runtime of the instance QAR_INSTANCE names, wins over the installationremove the copy beside the app, or unset QAR_INSTANCE
QAR_STATUS_ONBOARDING_HUB_UNREACHABLE (1802)no hub answered on this machine. The join starts the hub when it does not run, so the hub could not be started or reachedstart QAROS from the Start menu, then start the app again
QAR_STATUS_ONBOARDING_HUB_UNREACHABLE (1802), message "QAROS instance '…' is not running"QAR_INSTANCE names a development hub (or another instance that is not installed) and that hub did not come up within about a minute. The app waits for it but does not start it, and does not join the installed QAROS insteadstart that hub, then start the app again, or unset QAR_INSTANCE to join the installed QAROS
QAR_STATUS_ONBOARDING_APPROVAL_DENIED (1805)someone clicked Deny or closed the prompt, or an operator revoked the appstart the app again and click Allow. Nothing is remembered from a Deny.
QAR_STATUS_ONBOARDING_APPROVAL_TIMEOUT (1806)nobody answered the prompt within 120 sretry, and answer the prompt in the Visualizer or the QAROS tray window. Raise approval_timeout_ms if users need longer (at most 10 minutes).
QAR_STATUS_ONBOARDING_HUB_NOT_AUTHENTIC (1807)the program serving the local enrollment pipe is not the installed, signed QAROSdo not retry. Reinstall QAROS from the official installer; if it persists, contact your administrator.
QAR_STATUS_ONBOARDING_APP_IDENTITY_MISMATCH (1808)the executable was moved, copied, re-signed or modified since its approval, or its signature is invalidrevoke the old approval (Approved local apps) and start the app again. An invalid signature can never be approved: re-sign or rebuild.
QAR_STATUS_ONBOARDING_FAILED (1801), message names a runtime version or flavorthe app loaded a qar-streaming-c.dll other than the installed oneload the installed runtime with qar_library_load(NULL); do not ship a copy
asked again after every buildthe app is not code-signed, so its approval is for one exact fileexpected during development; sign release builds (The trust record)
QAR_STATUS_ONBOARDING_INVITE_REFUSED (1812) from qar_session_request_onboarding_invitethe session did not join as a local app (QarOnboardLocalAppExt) and was not started by QAROS: a companion, a remote app or a devicefinal, do not retry; request the invite from the session of the local app that starts the companion (Co-process)
a companion's onboard does not returnit retries (250 ms, doubling to 5 s) while the app that minted its invite, or the hub, is awaykeep that app's session alive while companions start, and bound the companion's onboard with a cancel token (Co-process)
the app stopped receiving after a hub reset, or after its approval was revokedthe session reached QAR_SESSION_LIFECYCLE_STATE_RE_PAIR_REQUIRED (C# SessionLifecycleState.RePairRequired): the hub no longer admits the app, and nothing is retriedsubscribe to the session lifecycle; on RE_PAIR_REQUIRED destroy the session, onboard again and recreate what the app owns (When the hub's session changes)
frames pause for a few seconds and other peers' objects vanish briefly after the operator starts a new sessionthe session moves into the new session in place, and senders renegotiatenothing: the app's own objects are kept. React only where the app keyed something by the session id (When the hub's session changes)

Choosing the GPU​

SymptomFix
the app renders on one GPU while the session uses anothercreate your graphics device on the session's adapter (qar_session_get_graphics_device_id), or chain the adapter you render on as QarGraphicsDeviceId (Choosing the GPU)
QAR_STATUS_MEDIA_STREAMING_DEVICE_ON_ANOTHER_ADAPTER (609) from creating a sender or receiverthe Vulkan or D3D11 device you passed is on another GPU than the session's; frames cannot be shared between two GPUs, and the message names both adapters. Create the device on the adapter qar_session_get_graphics_device_id reports, or chain the adapter you render on as QarGraphicsDeviceId when you onboard
QAR_STATUS_ARGUMENT_NOT_SUPPORTED from onboard with a QarGraphicsDeviceIdthe adapter is not supported: only NVIDIA GPUs are; or a QarGraphicsDeviceDisabledExt is chained too, which asks for no GPU at all
QAR_STATUS_GRAPHICS_DEVICE_NOT_INITIALIZED (610) from a sender or the adapter readthe session was onboarded with QarGraphicsDeviceDisabledExt (C#: WithoutGraphicsDevice()), so it has no GPU; onboard without it to stream (A session without a graphics device)
the Vulkan cube picks the wrong GPUthe cube renders on its session's GPU: the target's GPU when QAROS started it (QAR_GPU_ADAPTER_ID, read by the library), otherwise the library's pick. The cube itself reads no environment variable, prints the GPU it uses and stops when no Vulkan device matches.

Status codes that are part of normal flow​

StatusMeaningWhat to do
QAR_STATUS_ONBOARDING_APPROVAL_TIMEOUTNobody answered the approval prompt in QAROS in timeAsk the user to allow the app in QAROS and start it again
QAR_STATUS_ONBOARDING_HUB_UNREACHABLEA local app could not start or reach QAROS on this machineStart QAROS, then start the app again
QAR_STATUS_TIMEOUT (companion)The companion's cancel token ended its onboarding while the app or the hub was awayStart the companion again once the app runs; the same invite still works while the app's session lives
QAR_STATUS_MEDIA_STREAMING_STREAM_IS_PAUSEDThe receiver paused the stream, for example because its display is not visibleKeep the sender and skip the frame; it resumes when the receiver does. Recreating the sender only restarts the negotiation
QAR_STATUS_MEDIA_STREAMING_STREAM_IS_RECONNECTINGThe stream lost its peer and is reconnectingSkip the frame and keep calling; a dead peer is noticed within ~2 s, a restarted one streams again within a few seconds
QAR_STATUS_RENDERING_PRODUCER_APP_VOLUME_UNRESOLVEDThe sender's app volume does not resolve yet (or was closed), so there is no app content space to hand poses out inKeep calling begin_frame; create the volume before the sender and recreate one you closed
QAR_STATUS_RENDERING_PRODUCER_STREAM_IS_CLOSEDThe sender's stream was closed for goodDestroy the sender; create a new one if the target is still in the peer list, without waiting for a peer-list update, after a back-off (When a Target Restarts)

Checking results​

Every fallible call reports success or failure the same way — inspect it rather than assuming success. The status code is what you branch on to tell a normal-flow condition (above) apart from a real error:

QarOnboardInit init = qar_onboard_init_default();
QarOnboardLocalAppExt local = qar_onboard_local_app_ext_default();
init.header.next = &local.header;
QarOnboardingId unused = qar_onboarding_id_default();
QarResult r = qar_runtime_onboard(runtime, &init, NULL, NULL, NULL, &unused, &session);
if (qar_result_is_success(r))
{
/* use session */
}
else if (qar_result_has_code(r, QAR_STATUS_ONBOARDING_APPROVAL_TIMEOUT))
{
/* nobody answered the prompt in QAROS: ask the user to start the app again */
}
else
{
qar_result_log_if_error(r); /* log status code + message */
}
info

The C# snippet above is illustrative — it tracks the Quaternar.Qaros binding surface but is not yet compiled from a published sample project.

Frequent integration mistakes​

  • Forgetting to persist the onboarding ID after code pairing. The ID returned by onboarding is the only key to the persisted identity. Losing it means pairing again. A local app and a co-process store nothing: their onboarding ID is zero.
  • Calling API functions from inside callbacks. Result/progress/update callbacks run on library threads; blocking API calls from there can deadlock. Queue to your own thread.
  • Zero-initializing init structs by hand. Always use qar_*_default() — it stamps header.type, without which calls fail.
  • Mismatched projection metadata. If streamed content "swims" or sits at the wrong depth, your show_frame near/far or per-view poses don't match what you actually rendered with. This is a metadata bug, not a network problem — see Rendering Streams.
  • Confusing panel and volume pose conventions. Panel pose = midpoint of the top edge; volume pose = cuboid center.
  • A depth format the sender cannot take. qar_render_sender_create fails with QAR_STATUS_RENDERING_PRODUCER_DEPTH_FORMAT_NOT_SUPPORTED when the graphics API refuses the format (D24S8 and D32S8 on CPU and D3D11) or the GPU cannot create it. Use QAR_PIXEL_FORMAT_D32_FLOAT, which works everywhere — see Choosing a depth format.
  • Destroying the runtime while async operations run. Cancel (and wait for the exactly-once result callback) before teardown.

Where to look​

  • Library logs — enable with QarLibraryInit.enable_console_logging and/or log_folder_path.
  • Hub-side logs — the QAROS Hub log folder on the Hub machine.
  • Warping monitor — the visualizer's timing view shows per-volume stream latency/FPS/jitter, which quickly separates "my app renders slowly" from "the network is dropping frames".

Crash dumps​

If your process crashes while the C API is loaded, it writes <time>_<process>_<pid>.crash.txt and a .dmp into crashes/ under the log_folder_path you passed to qar_library_init (otherwise %TEMP%\quaternar\crashes). Hub processes write theirs next to their logs (see Running the Hub). Attach both files and the logs beside them to a bug report.

For a GPU crash or device loss, set QAR_VULKAN_CRASH_DIAGNOSTIC=1 before starting the processes. With the Vulkan SDK's crash diagnostic layer installed, QAROS loads it and it names the command the GPU was executing (output folder: the layer's CDL_OUTPUT_PATH); without the layer the variable does nothing. It is off by default because it records every command buffer.

Getting help​

  • GitHub Issues on this repository for bugs and feature requests.
  • GitHub Discussions for integration questions.