You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Eugen Hartmann (Jira)" <ji...@apache.org> on 2025/01/22 14:21:00 UTC
[jira] [Created] (GUACAMOLE-2021) Session recording playback heatmap broken for short videos
Eugen Hartmann created GUACAMOLE-2021:
-----------------------------------------
Summary: Session recording playback heatmap broken for short videos
Key: GUACAMOLE-2021
URL: https://issues.apache.org/jira/browse/GUACAMOLE-2021
Project: Guacamole
Issue Type: Bug
Components: guacamole
Affects Versions: 1.5.5
Reporter: Eugen Hartmann
Activity heatmaps are broken for short session recordings (less than 10 seconds). They are not shown and there is an error in the browser console:
{noformat}
jquery.min.js:2 Error: <path> attribute d: Expected number, "M0,NaNL0,NaNC0,NaN,…".
{noformat}
This happens because the *service.generateHeatmapPath* function uses math floor during max event calculation which gives 0 in case of videos less than 10 seconds:
{noformat}
const maxPossibleBucketValue = Math.floor(bucketDuration * maxRate);
{noformat}
Then the *createPath* function has a division to zero:
{noformat}
const yScalingFactor = height / maxBucketValue;
{noformat}
The perfect solution would be to use variable NUM_BUCKETS depending on video length, but I do not think it is really necessary. So I would just limit the minimum *maxPossibleBacketValue* to 1.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)