Skip to content
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

Xcode warning: IO on main thread #783

Open
yspreen opened this issue May 15, 2024 · 1 comment
Open

Xcode warning: IO on main thread #783

yspreen opened this issue May 15, 2024 · 1 comment

Comments

@yspreen
Copy link

yspreen commented May 15, 2024

image

/Users/user/Library/Developer/Xcode/DerivedData/App-fbkxwqvlyktkzzajmxsracuatpsm/SourcePackages/checkouts/Nuke/Sources/NukeUI/FetchImage.swift:13 {"message":"This code path does I/O on the main thread underneath that can lead to UI responsiveness issues. Consider ways to optimize this code path","antipattern trigger":"CGImageSourceCreateImageAtIndex","message type":"suppressable","show in console":"0"}

Thread 1
#0 0x0000000000061477 in -[_CUIRawPixelRendition initWithCSIHeader:version:] ()
#38 0x000000000003d03f in static Published.subscript.setter ()
#39 0x00000001010e89bf in FetchImage.isLoading.setter at /Users/user/Library/Developer/Xcode/DerivedData/App-fbkxwqvlyktkzzajmxsracuatpsm/SourcePackages/checkouts/Nuke/Sources/NukeUI/FetchImage.swift:13
#40 0x00000001010ec1ef in FetchImage.handle(result:) at /Users/user/Library/Developer/Xcode/DerivedData/App-fbkxwqvlyktkzzajmxsracuatpsm/SourcePackages/checkouts/Nuke/Sources/NukeUI/FetchImage.swift:162
#41 0x00000001010eba77 in FetchImage.load(
:) at /Users/user/Library/Developer/Xcode/DerivedData/App-fbkxwqvlyktkzzajmxsracuatpsm/SourcePackages/checkouts/Nuke/Sources/NukeUI/FetchImage.swift:125
#42 0x00000001010f455b in LazyImage.onAppear() at /Users/user/Library/Developer/Xcode/DerivedData/App-fbkxwqvlyktkzzajmxsracuatpsm/SourcePackages/checkouts/Nuke/Sources/NukeUI/LazyImage.swift:164
#43 0x00000001010f3f87 in closure #2 in LazyImage.body.getter at /Users/user/Library/Developer/Xcode/DerivedData/App-fbkxwqvlyktkzzajmxsracuatpsm/SourcePackages/checkouts/Nuke/Sources/NukeUI/LazyImage.swift:143
#44 0x0000000000adaac7 in ___lldb_unnamed_symbol177398 ()
#60 0x0000000000a40067 in static App.main() ()
#61 0x00000001002ec657 in static App.$main() at /Users/user/Documents/proj/app/iOS/App/App.swift:15
#62 0x00000001002ef033 in main at /Users/user/Documents/proj/app/iOS/App/App.swift:14

@kean
Copy link
Owner

kean commented May 18, 2024

Hey, thanks for the report. I would appreciate if you could attach a sample code where I could reproduce it. I can't seem to be able to reproduce it in a demo project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants