[ 
https://issues.apache.org/jira/browse/GUACAMOLE-884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16937441#comment-16937441
 ] 

Michael Jumper edited comment on GUACAMOLE-884 at 9/25/19 5:57 PM:
-------------------------------------------------------------------

Chrome, firefox, Safari, IE, edge browsers all have this problem. We found that 
as long as we use the new image () to draw the image, we have this problem. But 
if you turn the base64 picture into blob, it's no problem to use the method of 
createImageBitmap to produce image. But there is a big problem of browser 
compatibility in createImageBitmap. Is the way you transmit data wrong?Maybe 
there is a better choice for data transmission. Base64 pictures should not be 
used. Many people say that frequently drawn canvas does not recommend base64 
pictures, but rather RGBA matrix pictures.

!CorrectCode.png|width=100%!


was (Author: chenjf):
Chrome, firefox, Safari, IE, edge browsers all have this problem. We found that 
as long as we use the new image () to draw the image, we have this problem. But 
if you turn the base64 picture into blob, it's no problem to use the method of 
createImageBitmap to produce image. But there is a big problem of browser 
compatibility in createImageBitmap. Is the way you transmit data wrong?Maybe 
there is a better choice for data transmission. Base64 pictures should not be 
used. Many people say that frequently drawn canvas does not recommend base64 
pictures, but rather RGBA matrix pictures.

!CorrectCode.png!

> Canvas Render Browser Memory Leakage
> ------------------------------------
>
>                 Key: GUACAMOLE-884
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-884
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-common-js
>    Affects Versions: 1.0.0
>         Environment: guacamole 1.0
>            Reporter: jianfeng chen
>            Priority: Minor
>         Attachments: 001.png, CorrectCode.png, guac-js-heap.png, pysh.py
>
>
> In SSH protocol, executing Python scripts will constantly render and refresh 
> the interface, resulting in a gradual increase in browser memory, and finally 
> browser crash.
> The script content is in the attachment.
> Execute script instructions:python pysh.py 1024 1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to