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

Runtime panick when logging in via Element X #3346

Open
matrixbot opened this issue Nov 2, 2024 · 0 comments
Open

Runtime panick when logging in via Element X #3346

matrixbot opened this issue Nov 2, 2024 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

This issue was originally created by @pat-s at matrix-org/dendrite#3346.

Background information

  • Dendrite version or git SHA: 0.13.6
  • SQLite3 or Postgres?: Postgres
  • Running in Docker?: Yes
  • go version:
  • Client used (if applicable): Element X

Description

  • What is the problem: Runtime panick during Element X connection
  • Who is affected:
  • How is this bug manifesting:
  • When did this first appear:

Dendrite is configured with slidingsync and returns the "org.matrix.msc3575.proxy" in .well-known/matrix/client.

Login via Element Web succeeds.

Steps to reproduce

Element X iOS: 1.5.12
Slidingsync: v0.99.15

The process runs for 5-10 seconds and then aborts with the below log in Dendrite:

Logs:

time="2024-03-22T20:29:54.425449714Z" level=error msg="Request panicked!\ngoroutine 507 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x64\ngithub.com/matrix-org/dendrite/internal/httputil.MakeExternalAPI.MakeJSONAPI.Protect.func3.1()\n\tgithub.com/matrix-org/[email protected]/json.go:98 +0xf8\npanic({0x112bae0?, 0x218c010?})\n\truntime/panic.go:914 +0x218\ngithub.com/matrix-org/dendrite/clientapi/auth.(*LoginTypePassword).Login(0x40045474c0, {0x1628188, 0x400454f950}, {0x1142a80?, 0x40041760a0})\n\tgithub.com/matrix-org/dendrite/clientapi/auth/password.go:128 +0x4c8\ngithub.com/matrix-org/dendrite/clientapi/auth.(*LoginTypePassword).LoginFromJSON(0x4004543e00?, {0x1628188, 0x400454f950}, {0x4004543e00, 0xa1, 0x200})\n\tgithub.com/matrix-org/dendrite/clientapi/auth/password.go:54 +0x7c\ngithub.com/matrix-org/dendrite/clientapi/auth.LoginFromJSONReader(0x400376db00, {0xffff5f4401b0?, 0x40035bd200}, {0xffff5f49a1b8?, 0x40035bd200}, 0x4000509050)\n\tgithub.com/matrix-org/dendrite/clientapi/auth/login.go:94 +0x548\ngithub.com/matrix-org/dendrite/clientapi/routing.Login(0x400376db00, {0xffff5f440008?, 0x40035bd200}, 0x4000509050)\n\tgithub.com/matrix-org/dendrite/clientapi/routing/login.go:62 +0x170\ngithub.com/matrix-org/dendrite/clientapi/routing.Setup.func56(0x0?)\n\tgithub.com/matrix-org/dendrite/clientapi/routing/routing.go:730 +0x80\ngithub.com/matrix-org/util.(*jsonRequestHandlerWrapper).OnIncomingRequest(0x400376da00?, 0x1ea54?)\n\tgithub.com/matrix-org/[email protected]/json.go:79 +0x28\ngithub.com/matrix-org/dendrite/internal/httputil.MakeExternalAPI.MakeJSONAPI.func2({0x1625420, 0x400414e380}, 0x400376da00?)\n\tgithub.com/matrix-org/[email protected]/json.go:141 +0xbc\ngithub.com/matrix-org/dendrite/internal/httputil.MakeExternalAPI.MakeJSONAPI.Protect.func3({0x1625420?, 0x400414e380?}, 0x1330467?)\n\tgithub.com/matrix-org/[email protected]/json.go:103 +0x64\nnet/http.HandlerFunc.ServeHTTP(...)\n\tnet/http/server.go:2136\ngithub.com/matrix-org/dendrite/internal/httputil.MakeExternalAPI.func1({0x1625420?, 0x400414e380?}, 0x400376d900)\n\tgithub.com/matrix-org/dendrite/internal/httputil/httpapi.go:193 +0x314\nnet/http.HandlerFunc.ServeHTTP(0x400376d800?, {0x1625420?, 0x400414e380?}, 0xffffa644d108?)\n\tnet/http/server.go:2136 +0x38\ngithub.com/gorilla/mux.(*Router).ServeHTTP(0x40001f8780, {0x1625420, 0x400414e380}, 0x400376d700)\n\tgithub.com/gorilla/[email protected]/mux.go:210 +0x194\ngithub.com/gorilla/mux.(*Router).ServeHTTP(0x40035b9500, {0x1625420, 0x400414e380}, 0x400376d500)\n\tgithub.com/gorilla/[email protected]/mux.go:210 +0x194\nnet/http.serverHandler.ServeHTTP({0x1621f98?}, {0x1625420?, 0x400414e380?}, 0x6?)\n\tnet/http/server.go:2938 +0xbc\nnet/http.(*conn).serve(0x400455c990, {0x1628188, 0x4003dd90e0})\n\tnet/http/server.go:2009 +0x518\ncreated by net/http.(*Server).Serve in goroutine 277\n\tnet/http/server.go:3086 +0x4cc\n" context=missing panic="runtime error: invalid memory address or nil pointer dereference"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant