EnyoYoen / Fast-Discord

A new Discord client made in C++ and Qt
MIT License
169 stars 9 forks source link

Segmentation Fault when viewing any channel #24

Open bitfl0wer opened 1 year ago

bitfl0wer commented 1 year ago

I built Fast-Discord according to the instructions in README.md, using Homebrew for deps and cmake for compiling on macOS 13.0 22A380 arm64 (MacBook Pro M1 2020)

If I open a channel that has messages in it (empty channels do not seem to cause this problem), the program crashes with the following output: [1] 90024 segmentation fault ./Fast-Discord

I launched Fast-Discord using ./Fast-Discord in the bin-folder.

bitfl0wer commented 1 year ago

LLDB Output on replicating this crash:

╰─$ lldb ./Fast-Discord
(lldb) target create "./Fast-Discord"
Current executable set to '/Users/flori/Fast-Discord/bin/Fast-Discord' (arm64).
(lldb) run
Process 91135 launched: '/Users/flori/Fast-Discord/bin/Fast-Discord' (arm64)
2023-01-12 13:07:59.429696+0100 Fast-Discord[91135:11904825] [qt.qpa.fonts] Populating font family aliases took 206 ms. Replace uses of missing font family "Whitney" with one that exists to avoid this cost.
Process 91135 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x3ff0000000000000)
    frame #0: 0x000000010006ddc8 Fast-Discord`QMap<QString, QVector<Api::GuildMember*> >::size() const + 12
Fast-Discord`QMap<QString, QVector<Api::GuildMember*> >::size:
->  0x10006ddc8 <+12>: ldr    x8, [x8]
    0x10006ddcc <+16>: ldr    w0, [x8, #0x4]
    0x10006ddd0 <+20>: add    sp, sp, #0x10
    0x10006ddd4 <+24>: ret    
Target 0: (Fast-Discord) stopped.
(lldb)