[ 
https://issues.apache.org/jira/browse/GUACAMOLE-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jianfeng chen updated GUACAMOLE-884:
------------------------------------
    Comment: was deleted

(was: let task = scheduleTask(function __display_draw() {
 if (image.width && image.height) {
 layer.drawImage(x, y, image);

 }
}, true);

let byteString = url;
if (url.indexOf('base64,') !== -1) {
 byteString = url.split(',')[1];
}
byteString = atob(byteString);
let bytearray = new Uint8Array(byteString.length);
for (let j = 0; j < byteString.length; j++) {
 bytearray[j] = byteString.charCodeAt(j);
}
let blob = new Blob([bytearray], {
 type: 'data:image/png'
});
let image = null;
createImageBitmap(blob).then((result) => {
 image = result;
 task.unblock();
});)

> 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