rive-app / rive-ios

iOS runtime for Rive
MIT License
484 stars 55 forks source link

iOS Skia Bug #228

Closed duncandoit closed 1 year ago

duncandoit commented 1 year ago

Antoine — Today at 10:42 AM Hi,

I'm using Rive into an iOS app to display some animations, and some users have reported the animations aren't showing up (iPhone 11 Pro Max, iPhone 13 Mini, both on iOS 15.6.1 so far). I don't have direct access to the devices, but I've been able to run some Testflight on them to track down what's going on. On those devices, RiveRendererView drawRect:(CGRect)rect never invokes drawRive, it returns early because surface (returned by SkMtkViewToSurface) is null. `SkMtkViewToSurface seems to execute correctly up to SkSurface::MakeFromMTKView, which returns a null pointer. I haven't been able to debug further than that yet. The weird thing is I am able to play other Rive animations on these devices

I have tried to replicate the issue on an iPhone 13 Pro Max (iOS 16.0), an iPhone 12 Pro Max (iOS 15.6.1), an iPhone Xs (15.6.1), an iPhone X (15.6.1) and an iPhone 6s (iOS 15.7), but the animation plays correctly on those. No issue either on simulators (iOS 15.5 and iOS 16.0).

Is this a known issue? I'd love to help to resolve this, as it's impacting a critical part of my app! Thanks!