我用的 mysql 5.7.44,我电脑登录了一个账号,然后手机上登录同一个账号,这样的情况下,在切换左侧的音乐、视频等分类的时候,程序直接挂了,报错了,这个要如何处理
报错信息:
goroutine 104 [select]:
runtime.gopark(0xc000b46f80?, 0x2?, 0x29?, 0x29?, 0xc000b46f40?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc000b46dc0 sp=0xc000b46da0 pc=0x4385b6
runtime.selectgo(0xc000b46f80, 0xc000b46f3c, 0x2875206e72757465?, 0x0, 0x7d29296528294d2e?, 0x1)
/usr/local/go/src/runtime/select.go:327 +0x7be fp=0xc000b46f00 sp=0xc000b46dc0 pc=0x447e9e
github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1()
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:614 +0xaa fp=0xc000b46fe0 sp=0xc000b46f00 pc=0xbc0c0a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000b46fe8 sp=0xc000b46fe0 pc=0x468081
created by github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:611 +0x10a
goroutine 105 [select]:
runtime.gopark(0xc001585780?, 0x2?, 0x29?, 0x2c?, 0xc001585740?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0015855c0 sp=0xc0015855a0 pc=0x4385b6
runtime.selectgo(0xc001585780, 0xc00158573c, 0x642e736968743d65?, 0x0, 0x2d5d325b74636572?, 0x1)
/usr/local/go/src/runtime/select.go:327 +0x7be fp=0xc001585700 sp=0xc0015855c0 pc=0x447e9e
github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1()
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:614 +0xaa fp=0xc0015857e0 sp=0xc001585700 pc=0xbc0c0a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0015857e8 sp=0xc0015857e0 pc=0x468081
created by github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:611 +0x10a
goroutine 106 [select]:
runtime.gopark(0xc001585f80?, 0x2?, 0x69?, 0x6f?, 0xc001585f40?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc001585dc0 sp=0xc001585da0 pc=0x4385b6
runtime.selectgo(0xc001585f80, 0xc001585f3c, 0x75663a65756c6176?, 0x0, 0x206e72757465727b?, 0x1)
/usr/local/go/src/runtime/select.go:327 +0x7be fp=0xc001585f00 sp=0xc001585dc0 pc=0x447e9e
github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1()
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:614 +0xaa fp=0xc001585fe0 sp=0xc001585f00 pc=0xbc0c0a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc001585fe8 sp=0xc001585fe0 pc=0x468081
created by github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:611 +0x10a
goroutine 107 [IO wait]:
runtime.gopark(0x47e487?, 0xb?, 0x0?, 0x0?, 0x1d?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0015a1700 sp=0xc0015a16e0 pc=0x4385b6
runtime.netpollblock(0x47c3c5?, 0x40482f?, 0x0?)
/usr/local/go/src/runtime/netpoll.go:527 +0xf7 fp=0xc0015a1738 sp=0xc0015a1700 pc=0x430bf7
internal/poll.runtime_pollWait(0x7f8e2fa671f8, 0x72)
/usr/local/go/src/runtime/netpoll.go:306 +0x89 fp=0xc0015a1758 sp=0xc0015a1738 pc=0x462469
internal/poll.(*pollDesc).wait(0xc001543380?, 0xc0015a4000?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 fp=0xc0015a1780 sp=0xc0015a1758 pc=0x4e1252
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc001543380, {0xc0015a4000, 0x1000, 0x1000})
/usr/local/go/src/internal/poll/fd_unix.go:167 +0x299 fp=0xc0015a1818 sp=0xc0015a1780 pc=0x4e2639
net.(*netFD).Read(0xc001543380, {0xc0015a4000?, 0xc0015a18b8?, 0x531089?})
/usr/local/go/src/net/fd_posix.go:55 +0x29 fp=0xc0015a1860 sp=0xc0015a1818 pc=0x530809
net.(*conn).Read(0xc0014e7cb8, {0xc0015a4000?, 0xc0015a1900?, 0x5437e5?})
/usr/local/go/src/net/net.go:183 +0x45 fp=0xc0015a18a8 sp=0xc0015a1860 pc=0x543605
net.(*TCPConn).Read(0xc001543380?, {0xc0015a4000?, 0xbbc99a?, 0xc0015b6c88?})
<autogenerated>:1 +0x29 fp=0xc0015a18d8 sp=0xc0015a18a8 pc=0x555f29
github.com/go-sql-driver/mysql.(*buffer).fill(0xc00158e6c0, 0x4)
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/buffer.go:90 +0x23a fp=0xc0015a1948 sp=0xc0015a18d8 pc=0xbbc6fa
github.com/go-sql-driver/mysql.(*buffer).readNext(0xc00158e6c0, 0x4)
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/buffer.go:119 +0x2d fp=0xc0015a1968 sp=0xc0015a1948 pc=0xbbc82d
github.com/go-sql-driver/mysql.(*mysqlConn).readPacket(0xc00158e6c0)
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/packets.go:32 +0x8e fp=0xc0015a1a28 sp=0xc0015a1968 pc=0xbc62ee
github.com/go-sql-driver/mysql.(*mysqlStmt).readPrepareResultPacket(0xc0015cb038)
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/packets.go:830 +0x28 fp=0xc0015a1a58 sp=0xc0015a1a28 pc=0xbc9b48
github.com/go-sql-driver/mysql.(*mysqlConn).Prepare(0xc00158e6c0, {0xc00152fc00?, 0xc00003a0a0?})
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:182 +0x18f fp=0xc0015a1aa8 sp=0xc0015a1a58 pc=0xbbda0f
github.com/go-sql-driver/mysql.(*mysqlConn).PrepareContext(0xc00158e6c0, {0x1a74338, 0xc00003a0a0}, {0xc00152fc00, 0x73})
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:533 +0x6b fp=0xc0015a1b30 sp=0xc0015a1aa8 pc=0xbc010b
database/sql.ctxDriverPrepare({0x1a74338, 0xc00003a0a0}, {0x1a72bf0, 0xc00158e6c0}, {0xc00152fc00, 0x73})
/usr/local/go/src/database/sql/ctxutil.go:15 +0x11b fp=0xc0015a1b88 sp=0xc0015a1b30 pc=0x95e4bb
database/sql.(*DB).queryDC.func2()
/usr/local/go/src/database/sql/sql.go:1770 +0x4b fp=0xc0015a1bd8 sp=0xc0015a1b88 pc=0x966b6b
database/sql.withLock({0x1a6ed48, 0xc001588990}, 0xc0015a1ce8)
/usr/local/go/src/database/sql/sql.go:3405 +0x8c fp=0xc0015a1c18 sp=0xc0015a1bd8 pc=0x96ecac
database/sql.(*DB).queryDC(0x40d801?, {0x1a74338, 0xc00003a0a0}, {0x0, 0x0}, 0xc001588990, 0xc0015d7540, {0xc00152fc00, 0x73}, {0xc0015d74d0, ...})
/usr/local/go/src/database/sql/sql.go:1769 +0x30b fp=0xc0015a1db8 sp=0xc0015a1c18 pc=0x96674b
database/sql.(*DB).query(0x44cb32?, {0x1a74338, 0xc00003a0a0}, {0xc00152fc00, 0x73}, {0xc0015d74d0, 0x1, 0x1}, 0xb8?)
/usr/local/go/src/database/sql/sql.go:1726 +0xfd fp=0xc0015a1e38 sp=0xc0015a1db8 pc=0x9663bd
database/sql.(*DB).QueryContext.func1(0x0?)
/usr/local/go/src/database/sql/sql.go:1704 +0x55 fp=0xc0015a1ea0 sp=0xc0015a1e38 pc=0x9661b5
database/sql.(*DB).retry(0xc00152fc00?, 0xc0015a1f10)
/usr/local/go/src/database/sql/sql.go:1538 +0x47 fp=0xc0015a1ee8 sp=0xc0015a1ea0 pc=0x964907
database/sql.(*DB).QueryContext(0xc0015cec40?, {0x1a74338?, 0xc00003a0a0?}, {0xc00152fc00?, 0x13252a0?}, {0xc0015d74d0?, 0x1542ba4?, 0x11?})
/usr/local/go/src/database/sql/sql.go:1703 +0xcc fp=0xc0015a1f78 sp=0xc0015a1ee8 pc=0x9660cc
database/sql.(*DB).Query(0xc0015c1380?, {0xc00152fc00?, 0x0?}, {0xc0015d74d0?, 0xc0015cafd8?, 0xc0015a20a8?})
/usr/local/go/src/database/sql/sql.go:1717 +0x45 fp=0xc0015a1fc8 sp=0xc0015a1f78 pc=0x966265
github.com/jinzhu/gorm.queryCallback(0xc0015c1380)
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/callback_query.go:67 +0x6a4 fp=0xc0015a21b8 sp=0xc0015a1fc8 pc=0x97c3c4
github.com/jinzhu/gorm.(*Scope).callCallbacks(0xc0015c1380, {0xc00065a640, 0x3, 0xc0015d1b60?})
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/scope.go:867 +0x99 fp=0xc0015a2200 sp=0xc0015a21b8 pc=0x9a4d39
github.com/jinzhu/gorm.(*DB).Find(0xc0015e4000, {0x12e1480?, 0xc0015caf30?}, {0x0, 0x0, 0x0})
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/main.go:351 +0x209 fp=0xc0015a2280 sp=0xc0015a2200 pc=0x990f69
github.com/jinzhu/gorm.(*Scope).handleBelongsToPreload(0xc001543280, 0xc00157f530, {0x0?, 0x5?, 0x0?})
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/callback_query_preload.go:253 +0x2f5 fp=0xc0015a25c8 sp=0xc0015a2280 pc=0x97f335
github.com/jinzhu/gorm.preloadCallback(0xc001543280)
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/callback_query_preload.go:69 +0x439 fp=0xc0015a27d8 sp=0xc0015a25c8 pc=0x97ce39
github.com/jinzhu/gorm.(*Scope).callCallbacks(0xc001543280, {0xc00065a640, 0x3, 0x4?})
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/scope.go:867 +0x99 fp=0xc0015a2820 sp=0xc0015a27d8 pc=0x9a4d39
github.com/jinzhu/gorm.(*DB).First(0xc001592820, {0x14f16c0?, 0xc001565400?}, {0xc0015678b0, 0x1, 0x1})
/Users/aaronliu/go/pkg/mod/github.com/jinzhu/gorm@v1.9.11/main.go:331 +0x269 fp=0xc0015a28a0 sp=0xc0015a2820 pc=0x9907a9
github.com/cloudreve/Cloudreve/v3/models.GetActiveUserByID({_, _})
/Users/aaronliu/Projects/Cloudreve/models/user.go:139 +0x138 fp=0xc0015a28f8 sp=0xc0015a28a0 pc=0xc4a6d8
github.com/cloudreve/Cloudreve/v3/middleware.CurrentUser.func1(0xc001598200)
/Users/aaronliu/Projects/Cloudreve/middleware/auth.go:56 +0xb1 fp=0xc0015a3418 sp=0xc0015a28f8 pc=0x11d94d1
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-contrib/sessions.Sessions.func1(0xc001598200)
/Users/aaronliu/go/pkg/mod/github.com/gin-contrib/sessions@v0.0.5/sessions.go:54 +0x19a fp=0xc0015a34a0 sp=0xc0015a3418 pc=0x9281fa
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/cloudreve/Cloudreve/v3/middleware.FrontendFileHandler.func2(0xc001598200)
/Users/aaronliu/Projects/Cloudreve/middleware/frontend.go:47 +0x6d7 fp=0xc0015a3708 sp=0xc0015a34a0 pc=0x11d54d7
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc001598200)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/recovery.go:101 +0x82 fp=0xc0015a3758 sp=0xc0015a3708 pc=0x91ed62
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc001598200)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/logger.go:240 +0xe7 fp=0xc0015a3908 sp=0xc0015a3758 pc=0x91de87
github.com/gin-gonic/gin.(*Context).Next(...)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0007aeb60, 0xc001598200)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:616 +0x66b fp=0xc0015a3a90 sp=0xc0015a3908 pc=0x91cf4b
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0007aeb60, {0x1a736d0?, 0xc0015048c0}, 0xc001598000)
/Users/aaronliu/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 +0x1dd fp=0xc0015a3ad0 sp=0xc0015a3a90 pc=0x91c6fd
net/http.serverHandler.ServeHTTP({0xc00157ec00?}, {0x1a736d0, 0xc0015048c0}, 0xc001598000)
/usr/local/go/src/net/http/server.go:2936 +0x316 fp=0xc0015a3b80 sp=0xc0015a3ad0 pc=0x6f40b6
net/http.(*conn).serve(0xc0015882d0, {0x1a743a8, 0xc000a9c0f0})
/usr/local/go/src/net/http/server.go:1995 +0x612 fp=0xc0015a3fb8 sp=0xc0015a3b80 pc=0x6ef5d2
net/http.(*Server).Serve.func3()
/usr/local/go/src/net/http/server.go:3089 +0x2e fp=0xc0015a3fe0 sp=0xc0015a3fb8 pc=0x6f4a0e
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0015a3fe8 sp=0xc0015a3fe0 pc=0x468081
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3089 +0x5ed
goroutine 108 [IO wait]:
runtime.gopark(0x6f6e6e612e653d6e?, 0xb?, 0x0?, 0x0?, 0x1c?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc0015865a0 sp=0xc001586580 pc=0x4385b6
runtime.netpollblock(0x47c3c5?, 0x40482f?, 0x0?)
/usr/local/go/src/runtime/netpoll.go:527 +0xf7 fp=0xc0015865d8 sp=0xc0015865a0 pc=0x430bf7
internal/poll.runtime_pollWait(0x7f8e2fa672e8, 0x72)
/usr/local/go/src/runtime/netpoll.go:306 +0x89 fp=0xc0015865f8 sp=0xc0015865d8 pc=0x462469
internal/poll.(*pollDesc).wait(0xc001543100?, 0xc00157ec11?, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:84 +0x32 fp=0xc001586620 sp=0xc0015865f8 pc=0x4e1252
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:89
internal/poll.(*FD).Read(0xc001543100, {0xc00157ec11, 0x1, 0x1})
/usr/local/go/src/internal/poll/fd_unix.go:167 +0x299 fp=0xc0015866b8 sp=0xc001586620 pc=0x4e2639
net.(*netFD).Read(0xc001543100, {0xc00157ec11?, 0x6e6f6974636e7566?, 0x776f7268747b2928?})
/usr/local/go/src/net/fd_posix.go:55 +0x29 fp=0xc001586700 sp=0xc0015866b8 pc=0x530809
net.(*conn).Read(0xc0014e7ab0, {0xc00157ec11?, 0x207261763b753d73?, 0x53746e6f667b3d68?})
/usr/local/go/src/net/net.go:183 +0x45 fp=0xc001586748 sp=0xc001586700 pc=0x543605
net.(*TCPConn).Read(0x746867696557746e?, {0xc00157ec11?, 0x6f436c6c69662c22?, 0x303023223a726f6c?})
<autogenerated>:1 +0x29 fp=0xc001586778 sp=0xc001586748 pc=0x555f29
net/http.(*connReader).backgroundRead(0xc00157ec00)
/usr/local/go/src/net/http/server.go:674 +0x3f fp=0xc0015867c8 sp=0xc001586778 pc=0x6e931f
net/http.(*connReader).startBackgroundRead.func2()
/usr/local/go/src/net/http/server.go:670 +0x26 fp=0xc0015867e0 sp=0xc0015867c8 pc=0x6e9246
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0015867e8 sp=0xc0015867e0 pc=0x468081
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:670 +0xca
goroutine 109 [select]:
runtime.gopark(0xc001586f80?, 0x2?, 0x41?, 0x72?, 0xc001586f40?)
/usr/local/go/src/runtime/proc.go:381 +0xd6 fp=0xc001586dc0 sp=0xc001586da0 pc=0x4385b6
runtime.selectgo(0xc001586f80, 0xc001586f3c, 0x6c7a206573756163?, 0x0, 0x6920636e79536574?, 0x1)
/usr/local/go/src/runtime/select.go:327 +0x7be fp=0xc001586f00 sp=0xc001586dc0 pc=0x447e9e
github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1()
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:614 +0xaa fp=0xc001586fe0 sp=0xc001586f00 pc=0xbc0c0a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc001586fe8 sp=0xc001586fe0 pc=0x468081
created by github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher
/Users/aaronliu/go/pkg/mod/github.com/go-sql-driver/mysql@v1.6.0/connection.go:611 +0x10a