Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
marcorusso
Most Valuable Professional
Most Valuable Professional

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

64 REPLIES 64
jjesus_fd
Frequent Visitor

 

Error.JPG

 

Buenas tardes,

 

Al actualizar a la nueva versión de diciembre de 2019 me sale el error "CefSharp.BrowserSubprocess dejó de funcionar".

Reinstale versiones anteriores y el error persiste. Actualmente he dejado la versión de diciembre de 2019

 

La memoria consumida crece al cambiar de página y cuando activo las vista de marcadores hasta cerrarse el fichero. Las visualizaciones personalizadas que utilizo son "chicletslicer" y "textfilter".

 

Creo que el mayor problema al que me he enfretado ya que todos mis informe están inutilizados por este hecho.

 

Pido ayuda.

 

Gracias.

Error.JPG

Este es el consumo de memoria cuando se activa el panel de marcadores. Hasta que se cierra.

 

Memoria Cefsharp.JPG

Si abro el fichero y voy al panel de marcadores queda inutilizable el informe.

AdrianTepes
New Member

Hello there, I'm a new user and I already noticed the memory leak "cefsharp.browsersubprocess.exe".

I'm using Power BI Desktop under Win7 SP1.

Is there any solution yet?

 

Thanks.

Anonymous
Not applicable

Is this being addressed? I am experiencing the same issue.  

v-viig
Community Champion
Community Champion

Hi @Anonymous

 

Power BI Custom Visuals API team is working on improving performance.

 

Can you share any details on when you face the same issues?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Hi @v-viig ,

 

a new guy bothering you for updates...   😉

Any news on this issue? We're currently also in the middle of two proof of concepts with enterprise customers and without solving this performance issue we're probably going to loose against Qlik Sense.

 

Thanks for your effort & Kind regards,

Gerrit

v-evelk
Microsoft Employee
Microsoft Employee

Hi Gerrit,

 

Custom Visuals consume less memory if they use last versions of API.

Regarding tihs, we recommend developers to migrate their visuals to latest API.

 

What exact troubles do you have with performance?

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

iperezlemme
Frequent Visitor

Hi Ignat,

In my case, the problem seems fixed in Power BI Desktop and Power BI Services while using certain browsers (Chrome, Safari and Firefox). But when using IE or Edge, the memory leak persists. 

I believe the memory footprint is still been worked on, but i'm afraid using both Microsoft's browsers, the memory leak persists. 

In my case, I detected the same issue Marco reported, but only using PowerApps custom visual (currently in preview mode) and Argis maps. At the time, I found no other custom visuals with the same issue. 

The main problem is that any of the mentioned browsers release no memory at any time (I left the computer on for 2 hours and memory was still taken). What makes it even worse, is that IE doesn't crash and restart by itself, but I shows an error in the report and stops loading as shown in the images at the end. Edge manages a bit better and reboots by itself.

Some technical details....

  • Independent of the OS
  • Only occurs in Edge and IE. Couldn't repro in Chrome, Safari and Firefox
  • IE crashes when reaching 1.5GB memory. Edge crashes when reaching 5GB memory (I miss a test here, what occurs when the computer doesn't have that much memory available)
  • It's not exclusive of custom visuals (as far as I am concerned). If you move quickly enough between pages, the browser still increases in memory consumption without releasing any, with the same ending. In this case, IE does release the memory after a while. 

 

 

Edge Memory Leak in Win10Edge Memory Leak in Win10IE11 Memory Leak in Win10IE11 Memory Leak in Win10IE11 Memory Leak in Win7IE11 Memory Leak in Win7 

 

Regards,

Ignacio

It looks like this issue might be related to these specific visuals.

 

Can you share any repro steps?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Yes, sure!

0. Open app.powerbi in IE 11 or Edge

1. Create a new report (Desktop/Service) with a datasource of your choice, AdventureWorks will do.

2. Create 2 pages in your report and in one or both pages insert a PowerApp visual or ESRI Maps visual, with the corresponding fields.

3. Navigate the report going from page 1 to page 2, to page 1, and again. 

4. If desired, open Task Manager to review how memory incresases without being released at any moment. In IE it'll crash when reaching 1.5gb aprox and Edge 4/5gb aprox. 

 

Please tell me if you need any more info! 

Ignacio

Hi Ignacio,

 

Thank you for detailed repro steps. We'll share them to proper team for further investigation.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

christianbt
Frequent Visitor

Has this issue been fixed? 

The primary memory leak was fixed.

Currently we're working on other methods to reduce memory footprint.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Definitely there is problem with custom visuals. I have an report in which all the visuals load fast except clicklet slicer and card with states.
I had to use clicklet slicer, because it enforces the user to always select one.
I had to use card with states in order to display fore color as green when value is greater than zero. Else red.
All these features are not available in default visuals.
v-viig
Community Champion
Community Champion

Power BI Custom Visuals API team is working on improving performance of custom visuals.

That process is taking some time since we have to modify large bunch of code.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Sounds good, place keep us updated 🙂 We're also seeing major performance issues using 30+ 'card with states' on a single page. Desktop also crashes when used too long (the memory leak issue) although closing/opening Desktop helps (if you remember :-))

v-viig
Community Champion
Community Champion

Thank you for the details.

We'll update status once we have any news.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Any news on this? We have several dashboards running at customer sites where we've had to move away from custom visuals due to the slow response and difficulty in building reports with lots of custom visuals (+20)

Anonymous
Not applicable

This is having a severe impact on our reporting and is causing huge spikes in CefSharp.BroswerSubprocess for me. I have been pulling my hair out redesigning measures and entire reports and it seems like it is related to the use of custom visuals (mostly the Card with States visual) that is used in our dashboards. Having dashboards without conditional formatting is a no go for us and we really need a fix as soon as possible. 

 

We're an enterprise customer with over 800 users and use of custom visuals is needed where standard Power BI visuals do not meet requirements, do you guys have an ETA on this as I'm currently in a situation where I cannot even edit some of my reports and need to reconsider what we can and can't make available to our end users. 

 

Thanks.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors