Skip to content

Crash on PagingViewController.init line 317 (iOS 12.5.7) #736

@ctknlp00

Description

@ctknlp00

Hi,

I've update Parchment(spm) version from 3.2.1 to 4.1.0 and it's crashing on PagingViewController.init line 317:
collectionViewLayout = createLayout(layout: options.menuLayoutClass.self)

This is the error message displaying on that line:

Thread 1: signal SIGABRT
An abort signal terminated the process. Such crashes often happen because of an uncaught exception or unrecoverable error or calling the abort() function.

And this is how I'm initializing PagingViewController:

lazy var pagingViewController: PagingViewController = {
    let controller = PagingViewController()
    controller.dataSource = self
    controller.delegate = self
     // other configurations
      return controller
}()


override func viewDidLoad() {
    super.viewDidLoad()
    addChild(pagingViewController)
    /// layout code
}

This crash only occurs on iPhone 5s with iOS version 12. Newer version works fine.
I'm suspecting this crash happens because of the MainActor attribute.

How can I figure out what's causing the crash?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions