Blender Kitsu: F3 search lagging when I'm offline #283

Closed
opened 2024-04-10 10:33:51 +02:00 by Alfonso Annarumma · 4 comments

For some reason, when I'm offline and using Blender with the Kitsu addon installed, whenever I press F3 for the search, the system freezes for a few seconds. Could it be the new String Properties used to obtain episode, sequence, shot, and task? Perhaps for some reason, all search strings in Blender are linked, but I'm not sure.

Additionally, I have noticed that the search string system performs the update function with every UI refresh, whereas the old system that used an operator was much more efficient in terms of resource usage.

For some reason, when I'm offline and using Blender with the Kitsu addon installed, whenever I press F3 for the search, the system freezes for a few seconds. Could it be the new String Properties used to obtain episode, sequence, shot, and task? Perhaps for some reason, all search strings in Blender are linked, but I'm not sure. Additionally, I have noticed that the search string system performs the update function with every UI refresh, whereas the old system that used an operator was much more efficient in terms of resource usage.
Member

Hello @AlfonsoAnnarumma thanks for reporting.

I haven't been able to reproduce your issue, can you provide me any more details? Specifically under what conditions does the search freeze? Can you also confirm you are using the latest version of the Kitsu Add-On? I have not been able to reproduce the issue under the following conditions:

  • Kitsu Server is not logged in and the PC has no network connection
  • Kitsu Server is not logged in and the PC has a network connection
  • Kitsu Server is logged in but connection is broken during Blender Session
  • Kitsu Server is logged in but on Local Network with no internet connection

Yes the new string search system updates with each UI refresh, this is true for all string properties in Blender (we have a cache system so we don't ping the Kitsu server on each refresh). The decision was made to move away from the Operator by the Blender Studio because the UI is more consistent with Blender's core UI, there is a very small increase in resource usage. Also many Kitsu properties in the past didn't fully utilize the Cache system, like many of the VSE UI and the Shot Builder, so overall the switch to the new string system has reduced the resource usage of the add-on.

Hello @AlfonsoAnnarumma thanks for reporting. I haven't been able to reproduce your issue, can you provide me any more details? Specifically under what conditions does the search freeze? Can you also confirm you are using the latest version of the Kitsu Add-On? I have not been able to reproduce the issue under the following conditions: - Kitsu Server is not logged in and the PC has no network connection - Kitsu Server is not logged in and the PC has a network connection - Kitsu Server is logged in but connection is broken during Blender Session - Kitsu Server is logged in but on Local Network with no internet connection Yes the new string search system updates with each UI refresh, this is true for all string properties in Blender (we have a cache system so we don't ping the Kitsu server on each refresh). The decision was made to move away from the Operator by the Blender Studio because the UI is more consistent with Blender's core UI, there is a very small increase in resource usage. Also many Kitsu properties in the past didn't fully utilize the Cache system, like many of the VSE UI and the Shot Builder, so overall the switch to the new string system has reduced the resource usage of the add-on.
Nick Alberelli added the
Status
Need More Info
Kind: Community
labels 2024-05-07 21:53:35 +02:00

If the F3 refresh all the string properties and UI, the problem is on some poll or string update function that do a file browser operation (os.path.exitsts etc...). I work in remote with VPN and the project is in a net unity and not very fast to access.
Now I know the source, I have to find the operation that do the lagging.

If the F3 refresh all the string properties and UI, the problem is on some poll or string update function that do a file browser operation (os.path.exitsts etc...). I work in remote with VPN and the project is in a net unity and not very fast to access. Now I know the source, I have to find the operation that do the lagging.
Member

Just to be clear about what the issue is...

  1. The issue isn't that "Search is lagging when offline" infact the issue is "Search lags when my VPN connection is slow" in that case.

  2. The Kitsu Context string properties are not refreshed when you hit F3 (I have verified this), they are only refreshed when that panel is re-drawn. Further more this refresh simply calls a custom getter which doesn't access the network or the filesystem, and therefore wouldn't be the cause of the lag.

  3. If access to your file system is slow via that VPN, than you should reasonably expect some lag with certian operations, as most software assumes a reasonably fast connection to the file system. I reviewed the poll functions for the Blender Kitsu operators, and none of them check for an existing file, so that is not the cause of the issue. Try disabling all other add-ons to verify the issue is with the Blender Kitsu Add-On. We are not able to reproduce your issue.

I would recommend you read the Overview page for the Blender Studio Pipeline, as the system is designed to use services like Syncthing & SVN to sync between computers at different locations as an alternative to access your files over a VPN. The TD Guide will walk you through the setup process.

Just to be clear about what the issue is... 1. The issue isn't that "Search is lagging when offline" infact the issue is "Search lags when my VPN connection is slow" in that case. 2. The Kitsu Context string properties are not refreshed when you hit F3 (I have verified this), they are only refreshed when that panel is re-drawn. Further more this refresh simply calls a [custom getter](https://projects.blender.org/studio/blender-studio-pipeline/src/commit/982679cad3987dcdcb0413be173ed18685deff24/scripts-blender/addons/blender_kitsu/props.py#L293) which doesn't access the network or the filesystem, and therefore wouldn't be the cause of the lag. 3. If access to your file system is slow via that VPN, than you should reasonably expect some lag with certian operations, as most software assumes a reasonably fast connection to the file system. I reviewed the poll functions for the Blender Kitsu operators, and none of them check for an existing file, so that is not the cause of the issue. _Try disabling all other add-ons to verify the issue is with the Blender Kitsu Add-On._ We are not able to reproduce your issue. I would recommend you read the [Overview page](https://studio.blender.org/pipeline/user-guide/project_tools/project-overview) for the Blender Studio Pipeline, as the system is designed to use services like Syncthing & SVN to sync between computers at different locations as an alternative to access your files over a VPN. The [TD Guide](https://studio.blender.org/pipeline/td-guide/project-tools-setup) will walk you through the setup process.

Thanks! Sorry for the thread, the problem is not with blender_kitsu, with fresh installation it work now (now I have to find it).

Thanks! Sorry for the thread, the problem is not with blender_kitsu, with fresh installation it work now (now I have to find it).
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#283
No description provided.