Skip to content

bug: 🐛 Failed to decrypt the data: data authentication failure #168

Description

@WinsDominoes

Bug Report: Failed to decrypt the data: data authentication failure

Describe the bug

It seems to be an error with decrypting the data - not sure why it happened randomly, which after that crashes the bridge.

To Reproduce

Steps to reproduce the behavior:

  • I am unsure why this happened as it randomly occurred today. My friend told me that it might have been due to a random group chat that sent a message which caused everything to break.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots or logs

DEBUG ChannelCreate: no goKey for keyID=7 (goKeys has keys: )
panic: ltsm: EM_JS error: Failed to decrypt the data: data authentication failure

goroutine 101 [running]:
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Imports).Import_o(0xc00043c7e0, 0x163b24, 0x0?, 0x800a30)
	/build/pkg/ltsm/embind.go:494 +0x694
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Module).f62(0xc00043c810, 0x818e50?, 0x9175d94?)
	/build/pkg/ltsm/wbc_generated.go:10296 +0x13e
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Module).f446(0xc00043c810, 0x800ad8, 0x813618, 0x800ac8, 0x800ab8, 0x36b262, 0x9a83612, 0x0, 0x0?)
	/build/pkg/ltsm/wbc_generated.go:218547 +0x149d
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Module).callIndirectT19(...)
	/build/pkg/ltsm/wbc_generated.go:1174
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Module).f683(0xc00043c810, 0x41217e?, 0x0?, 0x818198?, 0x815f38, 0x36b262, 0x9a83612, 0x0, 0x6)
	/build/pkg/ltsm/wbc_generated.go:426094 +0x577
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Module).callIndirectT20(0xc00043c720?, 0x1300?, 0x0?, 0x9?, 0x0?, 0x462cee?, 0x0?, 0x869850?, 0xc0?, 0x6)
	/build/pkg/ltsm/wbc_generated.go:1183 +0x72
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Imports).callIndirect(0xc00043c7e0, 0x24, {0xc000618000, 0x8, 0xc0008698e8?}, {0xc000869918, 0x8, 0x527c01?})
	/build/pkg/ltsm/embind.go:991 +0x41f
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Imports).CallMethod(0xc00043c7e0, {0x166066a, 0xb}, {0x165e03f, 0x9}, 0x813618, {0xc0008699e8, 0x6, 0x0?})
	/build/pkg/ltsm/embind.go:860 +0x230
github.com/highesttt/matrix-line-messenger/pkg/ltsm.(*Runtime).E2EEChannelDecryptV2(0xc0003b2000, 0x813618, {0xc002050150?, 0x482b05?}, {0xc002050120, 0x2c}, 0x36b262, 0x9a83612, 0x0, {0xc00015ba00, ...})
	/build/pkg/ltsm/runtime.go:383 +0x15c
github.com/highesttt/matrix-line-messenger/pkg.(*Runner).ChannelDecryptV2(0xc0004200e0, 0x8, {0xc002050150, 0x2c}, {0xc002050120, 0x2c}, 0x36b262, 0x9a83612, 0x0, {0xc00085c820, ...})
	/build/pkg/runner.go:579 +0x479
github.com/highesttt/matrix-line-messenger/pkg/e2ee.(*Manager).DecryptGroupMessage(0xc000418280, 0xc002014840, {0xc002050150, 0x2c})
	/build/pkg/e2ee/manager.go:548 +0x2f2
github.com/highesttt/matrix-line-messenger/pkg/connector.(*LineClient).queueIncomingMessage(0xc000000000, 0xc002014840, 0x1a)
	/build/pkg/connector/handle_message.go:100 +0x70e
github.com/highesttt/matrix-line-messenger/pkg/connector.(*LineClient).backfillRecentMessages(0xc000000000, {0x1941f08, 0xc00043c360}, {0xc0018f99b0, 0x2c}, 0x32)
	/build/pkg/connector/sync.go:166 +0x26f
github.com/highesttt/matrix-line-messenger/pkg/connector.(*LineClient).prefetchMessages(0xc000000000, {0x1941f08, 0xc00043c360})
	/build/pkg/connector/sync.go:135 +0x365
created by github.com/highesttt/matrix-line-messenger/pkg/connector.(*LineClient).Connect in goroutine 1
	/build/pkg/connector/client.go:298 +0xd2b

The full logs are as follows:
matrix-line-messenger-crash-logs.txt

Additional context

My sincere apologies due to the lack of details in this bug report, but that is sadly all the information I could gather.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions