AssetsPickerViewController icon indicating copy to clipboard operation
AssetsPickerViewController copied to clipboard

Getting error Abort Trap: 6 when trying to Archive Swift app with AssetsPickerViewController.

Open ronitvasoya opened this issue 2 years ago • 9 comments

Issue Description

Getting error Abort Trap: 6 when trying to Archive app with AssetsPickerViewController.

What

The issue generate on AssetsPickerViewController (2.9.7). This could be an issue as a result of a change in the Swift compiler.

We received this error message from the compiler: 0 swift-frontend 0x0000000109ecdde7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39 1 swift-frontend 0x0000000109ecce38 llvm::sys::RunSignalHandlers() + 248 2 swift-frontend 0x0000000109ece440 SignalHandler(int) + 288 3 libsystem_platform.dylib 0x00007ff8188dadfd _sigtramp + 29 4 libsystem_platform.dylib 0x00007f8822f22ac8 _sigtramp + 18446743592847572200 5 libsystem_c.dylib 0x00007ff818810d24 abort + 123 6 swift-frontend 0x0000000109e1acda llvm::report_bad_alloc_error(char const*, bool) + 106 7 swift-frontend 0x0000000109e1acf2 out_of_memory_new_handler() + 18 8 libc++abi.dylib 0x00007ff81888296b operator new(unsigned long) + 43 9 swift-frontend 0x0000000109bdbefd llvm::Function::BuildLazyArguments() const + 77 10 swift-frontend 0x00000001079c4e87 llvm::objcarc::BundledRetainClaimRVs::insertRVCallWithColors(llvm::Instruction*, llvm::CallBase*, llvm::DenseMap<llvm::BasicBlock*, llvm::TinyPtrVectorllvm::BasicBlock*, llvm::DenseMapInfollvm::BasicBlock*, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::TinyPtrVectorllvm::BasicBlock* > > const&) + 151 11 swift-frontend 0x00000001079d7f88 (anonymous namespace)::ObjCARCContract::run(llvm::Function&, llvm::AAResults*, llvm::DominatorTree*) + 1384 12 swift-frontend 0x0000000109c13380 llvm::FPPassManager::runOnFunction(llvm::Function&) + 1488 13 swift-frontend 0x0000000109c1a073 llvm::FPPassManager::runOnModule(llvm::Module&) + 67 14 swift-frontend 0x0000000109c13b39 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1161 15 swift-frontend 0x00000001051316df swift::performLLVMOptimizations(swift::IRGenOptions const&, llvm::Module*, llvm::TargetMachine*) + 3791 16 swift-frontend 0x00000001051328cc swift::performLLVM(swift::IRGenOptions const&, swift::DiagnosticEngine&, llvm::sys::SmartMutex, llvm::GlobalVariable, llvm::Module*, llvm::TargetMachine*, llvm::StringRef, swift::UnifiedStatsReporter*) + 2812 17 swift-frontend 0x000000010513baa5 swift::performLLVM(swift::IRGenOptions const&, swift::ASTContext&, llvm::Module*, llvm::StringRef) + 213 18 swift-frontend 0x0000000104bf6795 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 16565 19 swift-frontend 0x0000000104bb55d4 swift::mainEntry(int, char const**) + 1108 20 dyld 0x000000020c50f51e start + 462 21 dyld 0x0000000000000005 start + 18446744064912985269 error: Abort trap: 6 (in target 'AssetsPickerViewController' from project 'Pods')

Reproduce

Using Xcode 13.3, Archive a project that uses AssetsPickerViewController (2.9.7)

ronitvasoya avatar Mar 29 '22 06:03 ronitvasoya

Same shit! Doesn't work normal. fix plz

EvgenyTishkin avatar Mar 29 '22 19:03 EvgenyTishkin

The same environment and problems. Help me.

jscz3w avatar Apr 05 '22 09:04 jscz3w

ronitvasoya

do you have workaround for this issue?

dimitarspasovski-movic avatar Apr 06 '22 13:04 dimitarspasovski-movic

ronitvasoya

do you have workaround for this issue?

use xcode 13.2 archived.

jscz3w avatar Apr 06 '22 23:04 jscz3w

Downgrading ( for instance https://www.wootechy.com/iphone-issue/downgrade-xcode/ ) to 13.2 do the trick, I can confirm.

AleMScof avatar Apr 08 '22 15:04 AleMScof

Same issue with both Xcode 13.3 and 13.3.1 (while 13.2.1 archives).

PhotInfo avatar Apr 15 '22 14:04 PhotInfo

By setting 'Enable Bitcode' to 'No', the error is not coming with XCode 13.3.1. Try it once. I am not sure of possible side-effects. From the Apple documentation, 'Enable Bitcode' is an optional optimisation.

https://help.apple.com/xcode/mac/11.0/index.html?localePath=en.lproj#/devde46df08a Screenshot 2022-04-18 at 10 00 31 PM

sboyina avatar Apr 18 '22 16:04 sboyina

Check here: https://github.com/DragonCherry/AssetsPickerViewController/issues/110

TheM4hd1 avatar Apr 23 '22 18:04 TheM4hd1

same problem.

JaoMcs avatar May 05 '22 22:05 JaoMcs