Juanpe / Juanpe/SkeletonView

@objc UIView.skeletonLayoutSubviews() EXC_BAD_ACCESS (KERN_PROTECTION_FAILURE)

Open
#533 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
12.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Description

I've been seeing crash reports from Firebase related to SkeletonView.

What type of issue is this? (place an x in one of the [ ])
  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • discussion
Requirements (place an x in each of the [ ])
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

SkeletonView Environment:

SkeletonView version:
1.29.2
Xcode version:
14.1
Swift version:
5.2

Steps to reproduce:

I wasn't able to reproduce myself.

Expected result:

*Should not crash the app.

Actual result:

*It crashes the app.

Attachments:

Crashed: com.apple.main-thread
0 libswiftCore.dylib 0x41ffdc swift_getInitializedObjCClass + 4
1 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
2 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
3 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
4 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
5 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
6 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
7 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
8 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
9 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
10 SEA 0x15a8400 @objc UIView.skeletonLayoutSubviews() + 2331228 (:2331228)
11 PrintKitUI 0x2580 -[UIPrinterSearchingViewAccessibility layoutSubviews] + 56
12 UIKitCore 0x4860 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
13 QuartzCore 0x9b0c CA::Layer::layout_if_needed(CA::Transaction*) + 500
14 QuartzCore 0x1d1c0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
15 QuartzCore 0x2e534 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 444
16 QuartzCore 0x63930 CA::Transaction::commit() + 652
17 QuartzCore 0x4cbb4 CA::Transaction::flush_as_runloop_observer(bool) + 88
18 CoreFoundation 0x91d40 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 36
19 CoreFoundation 0x1a290 __CFRunLoopDoObservers + 532
20 CoreFoundation 0x7bc60 __CFRunLoopRun + 1048
21 CoreFoundation 0x80ec0 CFRunLoopRunSpecific + 612
22 GraphicsServices 0x1368 GSEventRunModal + 164
23 UIKitCore 0x3a186c -[UIApplication _run] + 888
24 UIKitCore 0x3a14d0 UIApplicationMain + 340
25 SEA 0x8284 main + 25 (FatAppDelegate.swift:25)
26 ??? 0x1e21a2960 (Missing)

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 by tracing the @objc UIView.skeletonLayoutSubviews() entry point against the supplied EXC_BAD_ACCESS stack trace, using the reported SkeletonView, Xcode, and Swift versions as context. Done means the failure is reproduced or isolated and the app no longer crashes in the reported layout path.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.