Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Freezes When Focusing on Textbox on Linux #314

Open
zicklag opened this issue Mar 24, 2024 · 10 comments
Open

UI Freezes When Focusing on Textbox on Linux #314

zicklag opened this issue Mar 24, 2024 · 10 comments

Comments

@zicklag
Copy link

zicklag commented Mar 24, 2024

Hey there, thank you for a nice tool!

Unfortunately I'm having a problem where whenever I focus on the textbox in the chat tab, it freezes the UI. Interestingly, the UI is actually still working, it's just not re-rendering. It only re-renders after I resize the window. So I can type into the box, and not see anything happening, then I resize the window, and I can see what I typed. It's the same for buttons and every other UI interaction.

I'm using the v1.7.5 release on Pop!_OS ( Ubuntu ) 22.04.

@josStorer
Copy link
Owner

Go to the Configs page, check Enable WebUI and run the model, then open http://127.0.0.1:8000 in your browser. Does the issue still exist at this point?

@zicklag
Copy link
Author

zicklag commented Mar 25, 2024

The web UI works completely fine.

@josStorer
Copy link
Owner

Actually, the code of client and webui is exactly the same. The difference is that the client uses the system webview rendering. Therefore, I believe this may be an issue with the system's webview. At least, I haven't encountered this problem on Windows, macOS, or Ubuntu.

@josStorer
Copy link
Owner

Perhaps you can try compiling from the source code. The Linux client in the releases was compiled on Ubuntu.

@zicklag
Copy link
Author

zicklag commented Mar 25, 2024

My system should be very similar to Unbutu. What version of Ubuntu are you using?

I may have to try to compile it myself and run in debug mode to see if there's anything suspicious in the logs or web inspector.

Unfortunately Webkit is notorious for having all kinds of bugs and messing things up for things like Tauri, etc. I've done a bit of messing with it before, just not with wails and go.

@josStorer
Copy link
Owner

I suggest you use the webui for interaction, which has no difference in functionality compared to the client

@josStorer
Copy link
Owner

I suddenly remembered a potential issue: when the client enables webui, it will simultaneously enable deployment mode. Under Linux system, rwkv-runner server starts as a subprocess of the client. And in deployment mode, you cannot terminate the process through the client, so every time you switch models, you have to restart the client.

@josStorer
Copy link
Owner

What version of Ubuntu are you using?

Ubuntu 20.04
https://github.com/josStorer/RWKV-Runner/blob/master/.github/workflows/release.yml#L78

@zicklag
Copy link
Author

zicklag commented Mar 25, 2024

I suggest you use the webui for interaction, which has no difference in functionality compared to the client

That could be fine, but I was hoping to be able to use the WebGPU ( non-Python ) backend if possible, which doesn't have the option to host the WebUI.

Ubuntu 20.04

Ah, maybe that's the issue, since my distro is newer at 22.04.

I'll try running CI on a fork with a newer Ubuntu version and see if that helps.

@zicklag
Copy link
Author

zicklag commented Mar 25, 2024

I'll try running CI on a fork with a newer Ubuntu version and see if that helps.

Unfortunately that didn't fix it. I'll have to try building from source locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants