-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NSObject allocWithZone:]: attempt to allocate object of class 'UITraitCollection' failed
when setting image in CarPlay
#2364
Comments
Happy to provide more details. I'm going to try decoding the image on background thread: item.kf.setImage(
with: thumbnail,
options: [.backgroundDecode]
) |
[NSObject allocWithZone:]: attempt to allocate object of class 'UITraitCollection' failed
when setting image in CarPlay using Kingfisher[NSObject allocWithZone:]: attempt to allocate object of class 'UITraitCollection' failed
when setting image in CarPlay
On most occasions, the termination reasons are "exhausted real (wall clock) time allowance of 10.00 seconds" and "Failed to terminate gracefully after 5.0s," indicating the app is being terminated by the watchdog. I've added |
@markst I myself do not have a test environment for CarPlay now. May I know on which thread this crash happens? Is it thread 0 (the main thread)? |
Yes. I believe the watchdog terminator only happens ok the main thread? or
at least this aggressive
…On Sat, 22 Feb 2025 at 8:17 PM, Wei Wang ***@***.***> wrote:
@markst <https://github.com/markst> I myself do not have a test
environment for CarPlay now. May I know on which thread this crash happens?
Is it thread 0 (the main thread)?
—
Reply to this email directly, view it on GitHub
<#2364 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACC7DRXQZIO6ZPTDDNLWST2REVUZAVCNFSM6AAAAABXVJOYZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWGUYTIOJXGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: onevcat]*onevcat* left a comment (onevcat/Kingfisher#2364)
<#2364 (comment)>
@markst <https://github.com/markst> I myself do not have a test
environment for CarPlay now. May I know on which thread this crash happens?
Is it thread 0 (the main thread)?
—
Reply to this email directly, view it on GitHub
<#2364 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACC7DRXQZIO6ZPTDDNLWST2REVUZAVCNFSM6AAAAABXVJOYZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWGUYTIOJXGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
We're encountering a crash when using Kingfisher to set an image on a
CPListItem
in CarPlay. The crash throws anNSMallocException
with the message:This occurs when calling
setImage
on theCPListItem
.Stack Trace:
Steps to Reproduce:
CPListItem
using Kingfisher'ssetImage
method.setImage
call.Code Snippet:
Environment:
The text was updated successfully, but these errors were encountered: