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

EXC_BAD_ACCESS during drag and drop in Magazine layout #131

Open
nadirozgurler opened this issue Oct 3, 2024 · 0 comments
Open

EXC_BAD_ACCESS during drag and drop in Magazine layout #131

nadirozgurler opened this issue Oct 3, 2024 · 0 comments

Comments

@nadirozgurler
Copy link

I am using MagazineLayout in my project, and I encountered a consistent crash when performing drag-and-drop operations. The error message is:

EXC_BAD_ACCESS (code=2, address=0x...)

It seems like the issue is related to layout attributes being deallocated during the drag-and-drop process. Specifically, this crash occurs when super.systemLayoutSizeFitting is called, which indicates that some objects are being deallocated unexpectedly during layout calculations or while updating the layout.

Here’s a bit more context:

•	The crash happens during drag-and-drop interactions, where items are moved around in the collection view.
•	I suspect that the layout attributes or other critical layout-related objects are being deallocated during the drag-and-drop process.
•	I am using the latest version of MagazineLayout implementation.

Could this be related to how MagazineLayout handles layout invalidation or the recycling of layout attributes during drag-and-drop?

Please let me know if you need more details or steps to reproduce this issue. I would appreciate any guidance or fixes regarding this problem.

version: iOS 17 (simulator and device)

Thank you for your time and help!

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

1 participant