Mobile NaN Camera CFrame

My mobile players are experiencing a bug where the Camera’s CFrame randomly becomes NaN causing the player to disappear for a short duration and come back with Network Ownership issues

Videos of it happening :


  • This bug is obscure, there’s no way to 100% reproduce it and only affects mobile players.

  • The only way you can recreate the behavior of this bug is to set camera properties (such as Focus or CFrame) to NaN.

  • The game has a script that changes CameraOffset but was disabled for the videos above. It happens even with the default camera scripts and still happens with an edited version that makes sure the CFrame or Focus isnt NaN.

game link : https://www.roblox.com/games/10449761463/The-Strongest-Battlegrounds

Found someone to take a look! We’ll get back to you as soon as we have an update.

2 Likes

Hi there! I’m having trouble reproducing the bug. Could you provide more details on:

  • How often are you seeing this issue?
  • The repro videos are both in combat. Do you have to be fighting for it to show up?
  • Can you elaborate on the Network Ownership issues you’re seeing?
  • I suspect it might be an issue with the avatar/camera subject because of the network ownership. Can you go over any avatar changes you’re doing?
  • it happens very often amongst mobile players
  • no, even while walking it could happen (or getting close to players)
  • when the character flickers, you are slowed down for a few seconds and movement feels janky
  • we do no major changes to the avatar other than when you first spawn (just loading humanoid descriptions) could you elaborate more?
1 Like

Thanks! We got a repro on a different device. Do you know if it shows up on the studio emulator? And would you be able to share a repro file? You can send it privately and we’ll be sure not to share and delete afterward.

I suspected it might have something to do with the camera subject, usually the humanoid, getting invalidated since it’s the camera focus cframe with the issue and not the camera cframe, but it’s difficult to debug.

I’ve personally never had it happen on studio emulator. I would send a repro file if I could but there is genuinely no way to reproduce it 100% I tried taking parts of certain scripts to see if I could but it just doesn’t work.

Are you willing to share a game file? If the issue originates in lua, it’s a lot easier to debug with a file.

will there be a chance the place file gets leaked?

actually let me try to get a repro file once again. ill get back to you in a bit

2 Likes

I found out the cause and sent an explanation in DMs

1 Like

related or not but, i was playing wtrb by @Maximum_ADHD but when i go to the spawn area, i got sent to nan studs away from spawn

this time i had to wait for the character to respawn