You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/06/02 15:01:51 UTC

[GitHub] [cloudstack] GabrielBrascher opened a new issue #5068: UI: noVNC encountered an error - Cannot set property 'scaleViewpoer' of undefined

GabrielBrascher opened a new issue #5068:
URL: https://github.com/apache/cloudstack/issues/5068


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   UI
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   4.15.0.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   New UI and noVNC enabled.
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   This issue is being hard for me to reproduce, but it happened sometimes.
   
   The issue happens when resizing the console (noVNC) window. Error:
   
   ```
   noVNC encountered an error: 
   
   Uncaught TypeError: Cannot set property 'scaleViewpoer' of undefined <https URL>
   ```
   
   I could not find anything concrete about what is triggering this issue. This exception points to line [systemvm/agent/noVNC/app/ui.js#L1216:30](https://github.com/apache/cloudstack/blob/280c13a4bb103dd748ec304bfe0714a148c24602/systemvm/agent/noVNC/app/ui.js#L1216). However, it is the kind of issue that it happens of working many times in a row (same network, browser, etc) and suddenly there is an issue.
   
   It is important to note that the URL for the console, when inspecting the page, always works.
   
   In summary:
   1. URL works always (sometimes failed when resizing, but opening URL on another window brings the console)
   2. DNS is working
   3. Console System VM is working fine and presents properly the VM's console
   
   I am not sure if this is a problem on the UI, or at another point, but the exception is raised at [UI.rfb.scaleViewport = this.fullScreen](https://github.com/apache/cloudstack/blob/280c13a4bb103dd748ec304bfe0714a148c24602/systemvm/agent/noVNC/app/ui.js#L1216):
   ```
       toggleFullscreen() {
           this.fullScreen = !this.fullScreen
           UI.rfb.scaleViewport = this.fullScreen
           UI.updateFullscreenButton(this.fullScreen);
           UI.focusOnConsole();
       },
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5068: UI: noVNC encountered an error - Cannot set property 'scaleViewpoer' of undefined

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5068:
URL: https://github.com/apache/cloudstack/issues/5068#issuecomment-853130985


   @GabrielBrascher PS. 4.15.1.0 RC1 is out, please help test that :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5068: UI: noVNC encountered an error - Cannot set property 'scaleViewpoer' of undefined

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5068:
URL: https://github.com/apache/cloudstack/issues/5068#issuecomment-853123950


   @GabrielBrascher this should have been fixed by #4833 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] GabrielBrascher commented on issue #5068: UI: noVNC encountered an error - Cannot set property 'scaleViewpoer' of undefined

Posted by GitBox <gi...@apache.org>.
GabrielBrascher commented on issue #5068:
URL: https://github.com/apache/cloudstack/issues/5068#issuecomment-853128207


   Ah might be the case. Thanks for the quick response @weizhouapache.
   
   I will test it with the changes from #4833. If it persists I will re-open this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] GabrielBrascher closed issue #5068: UI: noVNC encountered an error - Cannot set property 'scaleViewpoer' of undefined

Posted by GitBox <gi...@apache.org>.
GabrielBrascher closed issue #5068:
URL: https://github.com/apache/cloudstack/issues/5068


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org