-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
internalApply #3
Comments
Hi @GIKICoder Could you please provide me crash logs? it would help me to find out what may be the issue. |
I ran the ListKit project demo using XCode 16.2. When I clicked on the ReorderableListViewController, a crash occurred. According to the crash log, it was due to duplicate item identifiers. However, the crash disappeared after I refreshed it on the main thread. *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Identifiers in a section snapshot must be unique. Duplicate item identifiers: {( |
This is a new crash. I'm uncertain under what circumstances it was triggered.
|
It looks like a recursion issue. I'll check what might be the problem. Thanks for reporting this one. The crash report will surely help me. |
Title: Crash When Calling internalApply on a Background Thread
Description:
Hello,
I'm encountering a crash when invoking the internalApply method on a background (asynchronous) thread. It appears that executing this method outside the main thread leads to unexpected behavior and crashes the application.
Steps to Reproduce:
Call internalApply from a background thread.
Observe the application crash.
Expected Behavior:
The internalApply method should either handle background thread calls safely or ensure it runs on the main thread to prevent crashes.
Actual Behavior:
Calling internalApply asynchronously on a background thread results in a crash.
Temporary Fix:
I've modified the extension to dispatch the calls to the main thread, which prevents the crash:
The text was updated successfully, but these errors were encountered: