#WebUI slow loading after fast scrolling the videos

1 messages · Page 1 of 1 (latest)

gray cradle
#

Hello. I've been scrolling the videos in video section by clicking (or holding) the right arrow key. after a while video thumbnail won't load so i decided to refresh (F5) it and after that loading too long, i decided to go to base domain to just load the main page of Immich. Even that took a long time so i checked logs and found this spammed in console

[Nest] 7  - 06/16/2023, 12:53:30 PM   ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
    at new NodeError (node:internal/errors:399:5)
    at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
    at ServerResponse.emit (node:events:525:35)
    at emitCloseNT (node:_http_server:984:10)
    at Socket.onServerResponseClose (node:_http_server:277:5)
    at Socket.emit (node:events:525:35)
    at TCP.<anonymous> (node:net:322:12)
jagged merlin
gray cradle
#

Explore tab -> Video Category at the bottom

jagged merlin
#

Is this just one time occurence? Can you reproduce it multiple times?

gray cradle
#

i'm going to try

#

turns out it's making the same error even if i'm randomly playing with immich web ui

jagged merlin
#

the error in the log you see can be ignore

gray cradle
#

but when i did a refresh on a video from that Video category i got this error this time

Not found: /search/photos/a9e2752e-d2d2-4ee3-bf8b-redacted - 500
Error: Not found: /search/photos/a9e2752e-d2d2-4ee3-bf8b-f4bc607fc13c
    at resolve (file:///usr/src/app/build/server/index.js:3861:18)
    at resolve (file:///usr/src/app/build/server/index.js:3736:34)
    at Object.handle (file:///usr/src/app/build/server/chunks/hooks.server-eaba8656.js:21:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async respond (file:///usr/src/app/build/server/index.js:3734:22)
    at async Array.ssr (file:///usr/src/app/build/handler.js:1207:3)
jagged merlin
#

it is just notify the video stream hasn't finished

#

like this right?

gray cradle
#

yup

jagged merlin
#

yeah we don't have a hard route to handle direct navigation to that path

gray cradle
#

so the route is randomly generated for the same video each time?

jagged merlin
#

not really, it is a client side component that we overlay on top of the search result page

gray cradle
#

right

jagged merlin
#

we might circle back to these scenarios to handle hard routing for all views

#

but it is more complex since to enable navigation you will have to know which context the assets are view from (i.e from search result, from album, from timeline) to load the previous and next assets

gray cradle
#

yup. It's clearly not a priority right now. And it shouldn't be. There are bigger issues / features that would need to get done first.