yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
890 stars 131 forks source link

Crash on IOS 15.5 ( IPhone11 ) during scrolling #147

Closed egorovsa closed 1 year ago

egorovsa commented 1 year ago

Description of the bug

1) I invoke a native share window as usual. It works perfect on android with the same codebase. 2) It opens all variant for sharing, like last contacts in the top line and and other variant on the second 3) if you just tap in any available variants then all's good, 4) In case you try to scroll it left or scroll it everywhere to get other variants, it crashes right away .

Reproduction steps

Described it above.

Additional info

I don't know why but. Crashlitick requires me to Upload a dSYM .zip file to provide me an error whereas I built it with SWARF with dSYM file option..

Did not find a way to find necessary one with UUID 2B9EF79A-2069-3D26-A7E2-1A4C2BF5EA00

Any Idea?

yasirkula commented 1 year ago

I'm unfamiliar with dSYM files. Can you build&run the project from Xcode and check its console?

egorovsa commented 1 year ago

Yes , I am going to do this. Will let you know.!

egorovsa commented 1 year ago

Ok. Have a look . All that I get when I open sharing window

2022-07-26 12:55:49.717223+0300 Affirmationsandmeditationforeveryday[27273:1548849] [Default] Task Affirmationsandm[27273]/1#4 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
2022-07-26 12:55:49.756232+0300 Affirmationsandmeditationforeveryday[27273:1548849] [Default] Task Affirmationsandm[27273]/1#4 LF=0 couldn't find entitlement CopresenceCore.Entitlement.publicAPI error nil
2022-07-26 12:55:49.900574+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:49.900604+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:49.901522+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:49.901555+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:49.902639+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:49.902667+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:49.919884+0300 Affirmationsandmeditationforeveryday[27273:1548849] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
2022-07-26 12:55:49.919924+0300 Affirmationsandmeditationforeveryday[27273:1548849] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-07-26 12:55:49.919951+0300 Affirmationsandmeditationforeveryday[27273:1548849] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
2022-07-26 12:55:49.921224+0300 Affirmationsandmeditationforeveryday[27273:1548849] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
2022-07-26 12:55:49.924605+0300 Affirmationsandmeditationforeveryday[27273:1548849] [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionReusableView that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIActivityContentFooterView: 0x167b7c3c0; baseClass = UICollectionReusableView; frame = (16 378.5; 343 52); layer = <CALayer: 0x281e8c4a0>>
2022-07-26 12:55:49.936178+0300 Affirmationsandmeditationforeveryday[27273:1548849] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
2022-07-26 12:55:49.936219+0300 Affirmationsandmeditationforeveryday[27273:1548849] [default] Attempt to map database failed: permission was denied. This attempt will not be retried.
2022-07-26 12:55:49.936247+0300 Affirmationsandmeditationforeveryday[27273:1548849] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
2022-07-26 12:55:49.936331+0300 Affirmationsandmeditationforeveryday[27273:1548849] [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO free drawing or -prepareImageForDescriptor: if IO is allowed. (This will become a fault soon.)
2022-07-26 12:55:50.885014+0300 Affirmationsandmeditationforeveryday[27273:1550404] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)""
2022-07-26 12:55:50.885422+0300 Affirmationsandmeditationforeveryday[27273:1550250] [accounts] ACAccountStore: [9E771904] Failed to create/fetch the local account. error = Error Domain=com.apple.accounts Code=9 "(null)"
2022-07-26 12:55:50.885559+0300 Affirmationsandmeditationforeveryday[27273:1550250] [general] AMSURLRequestEncoder: [9E771904] We weren't provided an account and were unable to get the local account.
2022-07-26 12:55:50.887237+0300 Affirmationsandmeditationforeveryday[27273:1551201] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)""
2022-07-26 12:55:50.887807+0300 Affirmationsandmeditationforeveryday[27273:1550250] [accounts] ACAccountStore: [9E771904] Failed to create/fetch the local account. error = Error Domain=com.apple.accounts Code=9 "(null)"
2022-07-26 12:55:50.890169+0300 Affirmationsandmeditationforeveryday[27273:1550404] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)""
2022-07-26 12:55:50.890533+0300 Affirmationsandmeditationforeveryday[27273:1550250] [accounts] ACAccountStore: [9E771904] Failed to create/fetch the local account. error = Error Domain=com.apple.accounts Code=9 "(null)"
2022-07-26 12:55:50.892297+0300 Affirmationsandmeditationforeveryday[27273:1550250] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""
2022-07-26 12:55:50.895602+0300 Affirmationsandmeditationforeveryday[27273:1550250] [traffic] Remote Anisette service returned an error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.ak.anisette.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.ak.anisette.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.}
2022-07-26 12:55:50.895772+0300 Affirmationsandmeditationforeveryday[27273:1550250] [traffic] Unable to append header for request https://client-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?caller=com.SergeyEgorov.affirmations.meditation&p=product&id=1535485904&availability=omni&platform=web&version=2&cc=ru! Error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.ak.anisette.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction." UserInfo={NSDebugDescription=The connection to service named com.apple.ak.anisette.xpc was invalidated: failed at lookup with error 159 - Sandbox restriction.}
2022-07-26 12:55:50.898015+0300 Affirmationsandmeditationforeveryday[27273:1550250] [general] AMSURLRequest: [9E771904] Failed to add mescal header. Error: Error Domain=AMSErrorDomain Code=8 "Mescal Session Failure" UserInfo={NSLocalizedDescription=Mescal Session Failure, NSLocalizedFailureReason=Failed to locate a mescal entitlement}
2022-07-26 12:55:50.898851+0300 Affirmationsandmeditationforeveryday[27273:1550419] [general] LPiTunesMediaLookupTask: [7DA7B635] JS sign is missing a storefront
2022-07-26 12:55:50.900959+0300 Affirmationsandmeditationforeveryday[27273:1548849] [Process] 0x16086f618 - [pageProxyID=73, webPageID=74, PID=27320] WebPageProxy::didFailProvisionalLoadForFrame: frameID=3, domain=WebKitErrorDomain, code=102, isMainFrame=1
2022-07-26 12:55:51.688407+0300 Affirmationsandmeditationforeveryday[27273:1550404] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)""
2022-07-26 12:55:51.688789+0300 Affirmationsandmeditationforeveryday[27273:1550404] [accounts] ACAccountStore: [9E771904] Failed to create/fetch the local account. error = Error Domain=com.apple.accounts Code=9 "(null)"
2022-07-26 12:55:51.688927+0300 Affirmationsandmeditationforeveryday[27273:1550404] [general] AMSURLProtocolHandler: [9E771904] Failed to add cookies for response. error = (null)
2022-07-26 12:55:51.696056+0300 Affirmationsandmeditationforeveryday[27273:1551306] [general] AMSURLSession: [9E771904] Session decoder failed. Result = (null); Error = Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedFailureReason=The response has an invalid status code, AMSURL=https://client-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?availability=omni&caller=com.SergeyEgorov.affirmations.meditation&cc=ru&id=1535485904&p=product&platform=web&version=2, AMSStatusCode=403, NSLocalizedDescription=Invalid Status Code}
2022-07-26 12:55:51.696782+0300 Affirmationsandmeditationforeveryday[27273:1551306] [general] AMSURLSession: [9E771904] Task completed with error = Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedFailureReason=The response has an invalid status code, AMSURL=https://client-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?availability=omni&caller=com.SergeyEgorov.affirmations.meditation&cc=ru&id=1535485904&p=product&platform=web&version=2, AMSStatusCode=403, NSLocalizedDescription=Invalid Status Code}
2022-07-26 12:55:51.697655+0300 Affirmationsandmeditationforeveryday[27273:1550419] [general] LPiTunesMediaLookupTask: [9E771904] Lookup failed. Error = Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedFailureReason=The response has an invalid status code, AMSURL=https://client-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?availability=omni&caller=com.SergeyEgorov.affirmations.meditation&cc=ru&id=1535485904&p=product&platform=web&version=2, AMSStatusCode=403, NSLocalizedDescription=Invalid Status Code}
2022-07-26 12:55:51.697849+0300 Affirmationsandmeditationforeveryday[27273:1550419] [general] LPiTunesMediaLookupTask: [9E771904] === Failed === -> error = Error Domain=AMSErrorDomain Code=301 "Invalid Status Code" UserInfo={NSLocalizedFailureReason=The response has an invalid status code, AMSURL=https://client-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?availability=omni&caller=com.SergeyEgorov.affirmations.meditation&cc=ru&id=1535485904&p=product&platform=web&version=2, AMSStatusCode=403, NSLocalizedDescription=Invalid Status Code}
2022-07-26 12:55:51.702428+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:51.702519+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:51.704437+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:51.704503+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:51.706194+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:51.706253+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:52.304214+0300 Affirmationsandmeditationforeveryday[27273:1548849] [Process] 0x16036fe18 - [pageProxyID=88, webPageID=89, PID=27320] WebPageProxy::didFailProvisionalLoadForFrame: frameID=17, domain=WebKitErrorDomain, code=102, isMainFrame=1
2022-07-26 12:55:52.309127+0300 Affirmationsandmeditationforeveryday[27273:1548849] [Process] 0x160305e18 - [pageProxyID=85, webPageID=86, PID=27320] WebPageProxy::didFailProvisionalLoadForFrame: frameID=15, domain=WebKitErrorDomain, code=102, isMainFrame=1
2022-07-26 12:55:52.315879+0300 Affirmationsandmeditationforeveryday[27273:1548849] [Process] 0x160172818 - [pageProxyID=91, webPageID=92, PID=27320] WebPageProxy::didFailProvisionalLoadForFrame: frameID=19, domain=WebKitErrorDomain, code=102, isMainFrame=1
2022-07-26 12:55:52.826376+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] maximumViewportInset cannot be larger than frame
2022-07-26 12:55:52.826436+0300 Affirmationsandmeditationforeveryday[27273:1548849] [ViewportSizing] minimumViewportInset cannot be larger than frame
2022-07-26 12:55:54.047647+0300 Affirmationsandmeditationforeveryday[27273:1550419] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-07-26 12:55:54.052229+0300 Affirmationsandmeditationforeveryday[27273:1550419] [ProcessSuspension] 0x10606c300 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=27320, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-07-26 12:55:54.055128+0300 Affirmationsandmeditationforeveryday[27273:1550419] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-07-26 12:55:54.055287+0300 Affirmationsandmeditationforeveryday[27273:1550419] [ProcessSuspension] 0x10606c360 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=27320, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-07-26 12:55:54.057359+0300 Affirmationsandmeditationforeveryday[27273:1550419] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-07-26 12:55:54.057518+0300 Affirmationsandmeditationforeveryday[27273:1550419] [ProcessSuspension] 0x10606c3c0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=27320, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}

but it's still alive. Then I try to scroll something. App is freezing and console shows nothing.

I case I tried to click on cross close button I received

warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available. (lldb)

yasirkula commented 1 year ago

This freeze doesn't occur when sharing content from WhatsApp to Facebook or another medium, right?

egorovsa commented 1 year ago

if you just tap shortly on any elements those are available on visible part of share window (the very first window) everything works perfect, however, as soon as you try to move anything, means to try to get other variant righter then it crashes.

again ) If taped on anything for instance telegram or whatsUp it opens the next window and I can scroll or share and all's good. In the very first window it crashes if I move(scrollX or scrollY)

Hope I described it clear ;)

yasirkula commented 1 year ago

I understood the problem. I'm trying to see if it's a general iOS bug. Can you share content not from your app but from WhatsApp or Facebook to another social app and try to get other variants righter?

egorovsa commented 1 year ago

I've just created an absolutely new and clear project with one button only. Added your plugin and it works perfect. It seems to me I should first of all try to remove packages and maybe it has any conflicts with something (((((( Sorry for the disturbing. I will let you know after my investigation,

yasirkula commented 1 year ago

Oh, both happy and sorry to hear that. If you were sharing an image file in your original app but are now sharing only text in the clear project, try sharing the same content (image file) in the clear project, as well.

egorovsa commented 1 year ago

Hi again. After many hours of investigation yesterday. Seems I found the package that makes native share to work incorrect. I have to check it together one more time without everything. Because the current stack when I 100% reproduce the error is

FirebaseAnalytics FirebaseCrashlytics FirebaseDynamicLinks GoogleMobileAds-v7.1.0

and after installation of yandex-mobileads-lite-2.1.1

the issue is reproducing

So now I have to check if yandex-mobileads-lite-2.1.1 + nativeshare gives the same issue.

Moreover Crashlitics finally gives me a stack.

If it would be useful it would cool.

Crashed: com.apple.main-thread
0  libobjc.A.dylib                         0x3044 objc_getAssociatedObject + 84
1  UnityFramework                          0x904d8c -[UIScrollView(TouchesCancelling) yx_alwaysCancelsTouchesInView] + 28 (UIScrollView+TouchesCancelling.m:28)
2  Affirmationsandmeditationforeveryday    0x622f30 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 38 (UIScrollView+TouchesCancelling.m:38)
3  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
4  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
5  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
6  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
7  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
8  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
9  Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
10 Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
11 Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
12 Affirmationsandmeditationforeveryday    0x622f50 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
13 UnityFramework                          0x904e64 -[UIScrollView(TouchesCancelling) yx_touchesShouldCancelInContentView:] + 41 (UIScrollView+TouchesCancelling.m:41)
14 UIKitCore                               0x2770dc -[UIScrollView _canCancelContentTouches:] + 696
15 UIKitCore                               0x4f3db8 -[UIScrollViewPanGestureRecognizer touchesMoved:withEvent:] + 280
16 UIKitCore                               0x2677ec -[UIGestureRecognizer _componentsChanged:withEvent:] + 172
17 UIKitCore                               0x42a3dc -[UITouchesEvent _sendEventToGestureRecognizer:] + 432
18 UIKitCore                               0x26aa70 __47-[UIGestureEnvironment _updateForEvent:window:]_block_invoke + 84
19 UIKitCore                               0x195470 -[UIGestureEnvironment _updateForEvent:window:] + 480
20 UIKitCore                               0x1a2854 -[UIWindow sendEvent:] + 4380
21 UIKitCore                               0x350288 -[UIApplication sendEvent:] + 824
22 UIKitCore                               0x176150 __dispatchPreprocessedEventFromEventQueue + 7856
23 UIKitCore                               0x16aea8 __processEventQueue + 6616
24 UIKitCore                               0x170428 __eventFetcherSourceCallback + 172
25 CoreFoundation                          0xbb414 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
26 CoreFoundation                          0xcc1a0 __CFRunLoopDoSource0 + 208
27 CoreFoundation                          0x5694 __CFRunLoopDoSources0 + 268
28 CoreFoundation                          0xb05c __CFRunLoopRun + 828
29 CoreFoundation                          0x1ebc8 CFRunLoopRunSpecific + 600
30 UnityFramework                          0x19c10 -[UnityAppController(Rendering) processTouchEvents] + 58 (UnityAppController+Rendering.mm:58)
31 UnityFramework                          0x19d10 -[UnityAppController(Rendering) repaintDisplayLink] + 76 (UnityAppController+Rendering.mm:76)
32 QuartzCore                              0x10d40 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 748
33 QuartzCore                              0x17d70 display_timer_callback(__CFMachPort*, void*, long, void*) + 372
34 CoreFoundation                          0xabf0 __CFMachPortPerform + 176
35 CoreFoundation                          0x4e258 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
36 CoreFoundation                          0x51a64 __CFRunLoopDoSource1 + 604
37 CoreFoundation                          0xb664 __CFRunLoopRun + 2372
38 CoreFoundation                          0x1ebc8 CFRunLoopRunSpecific + 600
39 GraphicsServices                        0x1374 GSEventRunModal + 164
40 UIKitCore                               0x514648 -[UIApplication _run] + 1100
41 UIKitCore                               0x295d90 UIApplicationMain + 364
42 UnityFramework                          0x197d4 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 96 (main.mm:96)
43 Affirmationsandmeditationforeveryday    0x7b04 main + 28 (main.mm:28)
44 ???                                     0x101c85ce4 (Missing) 
yasirkula commented 1 year ago

Right now, I'm like:

confused

How would these two packages -how would any other package- cause a scrolling crash on NativeShare, I'm totally unsure lol. I'd maybe understand if I was creating that scrollbar and the user interface manually but it's iOS' native user interface that's automatically created with UIActivityViewController.

If you get the chance, can you see if NatShare also suffers from the same issue? That might help me determine if I'm doing something wrong in NativeShare.

egorovsa commented 1 year ago

Mine god... I have no idea how to install NatShare... Tried with PackageManager it gives me only one file to import... There is no .unitypackage too... I am confused.

BTW. Checked one more time and only after yandex-mobileads-lite-2.1.1 package installation it starts to crash as I described above. I give up, do not know what to do....

yasirkula commented 1 year ago

NatShare is available on Asset Store, as well, if you would like to give it a go: https://assetstore.unity.com/packages/tools/integration/natshare-mobile-sharing-api-117705. I wish I knew why yandex would conflict with NativeShare but this really doesn't make sense to me either, at least at the moment :/ But thank you for all the debugging.

egorovsa commented 1 year ago

ok, Installed NatShare instead. Unfortunately it has the same incorrect behaviour. It freezes and then crashes

yasirkula commented 1 year ago

I've created a forum thread on Apple forums but honestly, I'm not hopeful that a resolution will be found.

egorovsa commented 1 year ago

Thanks a lot for that.

I've just come to only one file of dependencies of their package, I removed everything except that one

This is YandexMobileadsDependencies.xml

so I left only one dependency inside when the issue is reproducing

<dependencies>
    <iosPods>
        <iosPod name="YandexMobileAds" version="5.1.0">
            <sources>
                <source>https://github.com/CocoaPods/Specs</source>
            </sources>
        </iosPod>
    </iosPods>
</dependencies>

If it maybe give you some thoughts to you, because I am not familiar with IOS dependencies at all. But here is a reason.

https://github.com/CocoaPods/Specs/blob/master/Specs/a/c/5/YandexMobileAds/5.1.0/YandexMobileAds.podspec.json

yasirkula commented 1 year ago

I still can't comprehend how Yandex SDK would affect iOS' own native user interface called UIActivityViewController. This user interface is populated with apps that user can share content with. Even if Yandex somehow adds additional apps to this user interface (I don't know if an SDK can do that), why would it crash on scroll? In my head, UIActivityViewController and Yandex are two completely distinct things, I just can't find the connection between them that may cause this problem. I'd like to mention that I'm not very familiar with iOS ecosystem either so I might very well be missing some stuff myself.

egorovsa commented 1 year ago

Hello dear @yasirkula . They investigated and updated their package. Now the issue is gone! thanks to you for your answers and messages! Topic can be closed I think! ;)

yasirkula commented 1 year ago

Glad to hear it :)