[Bug]: Crash on sharing Sub-sub level url
Platform
iOS
Plugin
share_plus
Version
4.3.0
Flutter SDK
3.0.5
Steps to reproduce
Share.share("https://developer.apple.com");
Code Sample
Share.share("https://developer.apple.com");
Logs
[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}>
[ProcessSuspension] 0x11b004f60 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=36398, 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}
[assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
[ProcessSuspension] 0x11b004fc0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=36398, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
[assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
[ProcessSuspension] 0x11b005020 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess Suspended Assertion' for process with PID=36398, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
-[NSNull length]: unrecognized selector sent to instance 0x1f6ba0558
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x1f6ba0558'
*** First throw call stack:
(0x19cb91288 0x1b58c5744 0x19cc6efc0 0x19cb25e98 0x19cb24f70 0x103abd18c 0x1b4ba90dc 0x19c7f6e6c 0x19c7f8a30 0x19c800124 0x19c800c80 0x19c80b500 0x20dd310bc 0x20dd30e5c)
libc++abi: terminating with uncaught exception of type NSException
* thread #27, queue = 'com.apple.LinkPresentation.MetadataProvider', stop reason = signal SIGABRT
frame #0: 0x00000001d4639b38 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
-> 0x1d4639b38 <+8>: b.lo 0x1d4639b58 ; <+40>
0x1d4639b3c <+12>: pacibsp
0x1d4639b40 <+16>: stp x29, x30, [sp, #-0x10]!
0x1d4639b44 <+20>: mov x29, sp
Target 0: (Runner) stopped.
Flutter Doctor
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.1 21C52 darwin-arm, locale en-AT) Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
[✓] VS Code (version 1.71.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Seems to work if you append some text to the URL e.g.:
Share.share("bla bla https://developer.apple.com");
Strange...
Can you confirm if it works with 4.2.0?
If so, I will have to revert the recent 4.3.0 patch.
Same on me. It also doesn't work on 4.2.0, but works on 4.1.0.
Thanks for confirming, yes, the patch in 4.2.0 broke it.
I will do a revert on 4.2.0.
@neokn letting you know this issue happens with the patch you submitted, I will revert it now, if you want to submit it again, please take into account this problem.
This should be working again on 4.4.0.
Unfortunately, sharing pure urls may not work as before
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days