[ad_1]
I’m making an attempt to debug a problem during which my software crashes while working some unit assessments with the output –
Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
To research this, I’ve enabled Zombie Objects, Guard Malloc and Malloc Stack Logging, with the choice of all allocations.
The part I’m testing is known as StretchyHeaderViewController – it’s a UIViewController and accommodates 2 youngster view controllers, embedded inside a UIScrollView.
Baby 1 is a UIViewController
Baby 2 is a UICollectionViewController
I’ve numerous assessments that cowl each youngster views and likewise how my views work in integration with one another.
That assertions for Baby 2 nevertheless are randomly crashing beneath take a look at with the above error.
The output in my console reads
Take a look at Case ‘-[MyAppTests.FeedUIIntegrationTests test_loadCompletion_rendersSuccessfully]’ began.
2022-10-20 06:51:05.645525+0100 MyApp[48597:3651596] *** -[MyApp.StretchyHeaderViewController retain]: message despatched to deallocated occasion 0x14e35ec00
I wish to perceive now what this implies.
Is that this suggesting StretchyHeaderViewController has been deallocated or that StretchyHeaderViewController is making an attempt to ship a message to a deallocated object?
[ad_2]
