ephemeraHQ / xmtp-inbox-ios

ARCHIVED: See the README for info about an alternative iOS app you can try.
4 stars 0 forks source link

Bug: Get crash on Conversations on below line of code #115

Open krupanshu-simform opened 1 year ago

krupanshu-simform commented 1 year ago

Describe the bug

As I implemented the XMTP conversations, it always gets crashed on .forEach, Get Thread 49: EXC_BAD_ACCESS (code=1, address=0x8000000000000028)

        newConversations
            .filter { $0.peerAddress != client.address }
            .forEach { conversationsByTopic[$0.topic] = $0 }

        // TODO(perf): use DB to persist + sort
        return conversationsByTopic.values.sorted { a, b in
            a.createdAt < b.createdAt
        }

Expected behavior

It should not give the random crash.

Steps to reproduce the bug

Open Conversations screen, and keep refreshing the Listview with a timer. It will cause crash.

nakajima commented 1 year ago

Hey, thanks for the report. We've actually deprioritized this app in order to focus on helping out other folks building their own apps. As such, we're going to archive this repo.