InjectionApp icon indicating copy to clipboard operation
InjectionApp copied to clipboard

Thread EXC_BAD_ACCESS

Open amisare opened this issue 6 years ago • 3 comments

wx20171124-113250

xcode error information

amisare avatar Nov 24 '17 03:11 amisare

I get the same exception, Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0), inside AppDelegate (of all places)—only periodically, though. Sometimes injection works fine, but occasionally my app crashes. Anything I can tweak in compiler settings, etc. that might help?

stuartro avatar Jun 20 '18 23:06 stuartro

I think I discovered the cause—it appears that injection fails for generic classes. Changing a subclass of a generic base-class to inherit from a non-generic base-class allows injection to succeed. I tested with a very basic generic base-class and the only difference between the two cases is inheritance from a generic base-class or not.

stuartro avatar Jun 21 '18 00:06 stuartro

Looks like @amisare’s problem was “Injection" and “Remote” are not a good mix but it is also true injection does not work with Generics at all.

johnno1962 avatar Jun 21 '18 01:06 johnno1962