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]: It Crashes #188

Open joelemiliano opened 4 months ago

joelemiliano commented 4 months ago

Describe the Bug

Bug Description The app crashes Actual Behaviour It crashes Expected Behavior Open the app

Reproducing the Bug

1... Open the app

Version

v0.6.1

Category

Other

Relevant Log Output

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Swiftcord [35982]
Path:                  /Applications/Swiftcord.app/Contents/MacOS/Swiftcord
Identifier:            io.cryptoalgo.swiftcord
Version:               0.7.1 (18)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-05-12 21:28:38.4458 -0600
OS Version:            macOS 12.7.4 (21H1123)
Report Version:        12
Anonymous UUID:        F42BFA93-A22F-FD2F-2D84-EEF244C3C4F5

Sleep/Wake UUID:       F085159C-525A-42E2-B94A-577B48A7639F

Time Awake Since Boot: 230000 seconds
Time Since Wake:       561 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: '@rpath/Lottie.framework/Versions/A/Lottie'
Referenced from: '/Applications/Swiftcord.app/Contents/MacOS/Swiftcord'
Reason: tried: '' (code signature invalid (errno=1) sliceOffset=0x00004000, codeBlobOffset=0x002218C0, codeBlobSize=0x0000B7C0 for ''), '' (code signature invalid (errno=1) sliceOffset=0x00004000, codeBlobOffset=0x002218C0, codeBlobSize=0x0000B7C0 for ''), '' (no such file), '' (no such file)
(terminated at launch; ignore backtrace)

Thread 0 Crashed:
0   dyld                                   0x10c8da9a2 __abort_with_payload + 10
1   dyld                                   0x10c8f0ab2 abort_with_payload_wrapper_internal + 80
2   dyld                                   0x10c8f0ae4 abort_with_payload + 9
3   dyld                                   0x10c89e699 dyld4::halt(char const*) + 615
4   dyld                                   0x10c89a5b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3995
5   dyld                                   0x10c8994e4 start + 388

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000002000209  rbx: 0x0000000000000000  rcx: 0x00007ff7b91f0588  rdx: 0x00007ff7b91f09f0
  rdi: 0x0000000000000006  rsi: 0x0000000000000001  rbp: 0x00007ff7b91f05d0  rsp: 0x00007ff7b91f0588
   r8: 0x00007ff7b91f05f0   r9: 0x0000000000000000  r10: 0x0000000000000073  r11: 0x0000000000000246
  r12: 0x0000000000000073  r13: 0x00007ff7b91f09f0  r14: 0x0000000000000001  r15: 0x0000000000000006
  rip: 0x000000010c8da9a2  rfl: 0x0000000000000246  cr2: 0x0000000000000000

Logical CPU:     0
Error Code:      0x02000209 
Trap Number:     133

Binary Images:
       0x10c894000 -        0x10c8fffff dyld (*) <430a12c9-134a-3904-9d88-c2df933fdf54> /usr/lib/dyld

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=16.2M resident=0K(0%) swapped_out_or_unallocated=16.2M(100%)
Writable regions: Total=9508K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9508K(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
STACK GUARD                       56.0M        1 
Stack                             8192K        1 
VM_ALLOCATE                         12K        3 
__DATA                             656K        3 
__DATA_CONST                       288K        2 
__LINKEDIT                         9.8M        4 
__TEXT                            6560K        2 
dyld private memory               1024K        1 
===========                     =======  ======= 
TOTAL                             82.1M       17 

-----------
Full Report
-----------

{"app_name":"Swiftcord","timestamp":"2024-05-12 21:28:38.00 -0600","app_version":"0.7.1","slice_uuid":"1041b8f6-a490-3a44-86be-3e66927d9194","build_version":"18","platform":1,"bundleID":"io.cryptoalgo.swiftcord","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.7.4 (21H1123)","incident_id":"66AE545F-E52D-48BE-9DF8-D5F16B2E2A7D","name":"Swiftcord"}
{
  "uptime" : 230000,
  "procLaunch" : "2024-05-12 21:28:38.3105 -0600",
  "procRole" : "Default",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookAir7,2",
  "procStartAbsTime" : 236424392433647,
  "coalitionID" : 46602,
  "osVersion" : {
    "train" : "macOS 12.7.4",
    "build" : "21H1123",
    "releaseType" : "User"
  },
  "captureTime" : "2024-05-12 21:28:38.4458 -0600",
  "incident" : "66AE545F-E52D-48BE-9DF8-D5F16B2E2A7D",
  "bug_type" : "309",
  "pid" : 35982,
  "procExitAbsTime" : 236424519895971,
  "cpuType" : "X86-64",
  "procName" : "Swiftcord",
  "procPath" : "\/Applications\/Swiftcord.app\/Contents\/MacOS\/Swiftcord",
  "bundleInfo" : {"CFBundleShortVersionString":"0.7.1","CFBundleVersion":"18","CFBundleIdentifier":"io.cryptoalgo.swiftcord"},
  "storeInfo" : {"deviceIdentifierForVendor":"CABED779-2D9D-5366-9ECF-32CD81CA4C75","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "io.cryptoalgo.swiftcord",
  "crashReporterKey" : "F42BFA93-A22F-FD2F-2D84-EEF244C3C4F5",
  "wakeTime" : 561,
  "sleepWakeUUID" : "F085159C-525A-42E2-B94A-577B48A7639F",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: '@rpath\/Lottie.framework\/Versions\/A\/Lottie'","Referenced from: '\/Applications\/Swiftcord.app\/Contents\/MacOS\/Swiftcord'","Reason: tried: '' (code signature invalid (errno=1) sliceOffset=0x00004000, codeBlobOffset=0x002218C0, codeBlobSize=0x0000B7C0 for ''), '' (code signature invalid (errno=1) sliceOffset=0x00004000, codeBlobOffset=0x002218C0, codeBlobSize=0x0000B7C0 for ''), '' (no such file), '' (no such file)"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":2262139,"threadState":{"r13":{"value":140701939468784},"rax":{"value":33554953},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":1},"rsi":{"value":1},"r8":{"value":140701939467760},"cr2":{"value":0},"rdx":{"value":140701939468784},"r10":{"value":115},"r9":{"value":0},"r15":{"value":6},"rbx":{"value":0},"trap":{"value":133},"err":{"value":33554953},"r11":{"value":582},"rip":{"value":4505577890,"matchesCrashFrame":1},"rbp":{"value":140701939467728},"rsp":{"value":140701939467656},"r12":{"value":115},"rcx":{"value":140701939467656},"flavor":"x86_THREAD_STATE","rdi":{"value":6}},"frames":[{"imageOffset":289186,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":0},{"imageOffset":379570,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":80,"imageIndex":0},{"imageOffset":379620,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":0},{"imageOffset":42649,"symbol":"dyld4::halt(char const*)","symbolLocation":615,"imageIndex":0},{"imageOffset":26037,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3995,"imageIndex":0},{"imageOffset":21732,"symbol":"start","symbolLocation":388,"imageIndex":0}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4505288704,
    "size" : 442368,
    "uuid" : "430a12c9-134a-3904-9d88-c2df933fdf54",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  }
],
  "sharedCache" : {
  "base" : 140703513575424,
  "size" : 19331678208,
  "uuid" : "49e18b84-2cd0-3c1e-9270-0e198c2fdf68"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=16.2M resident=0K(0%) swapped_out_or_unallocated=16.2M(100%)\nWritable regions: Total=9508K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=9508K(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nSTACK GUARD                       56.0M        1 \nStack                             8192K        1 \nVM_ALLOCATE                         12K        3 \n__DATA                             656K        3 \n__DATA_CONST                       288K        2 \n__LINKEDIT                         9.8M        4 \n__TEXT                            6560K        2 \ndyld private memory               1024K        1 \n===========                     =======  ======= \nTOTAL                             82.1M       17 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {

      },
      "deploymentId" : 240000025
    }
  ],
  "experiments" : [

  ]
}
}

Screenshots

No response

Additional Info

No response

SternXD commented 4 months ago
image

same thing here

LPFchan commented 4 months ago
SCR-20240515-bntc

welp same here

Else00 commented 3 months ago

I tried cloning the repo, open the project with xcode and compiled it and now it works fine.

cryptoAlgorithm commented 3 months ago

Hey, this repo isn't actively developed any longer, however there's a newer and (very significantly improved) version of Swiftcord coming up soon! Read more in this discussion: #189