Skip to content

Crash with an EXC_BAD_ACCESS error #8

Description

@softcleandev

Hello there!

I've added the SlideButton package to my iOS app project.

import SlideButton
import SwiftUI

struct TestButton: View {
    private let styling = SlideButton.Styling(
        indicatorSize: 60,
        indicatorSpacing: 5,
        indicatorColor: .accentColor,
        backgroundColor: .accentColor.opacity(0.3),
        textColor: .secondary,
        indicatorSystemName: "chevron.right",
        indicatorDisabledSystemName: "xmark",
        textAlignment: .center,
        textFadesOpacity: true,
        textHiddenBehindIndicator: true,
        textShimmers: false
    )

    var body: some View {
        SlideButton("Slide it!", styling: styling, action: {
            print("Nice day for coding, ain't it? Huha")
        })
        .padding()
    }
}

If the button is not used (not sliding) -> nothing happens, but if the button is used, then after a few seconds after several sliding actions the app crashes with "Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)" error.

Also a

suspiciously large function size: 131140 count: 6557

message is logged.

The memory usage of the app is ca. 250 MB, when it crashes.

Xcode: 15.4 runs on MacBook Pro M1 32 GB macOS: 14.4.1
Tested on iPhone 13 Pro with iOS 17.5.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions