Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nil pointer dereference error #556

Open
mrclauss opened this issue Sep 24, 2024 · 0 comments
Open

nil pointer dereference error #556

mrclauss opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mrclauss
Copy link

mrclauss commented Sep 24, 2024

Tried sending a signal message shortly after updating resulted in this panic:

2024-09-24T07:35:16.573Z ERR Event handling panicked error="runtime error: invalid memory address or nil pointer dereference" action="handle matrix event" event_id=$MCocDq0-qKcZnUwVDJb1lTHcbJB-3X6NiZmwl18a-Pc event_loop_index=1 event_type=m.room.message portal_id=
607273a6-870c-4c7e-ace5-2d3a6b2ba05b portal_mxid=!HwLMEzdNUTgCVavxxK:skynet.com.es sender=@mc:skynet.com.es stack="goroutine 1593 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:26 +0x5e\nmaunium.net/go/mautrix/bridgev2.(*Portal).hand
leSingleEvent.func1()\n\t/builds/mautrix/signal/.cache/pkg/mod/maunium.net/go/[email protected]/bridgev2/portal.go:369 +0xf4\npanic({0x1ab12e0?, 0x2802770?})\n\t/usr/local/go/src/runtime/panic.go:785 +0x132\ngo.mau.fi/mautrix-signal/pkg/signalmeow/web.(*SignalWebsoc
ket).sendRequestInternal(0x0, {0x1d62a40, 0xc0005f9cb0}, 0xc00078ecb0, {0x1bf3fad?, 0x2?, 0x2889ae0?}, 0x0)\n\t/builds/mautrix/signal/pkg/signalmeow/web/signalwebsocket.go:534 +0x59\ngo.mau.fi/mautrix-signal/pkg/signalmeow/web.(*SignalWebsocket).SendRequest(0x0, {
0x1d62a40, 0xc0005f9cb0}, 0xc00078ecb0)\n\t/builds/mautrix/signal/pkg/signalmeow/web/signalwebsocket.go:525 +0x4c\ngo.mau.fi/mautrix-signal/pkg/signalmeow.(*Client).sendContent(0xc000356000, {0x1d62a40, 0xc0007c05d0}, {0x0, {0x60, 0x72, 0x73, 0xa6, 0x87, 0xc, ...}
}, ...)\n\t/builds/mautrix/signal/pkg/signalmeow/sending.go:865 +0xa5d\ngo.mau.fi/mautrix-signal/pkg/signalmeow.(*Client).SendMessage(0xc000356000, {0x1d62a40, 0xc0007c05d0}, {0x0, {0x60, 0x72, 0x73, 0xa6, 0x87, 0xc, ...}}, ...)\n\t/builds/mautrix/signal/pkg/signa
lmeow/sending.go:747 +0x658\ngo.mau.fi/mautrix-signal/pkg/connector.(*SignalClient).sendMessage(0xc00027c040?, {0x1d62a40, 0xc0007c05d0}, {0xc0000a8030?, 0x2?}, 0xc000647040?)\n\t/builds/mautrix/signal/pkg/connector/handlematrix.go:73 +0x5a7\ngo.mau.fi/mautrix-signal/pkg/connector.(*SignalClient).HandleMatrixMessage(0xc00027c040, {0x1d62a40, 0xc0007c05d0}, 0xc0007c0600)\n\t/builds/mautrix/signal/pkg/connector/handlematrix.go:88 +0x1d2\nmaunium.net/go/mautrix/bridgev2.(*Portal).handleMatrixMessage(0xc0000ec9a0, {0x1d62a40,
0xc0007c05d0}, 0xc000168e40, 0x0, 0xc0005afdc0)\n\t/builds/mautrix/signal/.cache/pkg/mod/maunium.net/go/[email protected]/bridgev2/portal.go:846 +0x5ce\nmaunium.net/go/mautrix/bridgev2.(*Portal).handleMatrixEvent(0xc0000ec9a0, {0x1d62a40, 0xc0005f9c80}, 0xc0000b6240
, 0xc0005afdc0)\n\t/builds/mautrix/signal/.cache/pkg/mod/maunium.net/go/[email protected]/bridgev2/portal.go:530 +0x8c5\nmaunium.net/go/mautrix/bridgev2.(*Portal).handleSingleEvent(0xc0000ec9a0, {0x1d62a40, 0xc0005f9c80}, {0x1a92260, 0xc00052f180}, 0xc00068ca00)\n\t
/builds/mautrix/signal/.cache/pkg/mod/maunium.net/go/[email protected]/bridgev2/portal.go:383 +0x151\ncreated by maunium.net/go/mautrix/bridgev2.(*Portal).handleSingleEventAsync in goroutine 133\n\t/builds/mautrix/signal/.cache/pkg/mod/maunium.net/go/[email protected]/bridgev2/portal.go:304 +0x267\n"

Sending in the same room worked fine shortly afterwards.

Version: mautrix-signal v0.7.1+dev.ebd8114d (Mon, 23 Sep 2024 17:46:44 UTC)

@mrclauss mrclauss added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant