-
Notifications
You must be signed in to change notification settings - Fork 55
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
The web KVM isn't showing the terminal screen #128
Comments
Also, I created the patch to fix this as follows, which resulted in the KVM displaying the terminal screen:
After applying the patch, the KVM displays the terminal screen. Now, when I switch to another page multiple times and then go back to the KVM page, I randomly encounter an issue where the KVM terminal screen does not display. The
Does anyone have any ideas or suggestions for solving this problem? |
Thanks for reporting the source you are using. Please adjust your reference to the source hash to remove the Your code having been reformatted before generating the diff makes it hard to spot what you changed. There obvious change is replacing The diagnostics you reported
appears to be a connection was closed without the expected websocket shutdown handshake but would need realtime monitoring to see what action triggered them However, I'll also mention there was a recent discussion in discord That discussion showed an apparent object that was 0 sized viewport. But this does make me curious what creates vertical displacement for the object? (Might the invalid constructed object have a nonzero size? ) The div is class |
Thanks for your reply with the information, Basically, about using new RFB() to create a new object in Vue 2 and Vue 3 does not significantly differ in terms of operation. Both versions support creating new objects from a class or constructor function, same with scaleViewport & clipViewport on both the versions. Regarding the clues you provided, I will find more and provide them in the next comments. |
Hi @mdmillerii, diff --git a/src/views/Operations/Kvm/KvmConsole.vue b/src/views/Operations/Kvm/KvmConsole.vue
index 6e2a4ea..f1dc798 100644
--- a/src/views/Operations/Kvm/KvmConsole.vue
+++ b/src/views/Operations/Kvm/KvmConsole.vue
@@ -118,8 +118,6 @@ export default {
{ wsProtocols: [token] },
);
- this.rfb.scaleViewport = true;
- this.rfb.clipViewport = true;
const that = this;
this.resizeKvmWindow = throttle(() => {
-- If you have any updates, please leave a comment to let me know, regards. |
Thanks for the test results!. I'm a novice not an expert in js and Vue3 but will try to get the attention of some experts now that we are certain of the source of the problem. One more thing that might help evaluate if this is a fix or a workaround would be a few tests test would be resize your browser window with the KVM connected.
|
Describe the bug:
The Web KVM isn't showing the terminal screen.
Compile
webui-vue
at commit: 918526f20c16a05c261a56814657942a707323ddStep to Reproduce:
Expected behavior:
Screenshots:
The text was updated successfully, but these errors were encountered: