mautrix / imessage

A Matrix-iMessage puppeting bridge
https://go.mau.fi/mautrix-imessage/
GNU Affero General Public License v3.0
348 stars 37 forks source link

Crash when getting group avatar #172

Closed ChaseThomas closed 8 months ago

ChaseThomas commented 8 months ago

Logs below, with some identifiers and memory addresses removed

2024-01-23T20:04:30-05:00 DBG Received incoming message identifier in iMessage;+; () module=iMessage 2024-01-23T20:04:30-05:00 INF Creating Matrix room to handle message portal_guid=iMessage;+; 2024-01-23T20:04:30-05:00 DBG Getting chat info to create Matrix room portal_guid=iMessage;+; panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1055ce288]

goroutine 104 [running]: go.mau.fi/mautrix-imessage/imessage/bluebubbles.(*blueBubbles).GetGroupAvatar(, {, })

/imessage/bluebubbles/api.go:614 +0x98 main.(*Portal).CreateMatrixRoom(, , ) /portal.go:837 +0x2f4 main.(*iMessageHandler).HandleMessage(, ) /imessage/imessage.go:198 +0x358 main.(*iMessageHandler).Start() /imessage/imessage.go:56 +0x294 created by main.(*IMBridge).Start in goroutine 1 /imessage/main.go:536 +0x5f0 Bridge exited exit status 2
cnuss commented 8 months ago

experienced the same problem, pushing a fix in my next commit tonight

ChaseThomas commented 8 months ago

Thank you for all your work!