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

Sometimes runtime error occurs #306

Open
kkr881 opened this issue Oct 7, 2023 · 4 comments
Open

Sometimes runtime error occurs #306

kkr881 opened this issue Oct 7, 2023 · 4 comments

Comments

@kkr881
Copy link

kkr881 commented Oct 7, 2023

Hello.

There is a slight difference in error content from the #257 case, but the same symptoms have occurred, so I report it.
I'm using v1.4.3 and my check interval is 90s.
The error contents are as follows.

2023-10-07T21:18:32+09:00 2023-10-07T21:18:32+09:00 ERR 2023-10-07T21:18:32+09:00 2023-10-07T21:18:32+09:00 ERR 2023-10-07T21:18:32+09:00 2023-10-07T21:18:32+09:00 ERR 2023-10-07T21:18:32+09:00 2023-10-07T21:18:32+09:00 ERR stream data is empty 
2023-10-07T21:18:33+09:00 2023-10-07T21:18:33+09:00 DBG 2023-10-07T21:18:33+09:00 2023-10-07T21:18:33+09:00 DBG 2023-10-07T21:18:33+09:00 2023-10-07T21:18:33+09:00 DBG 2023-10-07T21:18:33+09:00 2023-10-07T21:18:33+09:00 DBG deleting vod 9f572f73-650b-11ee-9c34-0242ac130004 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xe8 pc=0x77e920]
goroutine 6404 [running]:
net/http.(*Request).Context(0xc0005416b0?)
	/usr/local/go/src/net/http/request.go:341
github.com/zibbp/ganymede/internal/vod.(*Service).DeleteVod(0xc0005da168, {0x1d09b40, 0xc000471ae0}, {0x9f, 0x57, 0x2f, 0x73, 0x65, 0xb, 0x11, ...}, ...)
	/app/internal/vod/vod.go:131 +0x34b
github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodSaveLiveInfo(0xc0000b20f0, 0xc000123c00, 0xc0000ecf00, 0xc0006ee9a0, 0x1)
	/app/internal/archive/archive.go:640 +0x51a
github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodDownloadLiveThumbnail(0xc0000b20f0, 0xc000123c00, 0xc0000ecf00, 0xc0006ee9a0, 0x1)
	/app/internal/archive/archive.go:558 +0x1027
created by github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodCreateFolder
	/app/internal/archive/archive.go:483 +0x58c
usermod: no changes
-------------------------------------
User uid:    1026
User gid:    100
-------------------------------------
Version    : 
Git Hash   : b849d24ddedc19a976add943eb1228e64c11072c
Build Time : 2023-10-01T14:17:45Z
2023-10-07T21:18:52+09:00 2023-10-07T21:18:52+09:00 INF 2023-10-07T21:18:52+09:00 2023-10-07T21:18:52+09:00 INF 2023-10-07T21:18:52+09:00 2023-10-07T21:18:52+09:00 INF 2023-10-07T21:18:52+09:00 2023-10-07T21:18:52+09:00 INF config file found at /data/config.json, loading 
2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 DBG 2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 DBG 2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 DBG 2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 DBG config file loaded: /data/config.json 
2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 INF 2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 INF 2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 INF 2023-10-07T21:18:53+09:00 2023-10-07T21:18:53+09:00 INF debug mode enabled 
@kkr881
Copy link
Author

kkr881 commented Oct 9, 2023

Log where an additional error occurred.

2023-10-10T01:22:16+09:00 2023-10-10T01:22:16+09:00 DBG 2023-10-10T01:22:16+09:00 2023-10-10T01:22:16+09:00 DBG 2023-10-10T01:22:16+09:00 2023-10-10T01:22:16+09:00 DBG 2023-10-10T01:22:16+09:00 2023-10-10T01:22:16+09:00 DBG deleting vod 017bf0d4-66c0-11ee-8d89-0242ac130003 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xe8 pc=0x77e920]
goroutine 11035 [running]:
net/http.(*Request).Context(0xc000098630?)
	/usr/local/go/src/net/http/request.go:341
github.com/zibbp/ganymede/internal/vod.(*Service).DeleteVod(0xc000580918, {0x1d09b40, 0xc0003ca320}, {0x1, 0x7b, 0xf0, 0xd4, 0x66, 0xc0, 0x11, ...}, ...)
	/app/internal/vod/vod.go:131 +0x34b
github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodSaveLiveInfo(0xc0000a0ed0, 0xc0002da100, 0xc00038e780, 0xc00058a840, 0x1)
	/app/internal/archive/archive.go:640 +0x51a
github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodDownloadLiveThumbnail(0xc0000a0ed0, 0xc0002da100, 0xc00038e780, 0xc00058a840, 0x1)
	/app/internal/archive/archive.go:558 +0x1027
created by github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodCreateFolder
	/app/internal/archive/archive.go:483 +0x58c
usermod: no changes
-------------------------------------
User uid:    1026
User gid:    100
-------------------------------------
Version    : 
Git Hash   : b849d24ddedc19a976add943eb1228e64c11072c
2023-10-10T01:22:34+09:00 2023-10-10T01:22:34+09:00 INF 2023-10-10T01:22:34+09:00 2023-10-10T01:22:34+09:00 INF 2023-10-10T01:22:34+09:00 2023-10-10T01:22:34+09:00 INF 2023-10-10T01:22:34+09:00 2023-10-10T01:22:34+09:00 INF config file found at /data/config.json, loading 
Build Time : 2023-10-01T14:17:45Z
2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG config file loaded: /data/config.json 
2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 INF 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 INF 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 INF 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 INF debug mode enabled 
2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG 2023-10-10T01:22:35+09:00 2023-10-10T01:22:35+09:00 DBG setting up database connection 
2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG creating new handler 
2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG mapping routes 
2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG setting up twitch auth schedule 
2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG running twitch auth schedule 
2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 DBG authenticating with twitch 
   ____    __
  / __/___/ /  ___
 / _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.11.1
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
                                    O\
⇨ http server started on [::]:4000
2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 INF 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 INF 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 INF 2023-10-10T01:22:36+09:00 2023-10-10T01:22:36+09:00 INF authenticated with twitch 
2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG setting up check live stream schedule 
2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG setting up twitch categories schedule 
2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG 2023-10-10T01:22:41+09:00 2023-10-10T01:22:41+09:00 DBG setting live check interval to run every 90 seconds 

@Zibbp
Copy link
Owner

Zibbp commented Oct 9, 2023

I've pushed a fix to the main branch. It should be available on the :main tag once the image completes building if you want to use and test that out.

@kkr881
Copy link
Author

kkr881 commented Oct 11, 2023

Hello. @Zibbp

Log where an additional error occurred.

2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR stream data is empty 
2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR error saving live info | 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR 2023-10-11T21:13:37+09:00 2023-10-11T21:13:37+09:00 ERR error saving live info | error=stream data is empty
panic: ent: queue not found
goroutine 3803 [running]:
github.com/zibbp/ganymede/ent.(*QueueUpdateOne).SaveX(...)
	/app/ent/queue_update.go:978
github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodDownloadLiveThumbnail(0xc000566060, 0xc000122300, 0xc000748d20, 0xc0005938c0, 0x1)
	/app/internal/archive/archive.go:561 +0x1359
created by github.com/zibbp/ganymede/internal/archive.(*Service).TaskVodCreateFolder
	/app/internal/archive/archive.go:483 +0x58c
usermod: no changes
-------------------------------------
User uid:    1026
User gid:    100
-------------------------------------
Version    : 
Git Hash   : 2c264802f00b818ff10919eaa8bf8d67bd3bbad3
Build Time : 2023-10-09T22:37:22Z
2023-10-11T21:13:50+09:00 2023-10-11T21:13:50+09:00 INF 2023-10-11T21:13:50+09:00 2023-10-11T21:13:50+09:00 INF 2023-10-11T21:13:50+09:00 2023-10-11T21:13:50+09:00 INF 2023-10-11T21:13:50+09:00 2023-10-11T21:13:50+09:00 INF config file found at /data/config.json, loading 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG config file loaded: /data/config.json 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 INF 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 INF 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 INF 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 INF debug mode enabled 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG setting up database connection 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG creating new handler 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG mapping routes 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG setting up twitch auth schedule 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG running twitch auth schedule 
2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG 2023-10-11T21:13:51+09:00 2023-10-11T21:13:51+09:00 DBG authenticating with twitch 
   ____    __
  / __/___/ /  ___
 / _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.11.1
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
                                    O\
⇨ http server started on [::]:4000
2023-10-11T21:13:52+09:00 2023-10-11T21:13:52+09:00 INF 2023-10-11T21:13:52+09:00 2023-10-11T21:13:52+09:00 INF 2023-10-11T21:13:52+09:00 2023-10-11T21:13:52+09:00 INF 2023-10-11T21:13:52+09:00 2023-10-11T21:13:52+09:00 INF authenticated with twitch 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG setting up queue item schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG setting up check live stream schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG setting live check interval to run every 90 seconds 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 INF 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 INF 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 INF 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 INF setting up check watched channel videos schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG setting video check interval to run every 180 minutes 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG running check live stream schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG checking live channels 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG setting up prune video schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG setting up twitch categories schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG running queue item schedule 
2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG 2023-10-11T21:13:56+09:00 2023-10-11T21:13:56+09:00 DBG running set twitch categories schedule 

@Zibbp
Copy link
Owner

Zibbp commented Oct 11, 2023

Another fix should be available on the :main tag shortly. As a side note, I'm in the very early stages of completely rewriting how the queue system works, implementing a real queue. So hopefully this will not be an issue in the future.

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

2 participants