SwiftcordApp / Swiftcord

A fully native Discord client for macOS built 100% in Swift!
https://swiftcordapp.github.io/Swiftcord/
GNU General Public License v3.0
1.85k stars 84 forks source link

[Bug]: Loads infinitely after logging in #182

Open rmvdesign opened 10 months ago

rmvdesign commented 10 months ago

Describe the Bug

Bug Description

When logging in through the login mask, both through User/Pass and the QR code, Swiftcord just loads infinitely.

Actual Behaviour

Swiftcord spins and loads forever.

Expected Behavior

Swiftcord should log me in and proceed to its main view.

Reproducing the Bug

  1. Log in
  2. Wait

Version

0.7.1

Category

Login

Relevant Log Output

No response

Screenshots

Screenshot 2023-11-19 at 15 52 02

Additional Info

MacBook Pro 13, M1, macOS 14.0

QuixThe2nd commented 9 months ago

Facing this issue too on macOS 14, M2 Pro

RWCoding58 commented 9 months ago

Also experiencing this issue, not sure if its related to #170, #176 and quite a number of other similar ones

aljustiet commented 9 months ago

Same issue

BearTS commented 9 months ago

Facing the same issue

Bewinxed commented 9 months ago

Same here

vmstan commented 9 months ago

Can't get in either

HadesButGithub commented 9 months ago

Facing this issue as well. M2 MacBook Air on macOS Sonoma 14.2

appleshoops commented 9 months ago

Same issue on macOS Sonoma 14.1 with M2 Pro

honeybyhomo commented 8 months ago

Same here. MacBook Air M2, Sonoma 14.2.1

bnwa commented 8 months ago

macOS 14.2.1 on 0.7.1

jurifm2406 commented 8 months ago

same issue, MacBook Air M1, Sonoma 14.2.1, maybe it's because of Sonoma?

Christmaswreath commented 8 months ago

14.2.1 Mac mini M2, same issue.

isamirivers commented 8 months ago

MacBook Air M2, Sonoma 14.2.1, same issue

tikagan commented 8 months ago

same issue M2 MacBook Air on Ventura 13.4.1

lg2it commented 7 months ago

Same issue on MacBook Air M2, Sonoma 14.2.1

bpluhar commented 7 months ago

Same issue on MacBook Pro M3 Pro, Sonoma 14.3

aubreypwd commented 7 months ago

Same here +1

CleanShot 2024-01-31 at 10 20 24@2x

arcataroger commented 7 months ago

Same here :( M2 Max, Sonoma

EDIT: This was on the homebrew version.

Manually installing 0.7.1 from https://github.com/SwiftcordApp/Swiftcord/releases/download/v0.7.1/Swiftcord.zip fixed it for me

lm011 commented 7 months ago

Sonoma 14.3 2020 Macbook pro, same issue on all released versions, even manual installation of version above had infinite login loop

r00bit1984 commented 7 months ago

I have the same issue

OmerWow commented 7 months ago

same for me, mbp 13" intel 2020, latest mac os, installed from homebrew

Maplerxyz commented 6 months ago

Same for me Macbook Pro 2022 m2 14.0 (23A344)

Zackery commented 6 months ago

I am also experiencing the same issue, on both Homebrew and GitHub release.

lily-ku commented 6 months ago

Same thing on my end

FormalSnake commented 6 months ago

Same thing here on M1 macbook air on latest macOS

timpulver commented 6 months ago

For other people that have the same problem, please just add a  👍 to the first post. Otherwise everyone that subscribed to this thread gets a notification, which isn't very helpful.

SethBurkart123 commented 4 months ago

I attempted to build the latest version from source, but am having the same issue. I've basically tried on both Macos Sonoma and Ventura. I've got some logs which may be useful. Happy to help figure out where the issue is. I believe it to be part of discordKit:

Logs ``` Error Domain=NSCocoaErrorDomain Code=513 "“TemporaryItems” couldn’t be removed because you don’t have permission to access it." UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/var/folders/mb/3yck9l0s0wg8jlq2rt0xm2nc0000gn/T/io.cryptoalgo.swiftcord/TemporaryItems, NSUnderlyingError=0x600001a63c30 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}} [AppCenter] DEBUG: -[MSACDelegateForwarder setEnabledFromPlistForKey:]_block_invoke/278 Delegate forwarder for info.plist key 'AppCenterAppDelegateForwarderEnabled' enabled. It may use swizzling. Tracking event : [AppCenter] DEBUG: -[MSACSessionContext init]/42 2 session(s) in the history. [AppCenter] ERROR: -[MSACServiceAbstract canBeUsed]/58 Analytics service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first. WebContent process (0x1130684f0) took 1.167585 seconds to launch Navigation to https://discord.com/login allowed Error acquiring assertion: 0x11301c4e0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' for process with PID=75968, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit} Navigation to about:blank cancelled didFinishNavigation Navigation to about:blank cancelled 2024-04-20T19:50:32+1000 info RobustWebSocket : version=9 ws=wss://gateway.discord.gg/?v=9&encoding=json&compress=zlib-stream [DiscordKitCore] [CONNECT] rerender server 2024-04-20T19:50:32+1000 debug RobustWebSocket : reason=connection is reachable [DiscordKitCore] Reset backoff 2024-04-20T19:50:32+1000 warning RobustWebSocket : [DiscordKitCore] Reconnection in progress, not reconnecting rerender server rerender server 2024-04-20T19:50:33+1000 info RobustWebSocket : [DiscordKitCore] [CONNECTED] 2024-04-20T19:50:33+1000 trace DecompressionEngine : decompressed.count=124 original.count=115 [DiscordKitCore] Decompressed data 2024-04-20T19:50:33+1000 debug RobustWebSocket : reason=Hello payload received [DiscordKitCore] Invalidating conn timeout 2024-04-20T19:50:33+1000 info RobustWebSocket : heartbeat_interval=41250 [DiscordKitCore] [HELLO] 2024-04-20T19:50:33+1000 debug RobustWebSocket : interval=41.25 [DiscordKitCore] Start heartbeating 2024-04-20T19:50:33+1000 info RobustWebSocket : intents=nil [DiscordKitCore] [IDENTIFY] 2024-04-20T19:50:33+1000 trace RobustWebSocket : data=nil opcode=identify seq=-1 [DiscordKitCore] Outgoing Payload 2024-04-20T19:50:34+1000 trace DecompressionEngine : decompressed.count=3283172 original.count=496844 [DiscordKitCore] Decompressed data 2024-04-20T19:50:34+1000 warning RobustWebSocket : error=The data couldn’t be read because it is missing. [DiscordKitCore] Error decoding message 2024-04-20T19:50:34+1000 trace DecompressionEngine : decompressed.count=106255 original.count=15270 [DiscordKitCore] Decompressed data 2024-04-20T19:50:34+1000 trace DecompressionEngine : decompressed.count=626 original.count=248 [DiscordKitCore] Decompressed data 2024-04-20T19:50:34+1000 trace DiscordGateway : [DiscordKit] [EVENT] Dispatched event rerender server rerender server 2024-04-20T19:50:34+1000 trace DiscordGateway : [DiscordKit] [EVENT] Dispatched event 2024-04-20T19:50:35+1000 trace DecompressionEngine : decompressed.count=850 original.count=62 [DiscordKitCore] Decompressed data 2024-04-20T19:50:35+1000 trace DiscordGateway : [DiscordKit] [EVENT] Dispatched event 2024-04-20T19:50:36+1000 trace DecompressionEngine : decompressed.count=9550 original.count=2977 [DiscordKitCore] Decompressed data 2024-04-20T19:50:36+1000 warning RobustWebSocket : error=The data couldn’t be read because it isn’t in the correct format. [DiscordKitCore] Error decoding message Error acquiring assertion: 0x11301d7a0 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' for process with PID=75983, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit} ```
cryptoAlgorithm commented 3 months ago

Hi everyone! I understand that this has been a long-recurring issue, and it's one of the things the next generation of Swiftcord aims to resolve! Find out more at this discussion: #189

kingomarnajjar commented 3 months ago

For other people that have the same problem, please just add a  👍 to the first post. Otherwise everyone that subscribed to this thread gets a notification, which isn't very helpful.

same