Crash while displaying .pdf and .ics files in QLPreviewView

1) While loading an .ics file in QLPreviewView, I get a crash stating


Assertion failure (_visibility == QLPreviewHiddenVisibilityState) - [QLPreviewDocument item: <ZohoMail.ZQLPreviewItem:> loaded url /Users/*/137797169343110040.ics] visibility of QLRemoteDisplayBundle 137797169343110040.ics should be hidden when deactivating (not shown)


#1 pthread_kill ()

#2 abort ()

#3 _QLCrash ()

#4 _QLRaiseAssert ()

#5 -[QLDisplayBundle deactivate] ()

#6 -[QLRemoteDisplayBundle deactivate] ()

#7 -[QLPreviewDocument _didEndLoading] ()

#8 -[QLPreviewDocument _loadPreviewSucceeded] ()

#9 -[QLPreviewDocument _loadWithDisplayBundleID:hints:remoteMode:] ()

#10 -[QLPreviewDocument _loadDisplayBundleID:withLastError:hints:] ()

#11 QLTryCatchAndCrash(void () block_pointer) ()

#12 dispatch_call_block_and_release ()

#13 _dispatch_client_callout ()

#14 _dispatch_main_queue_callback_4CF ()

#15 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()

#16 __CFRunLoopRun ()

#17 CFRunLoopRunSpecific ()

#18 RunCurrentEventLoopInMode ()#19 ReceiveNextEventCommon ()

#20 _BlockUntilNextEventMatchingListInModeWithFilter ()

#21 _DPSNextEvent ()

#22 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] ()

#23 -[NSApplication run] ()

#24 NSApplicationMain ()

#25 main


2) In case of PDF, encountered the following crash

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: isfinite(newKnobProportion)'

*** First throw call stack:

(

0 CoreFoundation 0x00007fff2fbcd43d __exceptionPreprocess + 256

1 libobjc.A.dylib 0x00007fff5badf720 objc_exception_throw + 48

2 CoreFoundation 0x00007fff2fbe808e +[NSException raise:format:arguments:] + 98

3 Foundation 0x00007fff31f8455d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194

4 AppKit 0x00007fff2d0c6911 -[NSScrollerImp setKnobProportion:] + 422

5 QuickLookUI 0x00007fff3aa517d2 -[QLScrollerLayer setKnobProportion:] + 80

6 Foundation 0x00007fff31e70fa3 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 694

7 Foundation 0x00007fff31e70cd0 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 68

8 Foundation 0x00007fff31f26925 _NSSetDoubleValueAndNotify + 260

9 AppKit 0x00007fff2d16a05d -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:context:] + 1687

10 Foundation 0x00007fff31e721b6 NSKeyValueNotifyObserver + 346

11 Foundation 0x00007fff31e71c22 NSKeyValueDidChange + 481

12 Foundation 0x00007fff32001868 NSKeyValueDidChangeWithPerThreadPendingNotifications.llvm.15835543126851482145 + 143

13 AppKit 0x00007fff2d0b00ab -[NSView didChangeValueForKey:] + 144

14 QuickLookUI 0x00007fff3a9a527c -[QLPreviewView _setDisplayable:transition:] + 1775

15 QuickLookUI 0x00007fff3a99eb7c -[QLPreviewView _updateDisplayableWithTransition:] + 208

16 QuickLookUI 0x00007fff3a9a89a4 -[QLPreviewDocument _didEndLoading] + 357

17 QuickLookUI 0x00007fff3a9a87e8 -[QLPreviewDocument _loadPreviewSucceeded] + 253

18 QuickLookUI 0x00007fff3a9ef41d -[QLDisplayBundle didLoad] + 251

19 Text 0x000000011cf3bc5d Text + 19549

20 libdispatch.dylib 0x0000000109d0671b _dispatch_call_block_and_release + 12

21 libdispatch.dylib 0x0000000109d077f3 _dispatch_client_callout + 8

22 libdispatch.dylib 0x0000000109d163c0 _dispatch_main_queue_callback_4CF + 1909

23 CoreFoundation 0x00007fff2fb14147 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

24 CoreFoundation 0x00007fff2fb13856 __CFRunLoopRun + 2335

25 CoreFoundation 0x00007fff2fb12ce4 CFRunLoopRunSpecific + 463

26 HIToolbox 0x00007fff2edac895 RunCurrentEventLoopInMode + 293

27 HIToolbox 0x00007fff2edac5cb ReceiveNextEventCommon + 618

28 HIToolbox 0x00007fff2edac348 _BlockUntilNextEventMatchingListInModeWithFilter + 64

29 AppKit 0x00007fff2d06995b _DPSNextEvent + 997

30 AppKit 0x00007fff2d0686fa -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362

31 AppKit 0x00007fff2d06275d -[NSApplication run] + 699

32 AppKit 0x00007fff2d051e97 NSApplicationMain + 780

33 Zoho Mail 0x0000000100e8982d main + 13

34 libdyld.dylib 0x00007fff5cbad085 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException


if anybody aware of these crashes , please let me know, I am not able to find the exact root cause for these crashes.

Thanks