FLEXTool / FLEXTool/FLEX

debugDescription in flex_observers leads to crash

Open
#661 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Objective-C
Stars
14.6k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

### Environment
- Platform+version: **iOS 16.2** (Simulator)
- FLEX version: **5.22.10**

### Bug Report

- When I click `NSNotificationCenter.defaultCenter`, it crashes about once every two times.
image

- The error point was `NSString *debug = self.debugDescription;` in `flex_observers` so when I changed it to `NSString *debug = @"";`, I checked that there was no error.

![image](https://user-images.githubusercontent.com/20410193/225884608-5ac75ecb-67c4-454c-bea3-fcab3fc76e5e.png)

- This issue can also be reproduced when FLEX is applied in Apple's official example project [Implementing Modern Collection Views](https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/implementing_modern_collection_views)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.