Open Jason-Stan-Lee opened 3 years ago
@Jason-Stan-Lee Can you post an example project that reproduces this?
@Jason-Stan-Lee Can you post an example project that reproduces this?
Nope. It was finded in my crash collector, but I never reproduce this case.
@Jason-Stan-Lee is it something you're seeing occur a lot? Is there any particular version of iOS it occurs on?
@Jason-Stan-Lee is it something you're seeing occur a lot? Is there any particular version of iOS it occurs on?
@garrettmoon There are very few crashes, perhaps one over a million or a billion, the platforms which crashed are in following
iPhone Xr | 12.3 (16F156) iPhone 11 Pro Max | 13.3.1 (17D50) iPhone Xr | 13.1.3 (17A878)
I guess the globallyUniqueString
is not very suitable for url path.
Got it, thanks for the info!
The
_sharedTrashURL
generated with[[NSProcessInfo processInfo] globallyUniqueString];
contains%00%00%00%00
, lead to a crash.Device: iPhone Xr iOS 14.2 (18B92)
*** -[NSURL fileSystemRepresentation]: conversion failed for file:///private/var/mobile/Containers/Data/Application/40AC63D8-3BD7-458B-BAC6-6396A78BD715/tmp/FE7F1C30-38EE-47ED-BB37-8FE73EA7873A-64416-000010D9F50E%00%00%00%00/7F3D3218-6F96-4724-9853-19D242240A2F-64416-000010D9F50F2CDB