Getting a crash on my cmp/ios app intermitently (s...
# compose
c
Getting a crash on my cmp/ios app intermitently (seemingly after putting my app in the background and waiting a few minutes). I can't grab a stacktrace because the issue happens on launch, but I finally got sentry hooked up and I was able to grab an error message. Does anyone on the CMP team know if this is coming from CMP or androidx? I feel like the emoji in the error/stacktrace should be a giveaway? I'm using latest
composeMultiplatform = "1.8.1"
but this was happening in 1.8.0 and previous versions. I was just never able to grab a stacktrace.
👀 1
v
Hey there! Could you please tell me what happens on a screen? What are your app’s view hierarchy? Does it contain interop view, text input views? Is that a first screen after launch or some random place?
c
It happens right at launch so nothing even gets drawn on the screen. It's a pretty simple layout and it doesn't happen every time. It seems to happen only after backgrounding the app and then coming back in a few seconds or minutes. No interop views... there are some text input views yes.
I'm trying to slowly remove parts of my app to see at what point it happens. But I can probably DM you some code. Super frustrating at this point because it's my top crash 😃
🥲 1
v
I’ll try to reproduce that on a clear project firstly. Could you please also tell me how often you get this crash?
c
I can repro pretty easily. Just need to background my app on iOS specifically. and then click on the icon in a few seconds or minutes. Sometimes it can be a bit tougher to repro, but if I let it sit there and come back it'll likely happen.