CleverTap / CTNotificationContent

A Notification Content Extension class to display custom content interfaces for iOS 10 push notifications
MIT License
14 stars 7 forks source link

SDK Crashing for carousel template #22

Closed manish-practo closed 2 years ago

manish-practo commented 2 years ago

Steps to reproduce

CTContentSliderControlle.func moveSlider(direction: Int)
...
// This line
 -> getParentViewController().userDidPerformAction(ConstantKeys.kViewContentItemAction, withProperties: items[currentItemIndex])

Crash Log

{\rtf1\ansi\ansicpg1252\cocoartf2639
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 Menlo-Regular;\f1\fnil\fcharset0 Menlo-Bold;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red255\green255\blue255;}
{\*\expandedcolortbl;;\csgenericrgb\c0\c0\c0;\csgenericrgb\c100000\c100000\c100000;}
\paperw11900\paperh16840\margl1440\margr1440\vieww24760\viewh17340\viewkind0
\deftab1038
\pard\tx1038\pardeftab1038\pardirnatural\partightenfactor0

\f0\fs42 \cf2 \cb3 * thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
\f1\b \

\f0\b0     frame #0: 0x00000001853a6ebc libswiftCore.dylib`_swift_runtime_on_report
\f1\b \

\f0\b0     frame #1: 0x000000018542da70 libswiftCore.dylib`_swift_stdlib_reportFatalErrorInFile + 204
\f1\b \

\f0\b0     frame #2: 0x00000001850eccb4 libswiftCore.dylib`closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in Swift._assertionFailure(_: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 356
\f1\b \

\f0\b0     frame #3: 0x00000001850eca1c libswiftCore.dylib`closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in Swift._assertionFailure(_: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 192
\f1\b \

\f0\b0     frame #4: 0x00000001850ec3bc libswiftCore.dylib`Swift._assertionFailure(_: Swift.StaticString, _: Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never + 228
\f1\b \

\f0\b0   * frame #5: 0x00000001007dbc1c CTNotificationContent`CTContentSliderController.moveSlider(direction=1, self=0x000000012486ba00) at CTContentSliderController.swift:210:9
\f1\b \

\f0\b0     frame #6: 0x00000001007db3b8 CTNotificationContent`CTContentSliderController.showNext(self=0x000000012486ba00) at CTContentSliderController.swift:182:9
\f1\b \

\f0\b0     frame #7: 0x00000001007db3e8 CTNotificationContent`@objc CTContentSliderController.showNext() at <compiler-generated>:0
\f1\b \

\f0\b0     frame #8: 0x0000000182048e58 Foundation`__NSFireTimer + 64
\f1\b \

\f0\b0     frame #9: 0x00000001809afc58 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
\f1\b \

\f0\b0     frame #10: 0x00000001809394e8 CoreFoundation`__CFRunLoopDoTimer + 1008
\f1\b \

\f0\b0     frame #11: 0x00000001809340a0 CoreFoundation`__CFRunLoopDoTimers + 316
\f1\b \

\f0\b0     frame #12: 0x0000000180913d94 CoreFoundation`__CFRunLoopRun + 1964
\f1\b \

\f0\b0     frame #13: 0x0000000180926c30 CoreFoundation`CFRunLoopRunSpecific + 572
\f1\b \

\f0\b0     frame #14: 0x00000001a1341988 GraphicsServices`GSEventRunModal + 160
\f1\b \

\f0\b0     frame #15: 0x0000000183121c50 UIKitCore`-[UIApplication _run] + 1080
\f1\b \

\f0\b0     frame #16: 0x0000000182ebb3d0 UIKitCore`UIApplicationMain + 336
\f1\b \

\f0\b0     frame #17: 0x00000001dbac6f14 libxpc.dylib`_xpc_objc_main + 440
\f1\b \

\f0\b0     frame #18: 0x00000001dbac9128 libxpc.dylib`xpc_main + 152
\f1\b \

\f0\b0     frame #19: 0x0000000182075fcc Foundation`-[NSXPCListener resume] + 292
\f1\b \

\f0\b0     frame #20: 0x00000001be1ee818 PlugInKit`___lldb_unnamed_symbol896 + 396
\f1\b \

\f0\b0     frame #21: 0x00000001be1d8f98 PlugInKit`___lldb_unnamed_symbol444 + 572
\f1\b \

\f0\b0     frame #22: 0x00000001be1d7ff4 PlugInKit`___lldb_unnamed_symbol433 + 20
\f1\b \

\f0\b0     frame #23: 0x00000001c9eef3bc ExtensionFoundation`EXExtensionMain + 296
\f1\b \

\f0\b0     frame #24: 0x00000001820d550c Foundation`NSExtensionMain + 216
\f1\b \

\f0\b0     frame #25: 0x00000001008c43d0 dyld`start + 444}
akashvercetti commented 2 years ago

@manish-practo we are in the process of releasing a hotfix for this issue. We will update you on this ticket as soon as it is released soon 👍

akashvercetti commented 2 years ago

We have released a hotfix for this in our latest release v0.2.3 : https://github.com/CleverTap/CTNotificationContent/releases/tag/0.2.3