Menu
Download Free Trial

Web page freezes, when attempting to draw the Flexmonster JS component

Answered

Sometimes, the entire page & browser tab freezes, when we try to draw up the Flexmonster component. It’s impossible to debug,
since there are no errors in the console, when it happens, and the debug tool freezes as well.
It happens for both CSV and Mondrian datasources.
Code:
 
scope:
  cube: ‘=’
template: ‘<div><div class=”center-overlay”><i class=”fa fa-pulse fa-spinner” style=”font-size:7vh”></i></div><div id=”cubeVisualizer”></div></div>’
.
.
if cube.ds.type == ‘mondrian’
reportData =
dataSource:
dataSourceType: ‘mondrian’
proxyUrl: MONDRIAN_HOST
catalog: cube.ds.schema
cube: cube.ds.name
binary: true
options : cube.options || null
slice: cube.slice || null
else if cube.ds.type == ‘csv’
reportData =
dataSource : { filename : “#{BASE_HOST}/data/#{cube.ds.schema}” }
options : cube.options || null
slice : cube.slice || null
.
.
report = element.find(‘#cubeVisualizer’).first().flexmonster
toolbar: true
report: reportData
width: $(‘.cube-container’).first().width()
height: element.parents(‘body’).outerHeight() – 100
licenseKey: FLEXMONSTER_KEY
 
Have attached an image with the frozen screen and console window.
 
 
 
 
 
 
 
 
 
 
 
 
 

Attachments:
cubes.png

1 answer

Public
Dmytro Zvazhii Flexmonster August 14, 2017

Hello Felix,
Thank you for your question. We have looked through your code and found nothing wrong there. Could you please share with us your application URL so we can reproduce the issue on our side? Also, we recommend checking the cube logs. You may find the error messages there.
Waiting for the update from you.
Best regards,
Dmytro.

Please login or Register to Submit Answer