Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash (Assertion Failure): When loading Tablet Cases #321

Open
mikegilroy opened this issue Jun 21, 2020 · 0 comments
Open

Crash (Assertion Failure): When loading Tablet Cases #321

mikegilroy opened this issue Jun 21, 2020 · 0 comments

Comments

@mikegilroy
Copy link

mikegilroy commented Jun 21, 2020

I have just implemented the default Print Shop experience within my app and when scrolling through the product categories I encounter the following crash which I presume is an assertion failure seeing as it only happens in debug:

2020-06-21 11:30:26.541250+1000 MYAPP[20283:624036] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bad url scheme ((null)), only http & https are supported'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010b6c629b __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x000000010a7e8735 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010b6c6022 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x0000000107e82b47 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
	4   KiteSDK                             0x0000000108b5e9a2 +[OLAsset assetWithURL:size:] + 626
	5   KiteSDK                             0x0000000108c197cb -[OLProduct coverPhotoAsset] + 555
	6   KiteSDK                             0x0000000108c19a4b -[OLProduct classImageAsset] + 587
	7   KiteSDK                             0x0000000108c2b868 -[OLProductHomeViewController collectionView:cellForItemAtIndexPath:] + 1672
	8   UIKitCore                           0x000000010ef988f0 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 314
	9   UIKitCore                           0x000000010ef9a710 -[UICollectionView _prefetchItemsForVelocity:maxItemsToPrefetch:invalidateCandidatesOnDirectionChanges:] + 611
	10  UIKitCore                           0x000000010efa3807 -[UICollectionView layoutSubviews] + 741
	11  UIKitCore                           0x000000010f60a015 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1441
	12  QuartzCore                          0x000000010d5d5d3d -[CALayer layoutSublayers] + 175
	13  QuartzCore                          0x000000010d5dabf7 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395
	14  QuartzCore                          0x000000010d553aa6 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 342
	15  QuartzCore                          0x000000010d58ac2a _ZN2CA11Transaction6commitEv + 576
	16  QuartzCore                          0x000000010d4c4fb2 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 272
	17  QuartzCore                          0x000000010d58ede4 _ZL22display_timer_callbackP12__CFMachPortPvlS1_ + 297
	18  CoreFoundation                      0x000000010b5fd9b6 __CFMachPortPerform + 150
	19  CoreFoundation                      0x000000010b62a379 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
	20  CoreFoundation                      0x000000010b6299cb __CFRunLoopDoSource1 + 459
	21  CoreFoundation                      0x000000010b623f3e __CFRunLoopRun + 2526
	22  CoreFoundation                      0x000000010b623221 CFRunLoopRunSpecific + 625
	23  GraphicsServices                    0x00000001149f71dd GSEventRunModal + 62
	24  UIKitCore                           0x000000010eef1115 UIApplicationMain + 140

This is preventing me from accessing any products from tablet cases and beyond on the list in sandbox environment. Is it possible that this could be fixed? Presuming the faulty image asset just needs replacing/fixing?

Also, when running in live environment, the tablet case image that is causing the crash loads with the below 'Corrupt Image :(' placeholder image.

Simulator Screen Shot - iPhone X - 2020-06-21 at 11 22 54

Is it also possible change this to a placeholder image or a nice failed to load image?

The current failure image seems a bit unprofessional and the average user probably won't understand what 'corrupt image' means, and might distrust the app seeing the word 'corrupt'.

Thanks, Mike.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant