Client internal error on tooltip of datagrid

0
We are using a (standard mendix) tooltip on our datagrid(s) and sometimes we get the following dialog on the screen. "An error occured, please contact your system administrator." From the error log, I can see that something is happening inside mxui.js, but there is no way to deal with it. Has anyone faced a similar problem? ------------------- Log level: Error Log node: Client Cannot read property 'show' of null TypeError: Cannot read property 'show' of null     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:52:273963     at o (http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:20:26852)     at Object.e.exports.collect (http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:20:27033)     at Object.e.exports.applyContext (http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:46:58285)     at callback (http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:52:273888)     at O (http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:79:25829)     at http://localhost:8080/mxclientsystem/mxui/mxui.js?637111569646748738:79:31367
asked
5 answers
1

This is a bug in mxui and is a timing issue, so if you click too fast or the tooltip takes a while to load you will see this error. 
To get rid of the annoying error popup use an HTML or Javascript snippet then throw in the following code (tested on Mx7.23.8):

if ( typeof window.showTooltipErrorOverride == "undefined" ) { // only need to override once
  window.showTooltipErrorOverride = true;
  let oldMxOnError = mx.onError;
  mx.onError = function (n) {
     if ( n instanceof Error && n.message == "Cannot read property 'show' of null" ) {
       console.warn(n.stack);
     } else {  
       oldMxOnError.apply(null, arguments);
     } 
  }
}

 

answered
0

I can sometimes reproduce this by double-clicking a datagrid row to open a new page and then quickly move the mouse pointer to a column that has Show tooltip=yes. To me it seems that in a split second an attempt is done to still show the tooltip while the new page is being loaded. Do you see the same behavior?

answered
0

Hi here,

Any news about that error?
We are facing the same error.
In the data grid, we show a tooltip. Sometimes when quickly mooving the pointer from the datagrid + tooltip to another part of the form (over another datagrid) then an error popup happens sometimes.

We are using the version 8.7.0,

Is there a fix in recent version?


Here is the log of the console when the popup appears:

 

Many Thanks,

answered
0

Thanks for your quick answer Andrej,
We’ll have a try, sounds real good as a patch

 

 

answered
0

Response from Mendix on my ticket (#114195):

We fixed a similar issue with datagrid tooltip in the past, where the error used to occur sporadically after hovering over the datagrid rows. See release notes - https://docs.mendix.com/releasenotes/studio-pro/8.15#fixes-2

I could see you reported the issue for modeler version 7.23.19. Could you please upgrade to 8.15, or the latest studio pro version and see if you still get the issue?

answered