Protobuf Error Crash

We are developing a mixed reality app for Vision Pro using Reality Composer Pro, but we're consistently encountering a Protobuf-related crash whenever we enter the immersive space. Our Reality Composer Pro package is quite complex, with numerous objects. Could the complexity of the package be contributing to the issue, or could something else be at play? No errors are being flagged in the code or Reality Composer itself. Here’s the error log:

[libprotobuf FATAL /Library/Caches/com.apple.xbs/Sources/REKit/ThirdParty/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc:276] CHECK failed: (count) >= (0): libc++abi: terminating due to uncaught exception of type google::protobuf::FatalException: CHECK failed: (count) >= (0):

Any insight on what might be causing this would be appreciated.

Hello @jkeraa

This behavior is unexpected. Please ensure Xcode and visionOS are up to date. If the behavior persists, I'd appreciate it you filed a bug report (via feedback assistant) with a focused example that reproduces the issue. Aside from that, I can offer general troubleshooting advice. If you haven't already, try removing portions of the Reality Composer Pro scene (start higher up the tree then work your way down) to see if you can zero in on the culprit. This is likely a bug, but finding the proximate cause may help you create a work around.

Did you ever get find a solution? I'm seeing the same thing. I was loading USDZ files dynamically via ModelEntity.loadModel(named: String) calls but started moving all to Reality Composer Pro for faster loading. After successfully moving about 80 percent of the models, I started seeing the same error. My different models were being loaded for different purposes and in my case it's a specific use case / type that is creating the error. I have removed all of the original loading calls and still seeing the error. This lead me to think it is something that I am doing with the model after it is loaded that differentiates these from the rest, but I am having a difficult time tracking it down.

I was really hoping to come back to this thread to find your solution for a hint pointing me in the right direction.

Hi I also have the same problem. While inserting an audio file and applying it to the timeline in Reality Composer Pro, it worked fine at first, but at some point the build stopped. The problem is that if you remove audio files and audio-related components from Root, it will be rebuilt.

Protobuf Error Crash
 
 
Q