Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOS] App crashes during onboarding #19787

Open
VolodLytvynenko opened this issue Apr 24, 2024 · 13 comments
Open

[IOS] App crashes during onboarding #19787

VolodLytvynenko opened this issue Apr 24, 2024 · 13 comments

Comments

@VolodLytvynenko
Copy link
Contributor

VolodLytvynenko commented Apr 24, 2024

Steps:

  1. Onboard after app installing

Actual result:

App is crashed

crash1.mp4

Additional info:

No matter if some permissions, such as notifications and local network access, are allowed or not allowed during onboarding, the app crashes in all cases.

ENV:

  • IOS
  • Nightly [24 Apr 2024]

Devices:

  • iPhone 11 Pro Max, IOS 17

Logs

logs (9).zip

@VolodLytvynenko VolodLytvynenko changed the title [IOS] App crashes during quick onboarding [IOS] App crashes during onboarding Apr 24, 2024
@pavloburykh
Copy link
Contributor

UPDATE:

This issue is most likely OS specific (or device). I am not reproducing on my iPhoneX, IOS 16.7.7

@mariia-skrypnyk
Copy link

Have this issue on nightly 07/05 on my iPhone 13 (17.3.1)

@cammellos cammellos added this to the 2.29.0 Beta milestone May 8, 2024
@jo-mut
Copy link
Member

jo-mut commented May 8, 2024

I have not been able to reproduce it on iPhone 12 Pro(17.4.1) , iPhone 11 Pro(17.2) and iPhone 13 (17.2)

but something that maybe unrelated but referenced in the issue description, I noticed that sometimes the app still asks for local network access permission even when permission has been granted, its possible that the crash maybe related. I will log the issue separately if it is indeed something needing some fixing

@yqrashawn
Copy link
Member

can't reproduce on iphone 11 pro, 17.4.1

@yevh-berdnyk
Copy link
Contributor

Can't reproduce on iPhone SE 2020 and 2022, versions 13.7, 15.7, 16.7. Neither on iPhone 14 pro with iOS 17.2.1

@yqrashawn
Copy link
Member

yqrashawn commented May 10, 2024

Just reproduced on my device

according to https://suelan.github.io/2021/03/05/20210305-crash-ate-bad-food/ https://developer.apple.com/documentation/xcode/sigkill and crash report on my device
the app is killed by watch dog because the main thread got blocked for too long.
Need more time to look into the stack trace.

{
  "exception": {
    "codes": "0x0000000000000000, 0x0000000000000000",
    "rawCodes": [
      0,
      0
    ],
    "type": "EXC_CRASH",
    "signal": "SIGKILL"
  },
  "termination": {
    "code": 2343432205,
    "flags": 6,
    "namespace": "FRONTBOARD",
    "reasons": [
      "<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: app<im.status.ethereum.debug(C4641303-92AF-4C80-9AE4-E1C3F7E097C0)>:10192 exhausted real (wall clock) time allowance of 19.45 seconds",
      "ProcessVisibility: Foreground",
      "ProcessState: Running",
      "WatchdogEvent: scene-create",
      "WatchdogVisibility: Foreground",
      "WatchdogCPUStatistics: (",
      "\"Elapsed total CPU time (seconds): 24.970 (user 24.970, system 0.000), 24% CPU\",",
      "\"Elapsed application CPU time (seconds): 0.973, 1% CPU\"",
      ") reportType:CrashLog maxTerminationResistance:Interactive>"
    ]
  }
}

From https://developer.apple.com/documentation/xcode/addressing-watchdog-terminations

When scene-create appears in the Termination Description, the app didn’t render the first frame of its UI to the screen within the allowed wall clock time. If scene-update appears in the Termination Description instead of scene-create, the app didn’t update its UI quick enough because the main thread is too busy.

@yqrashawn
Copy link
Member

Unfortunately, the crash report above is not the right one, it's the crash caused by splash screen (only happens on first launch after installation in debug build)
And the report for the one I reproduced last Friday is gone.

Try to reproduce this again

@yqrashawn
Copy link
Member

yqrashawn commented May 14, 2024

Hi @status-im/mobile-qa, can you help me get the crash report.

After app crash, you can find the crash log based on app name and crash date time
After app crash, go to Settings -> Privacy & Security -> Analytics & Improvements -> Analytics Data, in the list, there should be a crash report named "StatusIm(or StatusPR)-datetime", you can download the report by airdrop

RPReplay_Final1715667747.MP4

@qoqobolo
Copy link
Contributor

Hi @yqrashawn , I just reproduced the crash, but there is no report you're describing on my device for some reason.
I'm trying a nightly build, however, the only Status file I see in reports is Status PR dated May 9th.

Do you know how do I get a fresh nightly report?

Screenshot 2024-05-14 at 10 11 23 Screenshot 2024-05-14 at 10 11 59

@mariia-skrypnyk
Copy link

Hey @yqrashawn !

I had this issue 5/5 times but now I do not see it on nightly and on PR's.

If somehow I'll catch it today I'll let you know!
Or I can try some old PR builds if it works for you.

@yqrashawn
Copy link
Member

Thanks @qoqobolo @mariia-skrypnyk

but there is no report you're describing on my device for some reason

this might explain why I used the wrong crash report. The crash might not generate a report at all.
Maybe iOS doesn't think it's a crash? I'll explore further on this point.

@siddarthkay
Copy link
Contributor

siddarthkay commented May 15, 2024

@qoqobolo and @mariia-skrypnyk : can you pls check if builds from this PR fix the crash -> #20026
Thank you

@qoqobolo
Copy link
Contributor

@yqrashawn @siddarthkay as I mentioned on Discord, my iPhone SE does not crash in #20026
We'll close the issue once we're 100% sure it's not reproducible anymore
@yqrashawn thanks for trying to figure it out!

@yqrashawn yqrashawn removed their assignment May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

9 participants