wordpress-mobile / wordpress-mobile/WordPress-iOS

Crash when showing privacy screen

Open
#21,944 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Crash App Settings
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

Expected behavior

The app shouldn't crash.

Actual behavior

There are Sentry events (2 in 23.4, 1 in 23.5 so far) for a crash when opening the privacy screen, but I couldn't reproduce it.

Steps to reproduce the behavior

I couldn't reproduce this when navigating to Me > App Settings > Privacy Settings.

Tested on iPhone 11, iOS 17.1, Jetpack iOS 23.5
Additional info

Based on the error message UIViewController is missing its initial trait collection populated during initialization, I thought it might be similar to https://github.com/wordpress-mobile/WordPress-iOS/pull/17228 (see https://stackoverflow.com/questions/69092599/xcode-13-beta-5-error-uiviewcontroller-is-missing-its-initial-trait-collection), but there's no Obj-C code in the stack trace so this might be different.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Me > App Settings > Privacy Settings navigation and review the Sentry events and stack traces for the UIViewController trait-collection error. Compare the behavior with WordPress-iOS#17228 and its linked Stack Overflow discussion; done means identifying and fixing the crash, with a regression test if the relevant entry point becomes clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.