You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EXC_BAD_ACCESS (SIGSEGV) crash at ImageContext.swift line 84
What
Shortly after app launch we are presenting an image in a SwiftUI view using KFImage. Crash is occurring intermittently.
In all cases the url of the image is the same and is retrieved from a CDN. The KFImage is backed by a placeholder which is loaded from an image included in the app asset catalog.
Crash is not specific to a device type nor iOS version.
Kingfisher version 7.6.1
Reproduce
We have yet to be able to reliably reproduce this issue, but it is occurring for ~3% of our user base.
Other Comment
Excerpt of code:
struct SomeView: View {
@ObservedObject var viewModel: SomeViewModel
var body: some View {
ZStack {
VStack {
Spacer()
Text("Hello World")
Spacer()
}
someImage
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
}
private var someImage: some View {
KFImage(viewModel.imageUrl)
.placeholder {
somePlaceholder
}
.resizable()
.aspectRatio(contentMode: .fill)
}
private var somePlaceholder: some View {
Image(viewModel.placeholder)
.resizable()
.aspectRatio(contentMode: .fill)
}
}
Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
Issue Description
EXC_BAD_ACCESS (SIGSEGV) crash at ImageContext.swift line 84
What
Shortly after app launch we are presenting an image in a SwiftUI view using KFImage. Crash is occurring intermittently.
In all cases the url of the image is the same and is retrieved from a CDN. The KFImage is backed by a placeholder which is loaded from an image included in the app asset catalog.
Crash is not specific to a device type nor iOS version.
Kingfisher version 7.6.1
Reproduce
We have yet to be able to reliably reproduce this issue, but it is occurring for ~3% of our user base.
Other Comment
Excerpt of code:
Crash Report
KF_ImageContext_Crash.txt
The text was updated successfully, but these errors were encountered: