Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug when posting code block

Discussion in 'Meta-forum Discussion' started by KayH, Aug 8, 2023.

  1. KayH

    KayH

    Joined:
    Jan 6, 2017
    Posts:
    107
    Code (csharp):
    1. 0001.01.01 00:00:00.000 -1 -1 Info  --------- beginning of main
    2. 2023.07.31 13:38:56.810 16598 16615 Info VrRuntimeClient RuntimeIPC: ServiceConnected: SharedMemoryDebug: publicReadOnly SharedMemorySize=8872 () sizeof(sharedMemoryPublicReadOnly)=8896
    3. 2023.07.31 13:38:56.811 16598 16615 Info VrRuntimeClient RuntimeIPC: ServiceConnected: SharedMemoryDebug: privateReadWrite SharedMemorySize=40800 () sizeof(privateSharedMemorySize)=8
    4. 2023.07.31 13:38:56.811 16598 16615 Info VrRuntimeClient nativeRuntimeServiceConnected: SharedMemoryDebug: publicReadOnlyFd=116, privateReadWriteFd=117 ()
    5. 2023.07.31 13:38:56.811 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] EnsureServerConnection: SUCCESS. Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.systemdriver:com.oculus.vrruntimeservice (RuntimeServiceServer)
    6. 2023.07.31 13:38:56.811 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] ConnectToServer: SUCCESS: Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.systemdriver:com.oculus.vrruntimeservice (RuntimeServiceServer)
    7. 2023.07.31 13:38:56.813 16598 16615 Info VrRuntimeClient g_RuntimeServiceSDKClient.InitClient SUCCESS. Version: 4.0, Custom: 1.0
    8. 2023.07.31 13:38:56.813 16598 16615 Info RuntimeIPCClientMgr [RUNTIMEIPC] GetClientOptions
    9. 2023.07.31 13:38:56.813 16598 16615 Info OpenXR xrCreateSession: Connected to VrRuntimeService after 0.018103s
    10. 2023.07.31 13:38:56.822 16598 16615 Info VrRuntimeClient VrRuntimeClient: Init
    11. 2023.07.31 13:38:56.822 16598 16615 Info PTKService PTKServiceClient Init
    12. 2023.07.31 13:38:56.825 16598 16615 Info ClientProcessConnector [RUNTIMEIPC] GetProcessConnection: com.oculus.vrshell:com.oculus.vrshell:Overlay
    13. 2023.07.31 13:38:56.826 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] Event buffer size (client): 8192
    14. 2023.07.31 13:38:56.826 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] TryToGetIPCResourcesFromServer: RPC_CONNECTOR_CONNECT_TO_SERVER SUCCESS: Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.vrshell:com.oculus.vrshell:Overlay (ptkserviceserver)
    15. 2023.07.31 13:38:56.827 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] EnsureServerConnection: SUCCESS. Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.vrshell:com.oculus.vrshell:Overlay (ptkserviceserver)
    16. 2023.07.31 13:38:56.827 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] ConnectToServer: SUCCESS: Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.vrshell:com.oculus.vrshell:Overlay (ptkserviceserver)
    17. 2023.07.31 13:38:56.827 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] InitServerStateBuffer: SUCCESS. 0, Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.vrshell:com.oculus.vrshell:Overlay (ptkserviceserver)
    18. 2023.07.31 13:38:56.828 16598 16615 Verbose OVR::Capture Failed to open trace_marker ATrace file!
    19. 2023.07.31 13:38:56.829 16598 16615 Info VrRuntimeClient OSSDKTRACKING calculating secure tracking
    20. 2023.07.31 13:38:56.829 16598 16615 Info VrRuntimeClient OSSDKTRACKING secure tracking is 0
    21. 2023.07.31 13:38:56.829 16598 16615 Info AudioCapture AudioCapture::Init
    22. 2023.07.31 13:38:56.829 16598 16615 Info AudioCapture AudioCapture::Init -> Initializing audio capture using direct OS Callbacks
    23. 2023.07.31 13:38:56.829 16598 16615 Info AudioCapture AudioCapture::Init COMPLETE
    24. 2023.07.31 13:38:56.829 16598 16615 Warn Foveation Forcing on dynamic foveation
    25. 2023.07.31 13:38:56.830 16598 16615 Info Foveation Vulkan foveation tile turn off enabled: 1
    26. 2023.07.31 13:38:56.833 16598 16615 Info ClientProcessConnector [RUNTIMEIPC] GetProcessConnection: com.oculus.guardian:com.oculus.vrguardianservice
    27. 2023.07.31 13:38:56.836 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] Event buffer size (client): 8192
    28. 2023.07.31 13:38:56.837 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] TryToGetIPCResourcesFromServer: RPC_CONNECTOR_CONNECT_TO_SERVER SUCCESS: Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.guardian:com.oculus.vrguardianservice (guardianserver)
    29. 2023.07.31 13:38:56.837 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] EnsureServerConnection: SUCCESS. Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.guardian:com.oculus.vrguardianservice (guardianserver)
    30. 2023.07.31 13:38:56.837 16598 16615 Info RuntimeIPCClient [RUNTIMEIPC] ConnectToServer: SUCCESS: Client: com.DefaultCompany.qs:com.DefaultCompany.qs:16598, Server: com.oculus.guardian:com.oculus.vrguardianservice (guardianserver)
    31. 2023.07.31 13:38:56.842 16598 16615 Info VrGuardianClient g_GuardianSDKClient connected.
    32. 2023.07.31 13:38:56.849 16598 16615 Info VrRuntimeClient Is120HzSupported: 1
    33. 2023.07.31 13:38:56.849 16598 16615 Info FaceEyeTrackingClientManager [FaceEyeTrackingManager] Initializing FaceEyeTrackingClientManager...
    34. 2023.07.31 13:38:56.849 16598 16615 Info LogTimer CPUTIME: VrRuntimeClient_Init took 27.6051 ms
    35. 2023.07.31 13:38:56.850 16598 16615 Info Distortion Initializing Mesh Decenter Correction
    36. 2023.07.31 13:38:56.850 16598 16615 Info Distortion SetLensPositions - iad=0.0635, left offset=-0.00308466,-4.34063e-05, right offset=0.00288771,-7.72867e-05
    37. 2023.07.31 13:38:56.850 16598 16615 Info Distortion Initializing Mesh Decenter Correction
    38. 2023.07.31 13:38:56.851 16598 16615 Info Distortion SetLensPositions - iad=0.0635, left offset=-0.00308466,-4.34063e-05, right offset=0.00288771,-7.72867e-05
    39. 2023.07.31 13:38:56.851 16598 16615 Info VrRuntimeClient SetPhaseSyncMode 1
    40. 2023.07.31 13:38:56.851 16598 16615 Info VrRuntimeClient SetPhaseSyncMode 1
    41. 2023.07.31 13:38:56.851 16598 16615 Info OpenXR PhaseSync Mode: 1
    42. 2023.07.31 13:38:56.852 16598 16615 Info ClientInputSettings SYSTEMBUTTONSPACE GKS freeze '1'
    43. 2023.07.31 13:38:56.852 16598 16615 Info ClientInputSettings SYSTEMBUTTONSPACE 'com.DefaultCompany.qs' Freeze input '1'#3159629941
    44. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ] Engine: 2021.3.26f1 #36807681
    45. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ]
    46. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ] ==== OpenXR Runtime Info ====
    47. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ]
    48. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ] Features requested to be enabled: (2)
    49. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ]   Oculus Quest Support: Version=1.0.0, Company="Unity", Extensions="XR_OCULUS_android_initialize_loader"
    50. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ]   Oculus Touch Controller Profile: Version=0.0.1, Company="Unity"
    51. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ]
    52. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ] Requested feature extensions not supported by runtime: (1)
    53. 2023.07.31 13:38:56.971 16598 16615 Info Unity [XR] [532150204784] [13:38:56.971][Info   ]   XR_OCULUS_android_initialize_loader: Feature="Oculus Quest Support": Version=1.0.0, Company="Unity""Oculus Quest"#3159629941
    54. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ] Engine: 2021.3.26f1 #36807681
    55. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ]
    56. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ] ==== OpenXR Runtime Info ====
    57. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ]
    58. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ] Features requested to be enabled: (2)
    59. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ]   Oculus Quest Support: Version=1.0.0, Company="Unity", Extensions="XR_OCULUS_android_initialize_loader"
    60. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ]   Oculus Touch Controller Profile: Version=0.0.1, Company="Unity"
    61. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ]
    62. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ] Requested feature extensions not supported by runtime: (1)
    63. 2023.07.31 13:38:59.156 16598 16615 Info Unity [XR] [532150204784] [13:38:59.156][Info   ]   XR_OCULUS_android_initialize_loader: Feature="Oculus Quest Support": Version=1.0.0, Company="Unity""Oculus Quest", VendorId=10291
    64. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ] System Graphics Properties: MaxWidth=8192, MaxHeight=8192, MaxLayers=32
    65. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ] System Tracking Properties: OrientationTracking=True, PositionTracking=True
    66. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]
    67. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ] Available View Configuration Types: (1)
    68. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]   XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO (Selected): FovMutable=True
    69. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]     [0]: Recommended: Width=1440, Height=1584, SampleCount=1
    70. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]     [0]:     Maximum: Width=8192, Height=8192, SampleCount=1
    71. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]     [1]: Recommended: Width=1440, Height=1584, SampleCount=1
    72. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]     [1]:     Maximum: Width=8192, Height=8192, SampleCount=1
    73. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]
    74. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ] Skip Present To Main Screen: Yes
    75. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]
    76. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ] Available Environment Blend Modes: (1)
    77. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]   XR_ENVIRONMENT_BLEND_MODE_OPAQUE (Selected)
    78. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ]
    79. 2023.07.31 13:38:59.159 16598 16615 Info Unity [XR] [532150204784] [13:38:59.159][Info   ] System Properties: Name="Oculus Quest"'B8G8R8A8_SRGB' is not supported. RenderTexture::GetTemporary fallbacks to R8G8B8A8_SRGB format on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
    80. 2023.07.31 13:39:01.371 16598 16615 Warn Unity UnityEngine.RenderTexture:GetCompatibleFormat(RenderTextureFormat, RenderTextureReadWrite)
    81. 2023.07.31 13:39:01.371 16598 16615 Warn Unity UnityEngine.RenderTexture:Initialize(Int32, Int32, Int32, RenderTextureFormat, RenderTextureReadWrite, Int32)
    82. 2023.07.31 13:39:01.371 16598 16615 Warn Unity CameraStreamer:OnEnable()
    83. 2023.07.31 13:39:01.371 16598 16615 Warn Unity
    84. 2023.07.31 13:39:01.372 16598 16615 Info Unity === Start SignalingConnect
    85. 2023.07.31 13:39:01.372 16598 16615 Info Unity CameraStreamer:OnEnable()
    86. 2023.07.31 13:39:01.372 16598 16615 Info Unity
    87. 2023.07.31 13:39:01.372 16598 16615 Info Unity === ConnectSignaling > wss://~
    88.  
    This code block breaks off after 87 lines for me. You can reply to see that it is actually much longer (813 lines).

    I guess maybe the block is simply too long. In that case, an error message instead of just this behavior would be preferable.

    ufBug.jpg ufBug1.jpg
     
    Last edited: Aug 8, 2023
  2. razamgar

    razamgar

    Joined:
    Apr 7, 2020
    Posts:
    14
    I've been asking for better code block rendering here, but the only thing I got was censoring...
     
  3. osmangormus

    osmangormus

    Unity Technologies

    Joined:
    Jun 8, 2018
    Posts:
    27
    Hi @KayH, yes we are aware of the current limitations of the forum, and we are actively working on improving the user-experience. Please stay tuned.

    Meanwhile, for this post specifically, I think the problem is the content, and it is not really suitable for BBCode code snippets.

    Look at the line 87 which ends with
    ConnectSignaling > wss://~
    . If you check your original code, you'll find that line at line 695 actually. I think the content is causing the BBCode wrappers confuse, and eventually ending up mangling it. I'm suspecting the square brackets...

    Also sharing ~800 line of log entries in a code block may not be the best experience for other users reading it. It is simply too long.

    May I suggest uploading that log as a TXT file? Or if you have multiple files to share, perhaps uploading them in a ZIP file could be an option. Or if you have access to GitHub or a similar repository, perhaps you can also share them as Gists. These are simply the alternatives.
     
  4. KayH

    KayH

    Joined:
    Jan 6, 2017
    Posts:
    107
    Disagree. It is most suited actually. Since the lines are numbered, they are easy to reference and find.

    This is interesting because I was really annoyed with how coincidentally it would cut off just before an error message I needed to reference.

    So normally it wouldn't have been after 87 lines. It didn't just cut off right before the error, but also enough before to have this number of lines.

    Now I'm all the more interested in what causes a bug like this.
    But the code block automatically formats to a small inline frame, a preview in a sense. Users reading have no problem scrolling past if they aren't interested.
    That just adds friction. And since this bug is so rare (only occurrence I have ever seen), not really necessary.

    I mean, when I do upload files, mostly they are screenshots and I embed those in the post too.