This message was deleted.
# helpdesk
s
This message was deleted.
a
Figured! I was trying to get participants before connecting to the room
Nope, it's not that. Still open for an ideas.
d
Can you share the full stack trace? CC: @better-house-11852
b
Are you using the
main
branch ?
a
Looking at main branch of https://github.com/livekit-examples/swift-example/ to implement things.
Copy code
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Duplicate keys of type 'Participant' were found in a Dictionary.
This usually means either that the type violates Hashable's requirements, or
that members of such a dictionary were mutated after insertion.
    frame #0: 0x000000019294dcac libswiftCore.dylib`_swift_runtime_on_report
    frame #1: 0x00000001929eeb54 libswiftCore.dylib`_swift_stdlib_reportFatalError + 172
    frame #2: 0x00000001926accf4 libswiftCore.dylib`function signature specialization <Arg[1] = [Closure Propagated : closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in closure #1 (Swift.UnsafeBufferPointer<Swift.UInt8>) -> () in Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, flags: Swift.UInt32) -> Swift.Never, Argument Types : [Swift.UnsafeBufferPointer<Swift.UInt8>Swift.UInt32]> of generic specialization <()> of Swift.String.withUTF8<τ_0_0>((Swift.UnsafeBufferPointer<Swift.UInt8>) throws -> τ_0_0) throws -> τ_0_0 + 152
    frame #3: 0x000000019268d444 libswiftCore.dylib`Swift._assertionFailure(_: Swift.StaticString, _: Swift.String, flags: Swift.UInt32) -> Swift.Never + 160
    frame #4: 0x00000001927a3078 libswiftCore.dylib`merged Swift.KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTS(Any.Type) -> Swift.Never + 2100
    frame #5: 0x000000019279d5d0 libswiftCore.dylib`Swift.KEY_TYPE_OF_DICTIONARY_VIOLATES_HASHABLE_REQUIREMENTS(Any.Type) -> Swift.Never + 72
    frame #6: 0x0000000192722fb4 libswiftCore.dylib`Swift._NativeDictionary.setValue(_: __owned τ_0_1, forKey: τ_0_0, isUnique: Swift.Bool) -> () + 404
    frame #7: 0x0000000192704318 libswiftCore.dylib`Swift.Dictionary._Variant.setValue(_: __owned τ_0_1, forKey: τ_0_0) -> () + 224
    frame #8: 0x00000001926c4c9c libswiftCore.dylib`Swift.Dictionary.subscript.setter : (τ_0_0) -> Swift.Optional<τ_0_1> + 296
    frame #9: 0x00000001c4c346b0 SwiftUI`___lldb_unnamed_symbol212152 + 2276
    frame #10: 0x00000001c4c361ec SwiftUI`___lldb_unnamed_symbol212163 + 1168
    frame #11: 0x00000001c4c375b8 SwiftUI`___lldb_unnamed_symbol212170 + 36
    frame #12: 0x00000001c4c3abc0 SwiftUI`___lldb_unnamed_symbol212314 + 36
    frame #13: 0x00000001c4c3af88 SwiftUI`___lldb_unnamed_symbol212336 + 56
    frame #14: 0x00000001c535a458 SwiftUI`___lldb_unnamed_symbol271699 + 48
    frame #15: 0x00000001c5358f7c SwiftUI`___lldb_unnamed_symbol271671 + 64
    frame #16: 0x00000001c3f64d6c SwiftUI`___lldb_unnamed_symbol118461 + 308
    frame #17: 0x00000001c3f63bbc SwiftUI`___lldb_unnamed_symbol118460 + 392
    frame #18: 0x00000001c4185be4 SwiftUI`___lldb_unnamed_symbol123292 + 20
    frame #19: 0x00000001b2522750 AttributeGraph`AG::Graph::UpdateStack::update() + 504
    frame #20: 0x00000001b2522ee0 AttributeGraph`AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 432
    frame #21: 0x00000001b25308d0 AttributeGraph`AG::Subgraph::update(unsigned int) + 828
    frame #22: 0x00000001c5003418 SwiftUI`___lldb_unnamed_symbol243990 + 360
    frame #23: 0x00000001c5004450 SwiftUI`___lldb_unnamed_symbol244048 + 20
    frame #24: 0x00000001c48442e8 SwiftUI`___lldb_unnamed_symbol178878 + 20
    frame #25: 0x00000001c50cfa98 SwiftUI`___lldb_unnamed_symbol249686 + 88
    frame #26: 0x00000001c50c4ab4 SwiftUI`___lldb_unnamed_symbol249516 + 92
    frame #27: 0x00000001c483c7c4 SwiftUI`___lldb_unnamed_symbol178655 + 56
    frame #28: 0x00000001c500441c SwiftUI`___lldb_unnamed_symbol244047 + 148
    frame #29: 0x00000001c5004354 SwiftUI`___lldb_unnamed_symbol244046 + 68
    frame #30: 0x00000001c4aff7a0 SwiftUI`___lldb_unnamed_symbol203237 + 20
    frame #31: 0x00000001c429ede4 SwiftUI`___lldb_unnamed_symbol139218 + 108
    frame #32: 0x00000001c429ed68 SwiftUI`___lldb_unnamed_symbol139217 + 32
    frame #33: 0x00000001c429ee54 SwiftUI`___lldb_unnamed_symbol139219 + 56
    frame #34: 0x00000001803ed648 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
    frame #35: 0x00000001803e804c CoreFoundation`__CFRunLoopDoObservers + 528
    frame #36: 0x00000001803e8504 CoreFoundation`__CFRunLoopRun + 968
    frame #37: 0x00000001803e7d28 CoreFoundation`CFRunLoopRunSpecific + 572
    frame #38: 0x000000018e7cdbc0 GraphicsServices`GSEventRunModal + 160
    frame #39: 0x00000001852bafdc UIKitCore`-[UIApplication _run] + 868
    frame #40: 0x00000001852bec54 UIKitCore`UIApplicationMain + 124
    frame #41: 0x00000001c4b04524 SwiftUI`___lldb_unnamed_symbol203555 + 172
    frame #42: 0x00000001c4b043c4 SwiftUI`___lldb_unnamed_symbol203553 + 140
    frame #43: 0x00000001c4816108 SwiftUI`static SwiftUI.App.main() -> () + 80
    frame #44: 0x0000000104a2ba08 Minutes Club`static ClubApp.$main(self=Minutes_Club.ClubApp) at <compiler-generated>:0
  * frame #45: 0x0000000104a2bba8 Minutes Club`main at ClubApp.swift:13:8
    frame #46: 0x0000000105741558 dyld_sim`start_sim + 20
    frame #47: 0x000000010584a058 dyld`start + 2224
I made it work. No idea how.
🙌 1
b
Thanks for the update, please let me know if you still see the same issue.