evelyneee / accord

a discord client for modern macs
Other
396 stars 25 forks source link

Not working after login in Big Sur #65

Open nvmnghia opened 1 year ago

nvmnghia commented 1 year ago

I logged in successfully, but the app freezes ever since. Worse, the memory keeps going up, and CPU usage (reported by htop) is 100%. Some output when running via cmd:

[ContentView:64] h 
[ObjC:20] Successfully got orig pointer for an objc message hook 
[ContentView:80] hiiiii 
[Gateway:122] Connecting with stream compression enabled 
[Gateway:45] Preparing 
[Gateway:38] Ready up 
[Gateway:148] Got HELLO 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 5", intValue: 5), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 53", intValue: 53), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 64", intValue: 64), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 66", intValue: 66), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 67", intValue: 67), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 69", intValue: 69), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 73", intValue: 73), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 75", intValue: 75), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 76", intValue: 76), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 77", intValue: 77), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 78", intValue: 78), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 79", intValue: 79), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 85", intValue: 85), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 86", intValue: 86), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 87", intValue: 87), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 97", intValue: 97), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 98", intValue: 98), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 103", intValue: 103), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 104", intValue: 104), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Extensions:33] failed to decode typeMismatch(Swift.String, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "d", intValue: nil), CodingKeys(stringValue: "read_state", intValue: nil), CodingKeys(stringValue: "entries", intValue: nil), _JSONKey(stringValue: "Index 106", intValue: 106), CodingKeys(stringValue: "last_message_id", intValue: nil)], debugDescription: "Expected to decode String but found a number instead.", underlyingError: nil)) 
[Gateway:354] Hello, nvmnghia#0 !! 
[Gateway:356] Connected with session ID some_censored_session 
[ServerListView+Init:79] Binded to private channels 
[ServerListView+Misc:89] Binded to guild channels 
[ServerListView+Init:117] setting 
[ObjC:20] Successfully got orig pointer for an objc message hook 
[GuildView:72] SET CHANNEL 
[GuildView:72] SET CHANNEL 
Bound preference SizePreferenceKey tried to update multiple times per frame.
Bound preference SizePreferenceKey tried to update multiple times per frame.
Bound preference SizePreferenceKey tried to update multiple times per frame.
Bound preference SizePreferenceKey tried to update multiple times per frame.
[Gateway:410] subscribing 
[ChannelViewViewModel:560] ["some_number_censored", "this_too"] websocket request 
[Gateway:201] POSIXErrorCode: Socket is not connected 
[Gateway:43] Connection failed POSIXErrorCode: Socket is not connected 
[Gateway:206] Optional(Network.NWConnection.ContentContext) nil

I'm running a hackintosh Big Sur, everything is updated.

evelyneee commented 1 year ago

this is due to a bug in JSONDecoder on Big Sur, which I thought was fixed. I’ll fix it in the next update

nvmnghia commented 1 year ago

Does it only affect BS? Weird that Apple messed up a simple JSON decoder 😂