Open
Description
Toolchain is Swift Development Snapshot of main
on 2023-04-03. Full compiler error below:
Failed to reconstruct type for $s7SwiftUI15ModifiedContentVyACyAA6ZStackVyAA012_ConditionalD0VyACyAA4ViewP12UIComponentsE12optionalSize4sizeQrAJ08OptionalJ0Vy12CoreGraphics7CGFloatVG_tFQOyACyAA5ImageVAA18_AspectRatioLayoutVG_Qo_AA11_ClipEffectVyAA9RectangleVGGAWGSgGAA16_OverlayModifierVyACyACyACyACyACyAA4TextVAA08_PaddingS0VGAA022_EnvironmentKeyWritingX0VyAA4FontVSgGGA14_yAA5ColorVSgGGAA013_TraitWritingX0VyAA18TransitionTraitKeyVGGAA07_OffsetU0VGGGA7_yACyACyACyAJ11ProgressArcVyAA05EmptyG0VAQGAA06_FrameS0VGA29_GA23_GSgGGD
Original type:
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ZStack
(bound_generic_enum_type decl=Swift.(file).Optional
(bound_generic_struct_type decl=SwiftUI.(file)._ConditionalContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(opaque_type address=0x7ff3a8177da8
(interface_type=generic_type_param_type depth=1 index=0) conforms_to=SwiftUI.(file).View decl=UIComponents.(file).View extension.optionalSize(size:)@/<redacted>/Sources/UIComponents/Core/Utilities/OptionalSize.swift:51:10
(substitution_map generic_signature=<τ_0_0 where τ_0_0 : View>
(substitution τ_0_0 -> ModifiedContent<Image, _AspectRatioLayout>)
(conformance type=τ_0_0
(specialized_conformance type=ModifiedContent<Image, _AspectRatioLayout> protocol=View
(substitution_map generic_signature=<τ_0_0, τ_0_1 where τ_0_0 : View, τ_0_1 : ViewModifier>
(substitution τ_0_0 -> Image)
(substitution τ_0_1 -> _AspectRatioLayout)
(conformance type=τ_0_0
(normal_conformance type=Image protocol=View lazy))
(conformance type=τ_0_1
(normal_conformance type=_AspectRatioLayout protocol=ViewModifier lazy)))
(conditional requirements unable to be computed)
(normal_conformance type=ModifiedContent<Content, Modifier> protocol=View lazy
conforms_to: Content View
conforms_to: Modifier ViewModifier)))))
(bound_generic_struct_type decl=SwiftUI.(file)._ClipEffect
(struct_type decl=SwiftUI.(file).Rectangle)))
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(struct_type decl=SwiftUI.(file).Image)
(struct_type decl=SwiftUI.(file)._AspectRatioLayout)))))
(bound_generic_struct_type decl=SwiftUI.(file)._OverlayModifier
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(struct_type decl=SwiftUI.(file).Text)
(struct_type decl=SwiftUI.(file)._PaddingLayout))
(bound_generic_struct_type decl=SwiftUI.(file)._EnvironmentKeyWritingModifier
(bound_generic_enum_type decl=Swift.(file).Optional
(struct_type decl=SwiftUI.(file).Font))))
(bound_generic_struct_type decl=SwiftUI.(file)._EnvironmentKeyWritingModifier
(bound_generic_enum_type decl=Swift.(file).Optional
(struct_type decl=SwiftUI.(file).Color))))
(bound_generic_struct_type decl=SwiftUI.(file)._TraitWritingModifier
(struct_type decl=SwiftUI.(file).TransitionTraitKey)))
(struct_type decl=SwiftUI.(file)._OffsetEffect))))
(bound_generic_struct_type decl=SwiftUI.(file)._OverlayModifier
(bound_generic_enum_type decl=Swift.(file).Optional
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=SwiftUI.(file).ModifiedContent
(bound_generic_struct_type decl=UIComponents.(file).ProgressArc@/<redacted>/Sources/UIComponents/Core/Progress/ProgressArc.swift:10:15
(struct_type decl=SwiftUI.(file).EmptyView)
(struct_type decl=CoreFoundation.(file).CGFloat))
(struct_type decl=SwiftUI.(file)._FrameLayout))
(bound_generic_struct_type decl=SwiftUI.(file)._TraitWritingModifier
(struct_type decl=SwiftUI.(file).TransitionTraitKey)))
(bound_generic_struct_type decl=SwiftUI.(file)._EnvironmentKeyWritingModifier
(bound_generic_enum_type decl=Swift.(file).Optional
(struct_type decl=SwiftUI.(file).Color)))))))
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Pass '-Xfrontend -disable-round-trip-debug-types' to disable this assertion.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-04-03-a.xctoolchain/usr/bin/swift-frontend -frontend -c -filelist /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/sources-2 -primary-file /<redacted>/Sources/UIComponents/Core/Web/SwiftUIWebView.swift -primary-file /<redacted>/Sources/UIComponents/Core/Utilities/ChangeStream.swift -primary-file /<redacted>/Sources/UIComponents/Core/Web/WebImageButton.swift -primary-file /<redacted>/Sources/UIComponents/Deprecated/AnimatedRow/AnimatedRow.swift -primary-file /<redacted>/Sources/UIComponents/Deprecated/Button/SequenceModifiers.swift -primary-file /<redacted>/Sources/UIComponents/Deprecated/Button/SequenceView.swift -primary-file /<redacted>/Sources/UIComponents/Deprecated/Button/ToggleButton-Deprecated.swift -primary-file /<redacted>/Sources/UIComponents/Deprecated/Button/ToggleButtonStyle-Deprecated.swift -primary-file /<redacted>/Sources/UIComponents/Deprecated/Card/CardModifier.swift -supplementary-output-file-map /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/supplementaryOutputs-137 -target x86_64-apple-macos11.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -I /<redacted>/Build/Products/OptimizedIncremental -F /<redacted>/Build/Products/OptimizedIncremental/PackageFrameworks -F /<redacted>/Build/Products/OptimizedIncremental -no-color-diagnostics -g -module-cache-path /Users/Thomas/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -O -D SWIFT_PACKAGE -D Xcode -warn-long-expression-type-checking=200 -warn-long-function-bodies=300 -sil-verify-none -serialize-debugging-options -enable-bare-slash-regex -empty-abi-descriptor -Xcc -working-directory -Xcc /<redacted> -resource-dir /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2023-04-03-a.xctoolchain/usr/lib/swift -Xcc -Xclang -Xcc -target-feature -Xcc -Xclang -Xcc +fma,+avx2 -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/OpenSSL.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/stb_image.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/stb_image_resize.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/stb_image_write.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/miniz.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/tinyexr.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/LodePNG.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/CWuffs.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/SPIRV-Cross.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/SubstrateCExtras.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/ZippyJSONCFamily.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/JJLISO8601DateFormatter.modulemap -Xcc -fmodule-map-file=/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps/CImGui.modulemap -Xcc -I/<redacted>/OptimizedIncremental/UIComponents.build/swift-overrides.hmap -Xcc -I/<redacted>/Build/Products/OptimizedIncremental/include -Xcc -I/<redacted>/Sources/CAssimp -Xcc -I/<redacted>/Sources/CGeometryTools/include -Xcc -I/<redacted>/Sources/CImGuizmo/include -Xcc -I/<redacted>/Sources/FileWrapperExtensions -Xcc -I/<redacted>/Sources/LTC/include -Xcc -I/<redacted>/Sources/MPFit/include -Xcc -I/<redacted>/Sources/MikkTSpace/include -Xcc -I/<redacted>/SDK/Sources/MeshOptimizer/include -Xcc -I/<redacted>/SDK/Sources/resvg -Xcc -I/<redacted>/Sources/OpenSubdiv/include -Xcc -I/<redacted>/Sources/SSCryptoLib/include -Xcc -I/<redacted>/SourcePackages/checkouts/Cstb/Sources/stb_image/include -Xcc -I/<redacted>/SourcePackages/checkouts/Cstb/Sources/stb_image_write/include -Xcc -I/<redacted>/SourcePackages/checkouts/Cstb/Sources/stb_image_resize/include -Xcc -I/<redacted>/SourcePackages/checkouts/Cstb/Sources/miniz/include -Xcc -I/<redacted>/SourcePackages/checkouts/Cstb/Sources/tinyexr/include -Xcc -I/<redacted>/SourcePackages/checkouts/LodePNG-SPM/Sources/LodePNG/include -Xcc -I/<redacted>/SourcePackages/checkouts/Wuffs-SPM/Sources/CWuffs/include -Xcc -I/<redacted>/SourcePackages/checkouts/swift-numerics/Sources/_NumericsShims/include -Xcc -I/<redacted>/SourcePackages/checkouts/SPIRV-Cross-SPM/Sources/SPIRV-Cross/include -Xcc -I/<redacted>/SourcePackages/checkouts/SubstrateRender/Sources/SubstrateCExtras/include -Xcc -I/<redacted>/SourcePackages/checkouts/SwiftImGui/Sources/CImGui/include -Xcc -I/<redacted>/SourcePackages/checkouts/swift-atomics/Sources/_AtomicsShims/include -Xcc -I/<redacted>/SourcePackages/checkouts/ZippyJSONCFamily/Sources/ZippyJSONCFamily/include -Xcc -I/<redacted>/SourcePackages/checkouts/JJLISO8601DateFormatter/Sources/JJLISO8601DateFormatter/include -Xcc -I/<redacted>/SourcePackages/checkouts/openssl/Sources/OpenSSL/include -Xcc -I/<redacted>/Build/Intermediates.noindex/GeneratedModuleMaps -Xcc -I/<redacted>/OptimizedIncremental/UIComponents.build/DerivedSources-normal/x86_64 -Xcc -I/<redacted>/OptimizedIncremental/UIComponents.build/DerivedSources/x86_64 -Xcc -I/<redacted>/OptimizedIncremental/UIComponents.build/DerivedSources -Xcc -DSWIFT_PACKAGE=1 -module-name UIComponents -frontend-parseable-output -disable-clang-spi -target-sdk-version 13.3 -target-sdk-name macosx13.3 -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/SwiftUIWebView.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/ChangeStream.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/WebImageButton.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/AnimatedRow.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/SequenceModifiers.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/SequenceView.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/ToggleButton-Deprecated.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/ToggleButtonStyle-Deprecated.o -o /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/CardModifier.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/SwiftUIWebView.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/ChangeStream.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/WebImageButton.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/AnimatedRow.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/SequenceModifiers.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/SequenceView.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/ToggleButton-Deprecated.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/ToggleButtonStyle-Deprecated.o -index-unit-output-path /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/CardModifier.o
1. Apple Swift version 5.9-dev (LLVM f5c0e1516308d32, Swift 224b4a51b406e66)
2. Compiling with the current language version
3. Contents of /<redacted>/OptimizedIncremental/UIComponents.build/Objects-normal/x86_64/sources-2:
---
---
4. While evaluating request IRGenRequest(IR Generation for file "/<redacted>/Sources/UIComponents/Core/Web/WebImageButton.swift")
5. While emitting IR SIL function "@$s12UIComponents14WebImageButtonV4bodyQrvg".
for getter for body (at /<redacted>/Sources/UIComponents/Core/Web/WebImageButton.swift:150:16)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x0000000112c01a17 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x0000000112c00c85 llvm::sys::RunSignalHandlers() + 85
2 swift-frontend 0x0000000112c02060 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff80532f5ed _sigtramp + 29
4 libsystem_platform.dylib 0x0000000000000010 _sigtramp + 18446603370493708864
5 libsystem_c.dylib 0x00007ff805228b45 abort + 123
6 swift-frontend 0x0000000112cd3033 (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) (.cold.8) + 259
7 swift-frontend 0x000000010d7c5aaa (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateType(swift::irgen::DebugTypeInfo) + 5706
8 swift-frontend 0x000000010d7c624b (anonymous namespace)::IRGenDebugInfoImpl::createParameterType(llvm::SmallVectorImpl<llvm::Metadata*>&, swift::SILType) + 107
9 swift-frontend 0x000000010d7c5e75 (anonymous namespace)::IRGenDebugInfoImpl::createParameterTypes(swift::CanTypeWrapper<swift::SILFunctionType>) + 373
10 swift-frontend 0x000000010d7bd744 (anonymous namespace)::IRGenDebugInfoImpl::emitFunction(swift::SILDebugScope const*, llvm::Function*, swift::SILFunctionTypeRepresentation, swift::SILType, swift::DeclContext*, llvm::StringRef) + 2052
11 swift-frontend 0x000000010d7be22c (anonymous namespace)::IRGenDebugInfoImpl::emitFunction(swift::SILFunction&, llvm::Function*) + 188
12 swift-frontend 0x000000010d7bcc9d (anonymous namespace)::IRGenDebugInfoImpl::getOrCreateScope(swift::SILDebugScope const*) + 973
13 swift-frontend 0x000000010d7bb89f (anonymous namespace)::IRGenDebugInfoImpl::setCurrentLoc(swift::irgen::IRBuilder&, swift::SILDebugScope const*, swift::SILLocation) + 79
14 swift-frontend 0x000000010d8098b3 (anonymous namespace)::IRGenSILFunction::emitSILFunction() + 10387
15 swift-frontend 0x000000010d806a9a swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 1722
16 swift-frontend 0x000000010d68331f swift::irgen::IRGenerator::emitGlobalTopLevel(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>> const&) + 767
17 swift-frontend 0x000000010d7a60c5 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const + 2405
18 swift-frontend 0x000000010d805e9d swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::__1::integer_sequence<unsigned long, 0ul>) const + 221
19 swift-frontend 0x000000010d805d7e swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) + 14
20 swift-frontend 0x000000010d7b5df9 llvm::Expected<swift::IRGenRequest::OutputType> swift::Evaluator::getResultUncached<swift::IRGenRequest>(swift::IRGenRequest const&) + 409
21 swift-frontend 0x000000010d7a88b3 swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) + 339
22 swift-frontend 0x000000010d30a5f6 performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>>, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 1990
23 swift-frontend 0x000000010d30962b swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 811
24 swift-frontend 0x000000010d30bb01 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4129
25 swift-frontend 0x000000010d166876 swift::mainEntry(int, char const**) + 1254
26 dyld 0x00007ff804fa841f start + 1903