Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Sad Face appears after fromJson (Read 2666 times)
gypsyjoe11
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Mar 1st, 2021
Sad Face appears after fromJson
Mar 18th, 2021 at 6:12pm
Print Post  
I'm having a weird issue where everything was working fine and then after every return trip from the server right after re-drawing the diagram map the map freezes and I get a sad face icon in the upper left.

I happens on the line sender.fromJson(result.diagramToJson);

function onNodeModified(sender, args) {
     $.ajax({
           type: "POST",
                 url: "@Url.Action("SwimlaneModified", "Swimlanes", new { area = "Admin"})",
                 data: { diagramJson: sender.toJson() },
                 dataType: 'json',
                 cache: false,
                 success: function (result) {
                       
                       hideProgressIndicator();
                       if (result.success) {
                             //Redisplay diagram
                             sender.fromJson(result.diagramToJson);
                       } else {
                             buildPopupDanger(result.message);
                       }
                       return;
                 }
     });
}
  

Capture_009.PNG ( 0 KB | 156 Downloads )
Capture_009.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Sad Face appears after fromJson
Reply #1 - Mar 19th, 2021 at 7:03am
Print Post  
The diagram control does not contain such icon, maybe it's the browser showing it or another library you are using. Does the developer console show any errors or warnings?
  
Back to top
 
IP Logged
 
gypsyjoe11
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Mar 1st, 2021
Re: Sad Face appears after fromJson
Reply #2 - Mar 19th, 2021 at 5:03pm
Print Post  
No errors in the developer console. If I set a breakpoint everything looks fine until it executes fromJson.

I wonder if it's a memory related? I'm still trying to track it down. Seems to happen after I've been using the map for awhile.
« Last Edit: Mar 19th, 2021 at 8:18pm by gypsyjoe11 »  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Sad Face appears after fromJson
Reply #3 - Mar 19th, 2021 at 5:16pm
Print Post  
Please attach the json file.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Sad Face appears after fromJson
Reply #4 - Mar 22nd, 2021 at 7:35am
Print Post  
If you are still using v3.2.2 mentioned in previous thread, it's possible you've reached the max size of canvas element supported by browser. Enabling DiagramView.VirtualScroll should fix that. In newer versions it's enabled by default.

Regards,
Slavcho
« Last Edit: Mar 22nd, 2021 at 9:18am by Slavcho »  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Sad Face appears after fromJson
Reply #5 - Mar 25th, 2021 at 3:03pm
Print Post  
We've confirmed the sad face is shown when canvas element gets too large. So setting DiagramView.VirtualScroll in your older version or moving to v3.3+ should fix it.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint