Opening a Chat Message can cause Crash if the Person doesn't have them as a contact #6

Closed
opened 2018-12-18 18:54:52 +00:00 by sarah · 2 comments
Owner

goroutine 940 [running]:
bounce/go/gothings.(*InterfaceState).AddMessage(0xc000090c40, 0xc000298000)
/home/sarah/workspace/src/bounce/go/gothings/uistate.go:98 +0x1db
bounce/go/gothings.(*InterfaceState).AddMessage-fm(0xc000298000)
/home/sarah/workspace/src/bounce/main.go:138 +0x34
bounce/go/cwtchthings.(*ChatChannelListener).ChatMessage(0xc0001ae020, 0x213c1eb420, 0xbefe6e658c82a9e4, 0x21e8f1d96c, 0x184bf00, 0xc0001ba068, 0x6, 0xc0001d7780)
/home/sarah/workspace/src/bounce/go/cwtchthings/chatchannellistener.go:41 +0x144
git.openprivacy.ca/openprivacy/libricochet-go/channels.(*ChatChannel).Packet(0xc00000c7c0, 0xc00022a040, 0x12, 0x12)
/home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/channels/chatchannel.go:140 +0x154
git.openprivacy.ca/openprivacy/libricochet-go/connection.(*Connection).Process.func5()
/home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/connection/connection.go:363 +0x52
git.openprivacy.ca/openprivacy/libricochet-go/connection.(*Connection).processUserCallback.func1(0xc000256000, 0xc00022e120)
/home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/connection/connection.go:254 +0x4d
created by git.openprivacy.ca/openprivacy/libricochet-go/connection.(*Connection).processUserCallback
/home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/connection/connection.go:252 +0x77
sarah@cassandra ~/w/s/bounce>

goroutine 940 [running]: bounce/go/gothings.(*InterfaceState).AddMessage(0xc000090c40, 0xc000298000) /home/sarah/workspace/src/bounce/go/gothings/uistate.go:98 +0x1db bounce/go/gothings.(*InterfaceState).AddMessage-fm(0xc000298000) /home/sarah/workspace/src/bounce/main.go:138 +0x34 bounce/go/cwtchthings.(*ChatChannelListener).ChatMessage(0xc0001ae020, 0x213c1eb420, 0xbefe6e658c82a9e4, 0x21e8f1d96c, 0x184bf00, 0xc0001ba068, 0x6, 0xc0001d7780) /home/sarah/workspace/src/bounce/go/cwtchthings/chatchannellistener.go:41 +0x144 git.openprivacy.ca/openprivacy/libricochet-go/channels.(*ChatChannel).Packet(0xc00000c7c0, 0xc00022a040, 0x12, 0x12) /home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/channels/chatchannel.go:140 +0x154 git.openprivacy.ca/openprivacy/libricochet-go/connection.(*Connection).Process.func5() /home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/connection/connection.go:363 +0x52 git.openprivacy.ca/openprivacy/libricochet-go/connection.(*Connection).processUserCallback.func1(0xc000256000, 0xc00022e120) /home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/connection/connection.go:254 +0x4d created by git.openprivacy.ca/openprivacy/libricochet-go/connection.(*Connection).processUserCallback /home/sarah/workspace/src/git.openprivacy.ca/openprivacy/libricochet-go/connection/connection.go:252 +0x77 sarah@cassandra ~/w/s/bounce>
Owner

2019/01/22 11:00:28 event/eventmanager.go [DBUG] Sending NewMessageFromPeer to 0xc42027a000
2019/01/22 11:00:28 gothings/uistate.go [ERR ] sorry, unable to handle AddContact()
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x6e7b72]

goroutine 9 [running]:
cwtch.im/ui/go/gothings.(*InterfaceState).AddMessage(0xc42008c9d0, 0xc420430680)
/home/erinn/go/src/cwtch.im/ui/go/gothings/uistate.go:99 +0x252
cwtch.im/ui/go/gothings.(*InterfaceState).AddMessage-fm(0xc420430680)
/home/erinn/go/src/cwtch.im/ui/main.go:60 +0x34
cwtch.im/ui/go/characters.IncomingListener(0xc420088c60)
/home/erinn/go/src/cwtch.im/ui/go/characters/incominglistener.go:22 +0x72e
created by main.main
/home/erinn/go/src/cwtch.im/ui/main.go:60 +0x240

2019/01/22 11:00:28 event/eventmanager.go [DBUG] Sending NewMessageFromPeer to 0xc42027a000 2019/01/22 11:00:28 gothings/uistate.go [ERR ] sorry, unable to handle AddContact() panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x6e7b72] goroutine 9 [running]: cwtch.im/ui/go/gothings.(*InterfaceState).AddMessage(0xc42008c9d0, 0xc420430680) /home/erinn/go/src/cwtch.im/ui/go/gothings/uistate.go:99 +0x252 cwtch.im/ui/go/gothings.(*InterfaceState).AddMessage-fm(0xc420430680) /home/erinn/go/src/cwtch.im/ui/main.go:60 +0x34 cwtch.im/ui/go/characters.IncomingListener(0xc420088c60) /home/erinn/go/src/cwtch.im/ui/go/characters/incominglistener.go:22 +0x72e created by main.main /home/erinn/go/src/cwtch.im/ui/main.go:60 +0x240
Owner

fixed recently

fixed recently
erinn closed this issue 2019-01-30 20:07:17 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/ui#6
No description provided.