cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marcorusso Member
Member

Memory leaks in Power BI custom visuals

In the last few days I connected the dots between several requests I received, and I've found that when custom visuals are created and removed frequently in a report, the browser (or the process CefSharp.BrowserSubprocess.exe used by PBI Desktop) grows in memory until it becomes unusable.

The native visuals don't seem affected by that.

Crashing Power BI seems incredibly easy:

  1. Create a table with 10 rows in a new PBIX file
  2. Import the Chiclet slicer custom visual from the store
  3. Create a Chiclet slicer applying the column with 10 rows
  4. Copy and paste the slicer 9 times around the same page
  5. Duplicate Page1
  6. Save the file (just in case)
  7. Open Task Manager and switch back and forth between page 1 and page 2 for a while
    • The process CefSharp.BrowserSubprocess will grow in memory
    • Switch between one page and another will slow down progressively, usually after 2GB of RAM consumed by the process the response time is unmanageable
  8. Publish the file on powerbi.com
  9. Switch back and forth between page 1 and page 2 for a while
    • This time your browser will grow in memory usage...

 

If I use a regular slicer, the issue is not visible. In reality, I see 4-5 KB lost every time I switch between pages, but it's a fraction of the cost of the custom visuals.

I tried with other custom visuals, made by different developers, and I've got the same result.

 

I have seen in Power BI forum several threads related to the presence of the CefSharp.BrowserSubprocess process, but I didn't see an explanation of the reason, which is not really related to that process considering that the issue also happens on a regular browser for published reports.

 

To my eyes, this is some memory leak issue related to custom visuals when the user switch between pages of the same report. But, of course, I could be wrong, so in this case any further information would be useful.

 

Is this something that other noticed?

Any comment from MS?

 

Thanks,

 

Marco

60 REPLIES 60
Moderator v-viig
Moderator

Re: Memory leaks in Power BI custom visuals

Hello @marcorusso

 

Thank you for the issue report.

This issue will be investigated deeper.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

embaud Frequent Visitor
Frequent Visitor

Re: Memory leaks in Power BI custom visuals

I can confirm the issue. Using Chiclet slicer on sveral pages. Each time you switch pages,CefSharp.BrowserSubprocess.exe grows in memory and CPU usage. At some point response time becomes unmanageable and you nedd to restart.

 
aruparel Member
Member

Re: Memory leaks in Power BI custom visuals

@embaud, Is there a fix planned for this issue? We are facing similar issue and our report pages have other custom visuals as well, including Chiclet slicers.

 

The customer finds the report to be unusable, as not all the client computers have RAM > 4GB. The behavior is observed in both IE as well as Chrome.

 

Regards,

Ashish

Moderator v-viig
Moderator

Re: Memory leaks in Power BI custom visuals

As far as I know, Power BI Custom Visual API team is still working on this issue.

We'll update status once we have some news.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

aruparel Member
Member

Re: Memory leaks in Power BI custom visuals

Hi Ignat,

 

We have a production release which is put on hold because of this issue. This issue impacts the whole project and the customer may shy away from PowerBI becuase of this issue.

 

Is there a way where an accelerated solution is worked on for this issue and a fix released?

 

This has really become a show stopper for us in rolling out the reports to production for the customer.

 

Regards,

Ashish

Moderator v-viig
Moderator

Re: Memory leaks in Power BI custom visuals

Hello Ashish,

 

I'm really sorry to hear that. Power BI Custom Visuals API team is working hard to fix this issue (I'll try to get deatails).

Current workaround is to reduce amount of custom visuals on the same page. Might this workaround be applied for your case?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

aruparel Member
Member

Re: Memory leaks in Power BI custom visuals

Hi Ignat,

 

Appreciate your quick response and efforts in assisting us on this and would appreciate any further information.

 

We are using custom control as we are migrating existing reports for the customer and they want to have functionality as close to the existing ones as possible. If we remove custom visuals, then we lose the functionality that the customer is used to and would again put the adaption of PowerBI on risk.

 

Thanks,

Ashish

Moderator v-viig
Moderator

Re: Memory leaks in Power BI custom visuals

What kind of custom visuals do you use? Is your company a developer of these visuals?

Is it possible to merge a few custom visuals into single one?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Moderator v-viig
Moderator

Re: Memory leaks in Power BI custom visuals

Good news from Power BI Custom Visuals API team.

This issue has been fixed. ETA is 1st week of October.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com