You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a segmentation fault when trying to archive the app if I use any introspection methods. I'm integrating via SPM. Compiled fine otherwise, it's really only when archiving that I run into the issue.
Here's the code that's causing the fault:
ScrollView(.vertical, showsIndicators: self.showScrollIndicator) {
...
}
.introspectScrollView { (scrollView) in
// Commenting this out fixes the issue
}
Here's the stack trace I get during archive:
0 swift 0x000000010c2ee4ea PrintStackTraceSignalHandler(void*) + 42
1 swift 0x000000010c2edcc0 SignalHandler(int) + 352
2 libsystem_platform.dylib 0x00007fff7301d5fd _sigtramp + 29
3 libsystem_platform.dylib 0x00007ffee7c5c060 _sigtramp + 1958996608
4 swift 0x00000001085281c8 (anonymous namespace)::Transform::transform(swift::Lowering::ManagedValue, swift::Lowering::AbstractionPattern, swift::CanType, swift::Lowering::AbstractionPattern, swift::CanType, swift::Lowering::SGFContext) + 12680
5 swift 0x0000000108525028 swift::Lowering::SILGenFunction::emitOrigToSubstValue(swift::SILLocation, swift::Lowering::ManagedValue, swift::Lowering::AbstractionPattern, swift::CanType, swift::Lowering::SGFContext) + 136
6 swift 0x00000001084a5886 swift::Lowering::Conversion::emit(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::Lowering::ManagedValue, swift::Lowering::SGFContext) const + 710
7 swift 0x000000010844782d (anonymous namespace)::ScalarResultPlan::finish(swift::Lowering::SILGenFunction&, swift::SILLocation, swift::CanType, llvm::ArrayRef<swift::Lowering::ManagedValue>&) + 1021
8 swift 0x0000000108462c28 swift::Lowering::SILGenFunction::emitApply(std::__1::unique_ptr<swift::Lowering::ResultPlan, std::__1::default_delete<swift::Lowering::ResultPlan> >&&, swift::Lowering::ArgumentScope&&, swift::SILLocation, swift::Lowering::ManagedValue, swift::SubstitutionMap, llvm::ArrayRef<swift::Lowering::ManagedValue>, swift::Lowering::CalleeTypeInfo const&, swift::Lowering::ApplyOptions, swift::Lowering::SGFContext) + 1784
9 swift 0x00000001084707bf (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 3951
10 swift 0x000000010846cc47 swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 2567
11 swift 0x00000001084bf223 swift::Lowering::SILGenFunction::emitExprInto(swift::Expr*, swift::Lowering::Initialization*, llvm::Optional<swift::SILLocation>) + 131
12 swift 0x0000000108543c1d swift::Lowering::SILGenFunction::emitReturnExpr(swift::SILLocation, swift::Expr*) + 845
13 swift 0x000000010853f2fe swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 12590
14 swift 0x000000010853c316 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 326
15 swift 0x00000001084efac0 swift::Lowering::SILGenFunction::emitClosure(swift::AbstractClosureExpr*) + 640
16 swift 0x0000000108458f14 swift::Lowering::SILGenModule::emitClosure(swift::AbstractClosureExpr*) + 244
17 swift 0x00000001084d3088 (anonymous namespace)::RValueEmitter::visitAbstractClosureExpr(swift::AbstractClosureExpr*, swift::Lowering::SGFContext) + 40
18 swift 0x0000000108468afb (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 5243
19 swift 0x00000001084643b3 (anonymous namespace)::ArgEmitter::emitSingleArg(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 163
20 swift 0x00000001084766ce (anonymous namespace)::ArgEmitter::emitPreparedArgs(swift::Lowering::PreparedArguments&&, swift::Lowering::AbstractionPattern) + 238
21 swift 0x0000000108476549 (anonymous namespace)::CallSite::emit(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, (anonymous namespace)::ParamLowering&, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::SmallVectorImpl<(anonymous namespace)::DelayedArgument>&, llvm::Optional<swift::ForeignErrorConvention> const&, swift::ImportAsMemberStatus) && + 537
22 swift 0x0000000108474208 (anonymous namespace)::CallEmission::emitArgumentsForNormalApply(swift::CanTypeWrapper<swift::FunctionType>&, swift::Lowering::AbstractionPattern&, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::Optional<swift::ForeignErrorConvention> const&, swift::ImportAsMemberStatus, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::Optional<swift::SILLocation>&, swift::CanTypeWrapper<swift::FunctionType>&) + 1032
23 swift 0x00000001084706b8 (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 3688
24 swift 0x000000010846cc47 swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 2567
25 swift 0x00000001084c4b9a swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 22410
26 swift 0x00000001084bf223 swift::Lowering::SILGenFunction::emitExprInto(swift::Expr*, swift::Lowering::Initialization*, llvm::Optional<swift::SILLocation>) + 131
27 swift 0x0000000108543c1d swift::Lowering::SILGenFunction::emitReturnExpr(swift::SILLocation, swift::Expr*) + 845
28 swift 0x000000010853f2fe swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 12590
29 swift 0x000000010853c316 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 326
30 swift 0x00000001084eefdf swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 799
31 swift 0x00000001084551b9 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 953
32 swift 0x0000000108550a18 void llvm::function_ref<void (swift::AccessorDecl*)>::callback_fn<(anonymous namespace)::SILGenType::visitAccessors(swift::AbstractStorageDecl*)::'lambda'(swift::AccessorDecl*)>(long, swift::AccessorDecl*) + 24
33 swift 0x000000010855097c (anonymous namespace)::SILGenType::visitVarDecl(swift::VarDecl*) + 1948
34 swift 0x000000010854d53b (anonymous namespace)::SILGenType::emitType() + 1163
35 swift 0x000000010845f5e2 swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 82
36 swift 0x000000010845e7ac swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*) + 1356
37 swift 0x000000010846088a swift::SILModule::constructSIL(swift::ModuleDecl*, swift::Lowering::TypeConverter&, swift::SILOptions&, swift::FileUnit*) + 1530
38 swift 0x00000001080423cb swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 55595
39 swift 0x0000000107fb84d3 main + 1283
40 libdyld.dylib 0x00007fff72e24cc9 start + 1
The text was updated successfully, but these errors were encountered:
I'm getting a segmentation fault when trying to archive the app if I use any introspection methods. I'm integrating via SPM. Compiled fine otherwise, it's really only when archiving that I run into the issue.
Here's the code that's causing the fault:
Here's the stack trace I get during archive:
The text was updated successfully, but these errors were encountered: