Logged a crash fix where iOS couldn't find the stack info

crash prompt

2023-06-28 21:14:46.962456+0800 -[UIDynamicCatalogColor length]: unrecognized selector sent to instance 0x6000073292c0

The crash is shown in the figure below
Please add a picture description

Please add a picture description

Idea, since we can’t find it through the stack information of the call, try to view the detailed information of the object through the memory address of the crashed object.
As shown in the figure, click the icon to view the memory distribution
Please add a picture description

Enter the memory address of the crash object in the input box on the left to locate the crash object
Please add a picture description

Find a button along the holding relationship chain, as shown in the figure, click the expansion symbol, as shown in the red box, to view the upper level of the relationship chain
Please add a picture description

The expanded relationship chain is shown in the figure

Please add a picture description

We can know that the object we crashed is in a certain cell and is held by the _shareButton of the cell,
so that we can locate the problem in the shareButon in PaperHotCommentCell

Then combined with the crash information
[UIDynamicCatalogColor length]: unrecognized selector sent to instance 0x6000073292c0

It is to take the length of a color, so we can guess that it is set to set the title to the color

The last modification is as follows
Please add a picture description

Guess you like

Origin blog.csdn.net/LIUXIAOXIAOBO/article/details/131445147