Genio icon indicating copy to clipboard operation
Genio copied to clipboard

Choosing a volume in Project's "Open recent" menu freezes Genio

Open humdingerb opened this issue 1 year ago • 6 comments

For some reason, I have two of my volumes, "HiQ-Data" and "Source", in the list of recent projects. I tried removing the Genio settings folder competely, but they are still there. I'm not sure how they got in there...

Choosing one of those volumes from the menu peg a CPU and freezes the Genio window, see the attached (probably unhelpful) report.

Genio_debug-3768-debug-16-12-2023-16-15-01.report.txt

humdingerb avatar Dec 16 '23 16:12 humdingerb

The list Is built and housekeeped by BRoster's recent documents functionality. I think I had a similar problem with Genio once or twice by going to the desktop with the open project filepanel

jackburton79 avatar Dec 16 '23 16:12 jackburton79

Choosing one of those volumes from the menu peg a CPU and freezes the Genio window, see the attached (probably unhelpful) report.

I suspect Genio tries to scan the whole volume and load all the files into the project. Since currently Genio does this with a synchronous operation, the window looks frozen

jackburton79 avatar Dec 16 '23 17:12 jackburton79

That appears likely, I see my drive LED thrashing. Not sure how the whole volume got in there, maybe I misclicked once. Anyway, maybe another mechanism than remembering any folder would be better.

You could have the .genio file have its own MIME type, index it and have a query for that. From the result, pick the last 10 or 20. Make sure to touch a project's .genio file when closing it. Or simply save a list of last opened projects in the settings, I guess... Though the query would transparently deal with removed project folders and un/mounted volumes with projects on them. Won't work with non-BFS storage though. Decisions, desicions... all yours. :)

humdingerb avatar Dec 17 '23 07:12 humdingerb

That appears likely, I see my drive LED thrashing. Not sure how the whole volume got in there, maybe I misclicked once. Anyway, maybe another mechanism than remembering any folder would be better.

You could have the .genio file have its own MIME type, index it and have a query for that. From the result, pick the last 10 or 20. Make sure to touch a project's .genio file when closing it. Or simply save a list of last opened projects in the settings, I guess... Though the query would transparently deal with removed project folders and un/mounted volumes with projects on them. Won't work with non-BFS storage though. Decisions, desicions... all yours. :)

We have been tinkering with asynchronous project loading. I hope we'll manage to implement it in the next release. I think we also need a way to show background tasks and be able to stop them. This way, if one accidentally opens a really large folder, he can stop the task, or at least, the task won't freeze the whole app.

jackburton79 avatar Dec 17 '23 10:12 jackburton79

I see also how the volume got into the recent projects list: that list is built from the recent folders, so if you opened a volume in tracker, it would end up in that list.

jackburton79 avatar Dec 17 '23 12:12 jackburton79

Worked around in 00d706a28012e475edcccce3739c7931854a4086 but not a complete fix. At least it won't let you open a volume as a project now.

jackburton79 avatar Dec 18 '23 11:12 jackburton79

Although opening a big folder takes a lot of time, the situation is not so bad as before. I guess we can close this.

jackburton79 avatar May 31 '24 06:05 jackburton79