googlevr / cardboard

Open source Cardboard SDK and samples
Other
1.49k stars 256 forks source link

GLES3 1.4 crashes on iOS (Unity 2019 LTS) #175

Closed andypoly closed 3 years ago

andypoly commented 3 years ago

I thought GLES3 support may be a saving update until metal arrives, but it leads to crashes if going in & out of VR mode on an iPhone iOS 14 - crashes in Unity\GlesHelper.mm\DestroySystemRenderingSurfaceGLES not so surprising given it is deprecated...

guneyozsan commented 3 years ago

Do you think if this is related with app restarting itself when switching VR mode on and off mentioned here: https://github.com/googlevr/cardboard/issues/170#issuecomment-744077430

andypoly commented 3 years ago

I think a bit different but clearly toggling VR leads to issues

jballoffet commented 3 years ago

Thanks for reporting this issue. Unfortunately, I cannot repro it locally on my devices (iOS 14.0 on an iPhone 8 Plus and iOS 13.5.1 on an iPhone SE (Gen 2)). Could you please share a simple repro project with us where the issue is shown and the steps required to reproduce it?

andypoly commented 3 years ago

Thanks for trying, unfortunately I don't have a simple repro & have moved on from this until a metal solution is available. I guess GLES3 is always a risk when Unity has deprecated it, so hard to know where the fault lies

dletozeun commented 3 years ago

I confirm that it is unstable on iOS (tested on a iPhone 12 Pro and 6s on latest iOS 14). It crashes from time to time in GLES calls turning on/off VR. It might be a timing / concurrency issue. I can't easily share a simple repro case as it happens in our app: https://apps.apple.com/fr/app/handbook-for-nurses/id1483756186 but I'll try to gather as much data as possible next time I see it. Metal support would definitely be great!

jballoffet commented 3 years ago

Closing this due to our inability to reproduce the issue and the fact that Cardboard now supports Metal as the rendering API. Furthermore, perhaps our releases since the report have fixed this issue.

If this is still happening for you, please reopen this issue and share a repro project along with steps that show the issue.