Closed tempname1024 closed 1 year ago
Same here, with up-to-date Arch linux.
I am also having this issue. Cannot subscribe to new channels, unable to import subscriptions.
Using up-to-date Arch linux.
Here is the invidious log when trying to subscribe to a channel
2023-05-01 15:46:52 UTC [info] 404 GET /api/v1/comments/oFVTIMB0L9s?format=html&hl=en-US&thin_mode=false 58.05ms
Exception: Nil assertion failed (NilAssertionError)
from /usr/lib/crystal/nil.cr:113:7 in 'not_nil!'
from /usr/lib/crystal/nil.cr:109:3 in 'not_nil!'
from src/invidious/channels/channels.cr:197:13 in 'fetch_channel'
from src/invidious/channels/channels.cr:151:15 in 'get_channel'
from src/invidious/routes/subscriptions.cr:54:9 in '->'
from lib/kemal/src/kemal/route.cr:13:9 in '->'
from src/invidious/helpers/handlers.cr:30:37 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call_next'
from lib/kemal/src/kemal/filter_handler.cr:21:7 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call_next'
from src/invidious/helpers/handlers.cr:94:12 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call_next'
from src/invidious/helpers/handlers.cr:151:29 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call_next'
from src/ext/kemal_static_file_handler.cr:112:11 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/http/server/handler.cr:30:7 in 'call'
from /usr/lib/crystal/http/server/request_processor.cr:51:11 in 'handle_client'
from /usr/lib/crystal/fiber.cr:146:11 in 'run'
from ???
2023-05-01 15:47:21 UTC [info] 500 POST /subscription_ajax?action_create_subscription_to_channel=1&redirect=false&c=UCc-0YpRpqgA5lPTpSQ5uo-Q 162.46ms
Self hosting my own instance - https://dampsock.com
Same here, using the latest git version (2023-05-03). OS: NixOS unstable
RefreshChannelsJob: UCjKCYQ21t4GMWWDQZI2jTYg : Nil assertion failed
From my testing, it seems to be caused by the parsing of the xml channel RSS feed.
In the fetch_channel
function, this line that tries to fetch the videoid
is at the origin of the crash.
This seems to be a bug with the underlying XML library (libxml2
) used by crystal.
See https://github.com/crystal-lang/crystal/issues/13444. We're investigating!
Built with the patch suggested by SamantazFox and GaetanLepage - everything works and subscriptions are imported. Thank you!
Describe the bug I'm running into an assertion error which began after a recent system/dependency upgrade and re-compilation of invidious on Alpine against 961cae2b9a1e1dd780e3f92d55bbc7381b39ffe1.
RefreshChannelsJob
started to fail withNil assertion failed
, and new subscriptions were unable to be added.Video playback, account creation, and search are unaffected.
Logs (creating a new subscription)
Additional context