Ckath / fuf

Fairly Usable cli Filebrowser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

large directories dont always start loading

Ckath opened this issue · comments

commented

sometimes really large directories hang at "loading: 0", a later attempt always works. cancelation of this hang is also not possible. either would fix this issue:

  • figure out why the directory doesnt load at times and make sure that never happens
  • find out where it gets stuck and allow the operation to be canceled

it might also be this is just file io being file io (I can nearly hang loading when loading with multiple file managers too). in which case I'll just close this later

commented

very hard to reproduce consistently, nearly only happens on network shares sometimes. when leaving the preview script to crawl through the directory before opening it it seems to be fine always.

since loading of directories is just a readdir loop, I cant see many points of failure here

commented

possibly something to do with the loading display thread display_load(), bit iffy to fuck with that ncurses mutex in an infinite loop, however initial testing dont show any improvement of the situation with a delay or without the mutex guarding it.

will have to see what fucks it, maybe do displaying of loading progress from the loading directly.

commented

bunch of mitigations implemented in 11b6de4

commented

havent had this one in a long time, going to say its good enough for now