Development Environment:
Unity 2021.3.21f1c1
NR SDK 2.1.1 (also tested on 1.10.2)
XReal light glasses
Samsung S22
What I’m doing is feeding the camera frame stream to my cloud services (just add one line of code in NRRGBCamTextureYUV.LoadYUVTexture
). It works well at the beginning minutes, but will suddenly crash (usually with lower frame rates).
Here are the logs right before crashing.
I see some internal logs (events) with status code (error code), but I don’t know the exact meaning of these information. It’s weird it said the glasses will go to sleep (after some events) and then it is going to kill the application.
logs.log
2024/01/05 21:26:35.962 25535 25665 Warn XREAL [2024-01-05 21:26:35.962] [25690] [WARN] [NRSDK] Glasses Event! D:false Q:false S:true F:true
2024/01/05 21:26:35.962 25535 25665 Warn XREAL [2024-01-05 21:26:35.962] [25690] [WARN] [NRSDK] Glasses will goto sleep! on 0
2024/01/05 21:26:35.964 24339 24735 Warn XREAL [2024-01-05 21:26:35.963] [24737] [WARN] [NRService] Device status change:10,1
2024/01/05 21:26:35.964 24339 24735 Warn XREAL [2024-01-05 21:26:35.963] [24737] [WARN] [NRService] Glasses Event! D:false Q:false S:true F:false
2024/01/05 21:26:35.964 24339 24737 Debug LogControl (NRServiceControl.java:37)#onGlassesControlMsg | [status=, 10]
2024/01/05 21:26:35.966 25535 25690 Info Unity [Info][NRDevice] OnGlassesDisconnectEvent: reason=NOTIFY_GOTO_SLEEP, running=True
2024/01/05 21:26:35.966 24339 24737 Warn nebula_GlassSdkManager sdk callback onEvent: 10
2024/01/05 21:26:35.967 25535 25563 Info Unity [Info][NativeTrack] GetFramePresentHeadPose: trackReasonRst=Success, lost_tracking_reason=NONE
2024/01/05 21:26:35.967 25535 25665 Warn XREAL [2024-01-05 21:26:35.967] [25671] [WARN] [NRSDK] Device status change:10,1
2024/01/05 21:26:35.967 25535 25665 Warn XREAL [2024-01-05 21:26:35.967] [25671] [WARN] [NRSDK] Glasses Event! D:false Q:false S:true F:false
This file has been truncated. show original
And the full log before (end with the start of the last file): NRSDK 2.1.1 Crash logs - 2 · GitHub
There are lots of logs complaining the low camera refequenncy:
[WARN] [NRSDK] Camera frequency is 23Hz < 28Hz, prev ts = 130154, curr ts = 131154
And nothing eles suspicious
Thanks for your log, we will check your log file ASAP.