humdek-unibe-ch / sh-shp-survey_js

SelfHelp plugin that integrates [SurveyJS](https://surveyjs.io)
0 stars 0 forks source link

Memory limit #3

Open Kodzhabashev opened 6 months ago

Kodzhabashev commented 6 months ago

In GitLab by @Kodzhabashev on Dec 11, 2023, 10:52

Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5669904 bytes)

On survey dashboard all surveys are loaded, and if the surveys are too big there is an error. The code should be optimized that the survey json is loaded only when needed and not for all surveys on the initial load.

Kodzhabashev commented 6 months ago

In GitLab by @nicolas.scheurer on Dec 11, 2023, 11:08

Probably some of the surveys made use of pictures and other media.

Maybe related to this issue: What happens to the media that can be uploaded to SurveyJS pages? Do they also add to the memory required when loading? Can they be deleted? Can they be reused in different surveys?

Number of Surveys in the project where we noticed the error:

image

Kodzhabashev commented 6 months ago

In GitLab by @Kodzhabashev on Dec 18, 2023, 15:53

@nicolas.scheurer

I just checked and not all data is loaded in the surveysJs list table.

Once you go to the Dashboard it loads only one survey. The error was on SurveyJs list itself, right? But there is no data load there for the surveys.