TouchVisualizer icon indicating copy to clipboard operation
TouchVisualizer copied to clipboard

App crashes

Open ghost opened this issue 7 years ago • 3 comments

I added TouchVisualizer to my app, but it crashes in some situations. Unfortunately, XCode does not tell much about any reasons (libc++abi.dylib: terminating with uncaught exception of type NSException).

The line where I catch the exception is the call to swizzledSendEvent:

extension UIWindow {
    @objc public func swizzledSendEvent(_ event: UIEvent) {
        Visualizer.sharedInstance.handleEvent(event)
        swizzledSendEvent(event)
    }
}

The crash happens when tapping somewhere on the end of a table, or outside the table.

Do you have any idea what's happening here?

Best regards, Hardy

ghost avatar May 16 '18 10:05 ghost

mmm..I don't know why. I'll check it in my environment!

morizotter avatar May 17 '18 04:05 morizotter

I'm having the same problem. Regularly crashing on the swizzledSendEvent(event) line

gheatley avatar Oct 04 '18 15:10 gheatley

I have the same issue since swift5

msedd avatar Jun 23 '19 19:06 msedd