Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Constantly asking to download index.html
Constantly asking to download index.html [message #1852610] Fri, 27 May 2022 07:30 Go to next message
akeryw_name akeryw_lastname is currently offline akeryw_name akeryw_lastnameFriend
Messages: 3
Registered: May 2022
Junior Member
Whatever report I try to open I'm asked 3 times to download index.html file.

I can't open any report inside eclipse and these index files don't contain style, so it's just a column of text.

Why is Eclipse MAT asking to download these files instead previewing them in new tab?

[Updated on: Fri, 27 May 2022 20:25]

Report message to a moderator

Re: Constantly asking to download index.html [message #1852639 is a reply to message #1852610] Sun, 29 May 2022 10:27 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
Which version of MAT?
Which operating system?
Have you followed the advice for Problems displaying reports

The HTML reports have many files including style sheets and a zip with all the files is generated by MAT. The 'Open Report' menu item is used to view an already generated report and MAT then unzips the report zip file to a temporary directory to allow the report to be viewed.
Re: Constantly asking to download index.html [message #1852642 is a reply to message #1852639] Sun, 29 May 2022 14:40 Go to previous messageGo to next message
akeryw_name akeryw_lastname is currently offline akeryw_name akeryw_lastnameFriend
Messages: 3
Registered: May 2022
Junior Member
>Which version of MAT?

Memory Analyzer 1.12.0.202106020830

>Which operating system?

ArchLinux

I have the following webkits installed:

❯ pacman -Q | grep webkit
webkit2gtk 2.36.3-1
webkit2gtk-4.1 2.36.3-1
webkit2gtk-5.0 2.36.3-1

>Have you followed the advice for Problems displaying reports

I don't get the error described on top of this page.

I only get asked to download index.html without styles.

Example content of such file:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-type" content="text/html;charset=UTF-8"><title>Leak Suspects</title><link rel="stylesheet" type="text/css" href="styles.css"><link rel="contents" href="toc.html"><link rel="start" href="index.html"><script src="code.js" type="text/javascript"></script></head><body onload="preparepage();"><div><input type="hidden" id="imageBase" value="img/" title="hide / unhide"></div><div id="header"><a class="sr-only" href="#content">Skip to main content</a><ul><li><a href="#content">Leak Suspects</a></li></ul></div>
<div id="content"><h1 id="i1">Leak Suspects</h1><h2 id="i2"><a href="pages/System_Overview2.html">System Overview</a></h2><h2 id="i8"><a href="#" onclick="hide(this, 'exp8'); return false;" title="hide / unhide"><img src="img/opened.gif" alt=""></a> <img src="img/error.gif" alt="Status: error."> Leaks <a href="mat://query/leakhunter" title="Open in Memory Analyzer: leakhunter"><img src="img/open.gif" alt=""></a></h2><div id="exp8"><h5 id="i16"><a href="#" onclick="hide(this, 'exp16'); return false;" title="hide / unhide"><img src="img/opened.gif" alt=""></a> Overview</h5><div id="exp16"><map name='chart16map'><area  shape="poly" coords="686,146,836,146,836,160,686,160" alt="Slice (a)  Problem Suspect 1: Shallow Size: 16 B     Retained Size: 28.1 MB" href="mat://object/0xa2f3fd10" title="(a)  Problem Suspect 1: Shallow Size: 16 B     Retained Size: 28.1 MB"><area  shape="poly" coords="686,168,836,168,836,182,686,182" alt="Slice (b)  Problem Suspect 2: Shallow Size: 24 B     Retained Size: 24.5 MB" href="mat://object/0xa240ba78" title="(b)  Problem Suspect 2: Shallow Size: 24 B     Retained Size: 24.5 MB"><area  shape="poly" coords="686,189,836,189,836,203,686,203" alt="Slice (c)  Remainder: Retained Size: 151.3 MB"  title="(c)  Remainder: Retained Size: 151.3 MB"></map><img src="chart16.png" width="850" height="350" usemap='#chart16map' alt="Pie chart with 3 slices: Total: 203.8 MB" title="Pie chart with 3 slices"></div><h3 id="i17"><a href="#" onclick="hide(this, 'exp17'); return false;" title="hide / unhide"><img src="img/opened.gif" alt=""></a> <img src="img/error.gif" alt="Status: error."> Problem Suspect 1</h3><div id="exp17"><div class="important"><div><p>13 instances of <strong><q>org.infinispan.container.impl.DefaultSegmentedDataContainer</q></strong>, loaded by <strong><q>jdk.internal.loader.ClassLoaders$AppClassLoader @ 0xa24006f8</q></strong> occupy <strong>28.06 MB (13.77%)</strong> bytes. <p>Biggest instances:</p><ul title="Biggest instances:"><li>org.infinispan.container.impl.DefaultSegmentedDataContainer @ 0xa30380e0&nbsp;-&nbsp;12.93 MB (6.34%) bytes. </li><li>org.infinispan.container.impl.DefaultSegmentedDataContainer @ 0xa30249d8&nbsp;-&nbsp;7.96 MB (3.91%) bytes. </li><li>org.infinispan.container.impl.DefaultSegmentedDataContainer @ 0xa2cb0e60&nbsp;-&nbsp;3.98 MB (1.95%) bytes. </li><li>org.infinispan.container.impl.DefaultSegmentedDataContainer @ 0xa568fff0&nbsp;-&nbsp;2.07 MB (1.01%) bytes. </li></ul><p><strong>Keywords</strong></p><ul style="list-style-type:none;" title="Keywords"><li>org.infinispan.container.impl.DefaultSegmentedDataContainer</li><li>jdk.internal.loader.ClassLoaders$AppClassLoader @ 0xa24006f8</li></ul></div><div><a href="pages/19.html">Details &raquo;</a></div></div></div><h3 id="i18"><a href="#" onclick="hide(this, 'exp18'); return false;" title="hide / unhide"><img src="img/opened.gif" alt=""></a> <img src="img/error.gif" alt="Status: error."> Problem Suspect 2</h3><div id="exp18"><div class="important"><div><p>171,461 instances of <strong><q>java.lang.String</q></strong>, loaded by <strong><q>&lt;system class loader&gt;</q></strong> occupy <strong>24.53 MB (12.04%)</strong> bytes. <p><strong>Keywords</strong></p><ul style="list-style-type:none;" title="Keywords"><li>java.lang.String</li></ul></div><div><a href="pages/23.html">Details &raquo;</a></div></div></div></div><br></div><div id="footer" class="toc"><a href="toc.html">Table Of Contents</a><div class="mat">Created by <a href="http://www.eclipse.org/mat/" target="_blank">Eclipse Memory Analyzer</a></div></div>
</body></html>


The tab where report should be displayed can be inspected and looks like this:

index.php/fa/42121/0/

The following messages are logged:

❯ eclipse-mat
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.eclipse.osgi.internal.framework.SystemBundleActivator (file:/opt/eclipse-mat/plugins/org.eclipse.osgi_3.16.300.v20210525-1715.jar)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.internal.framework.SystemBundleActivator
WARNING: System::setSecurityManager will be removed in a future release

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:83:29: The style property GtkStatusbar:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:117438): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:117438): Gtk-WARNING **: 15:39:23.035: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:117438): Gtk-WARNING **: 15:39:23.036: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:117438): Gtk-WARNING **: 15:39:23.036: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-WARNING **: 15:39:23.049: Theme parsing error: gtk.css:83:29: The style property GtkStatusbar:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version

(Eclipse Memory Analyzer:117100): Gtk-CRITICAL **: 15:39:26.311: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(WebKitWebProcess:118873): Gtk-WARNING **: 15:39:32.236: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:118873): Gtk-WARNING **: 15:39:32.236: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:118873): Gtk-WARNING **: 15:39:32.236: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(WebKitWebProcess:118873): Gtk-WARNING **: 15:39:32.236: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version
Re: Constantly asking to download index.html [message #1852864 is a reply to message #1852642] Wed, 08 June 2022 21:28 Go to previous messageGo to next message
akeryw_name akeryw_lastname is currently offline akeryw_name akeryw_lastnameFriend
Messages: 3
Registered: May 2022
Junior Member
Where else could I get any support for this problem?
Re: Constantly asking to download index.html [message #1852959 is a reply to message #1852864] Mon, 13 June 2022 08:41 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
I suspect this could a problem with any Eclipse using the internal web browser.
If you start an Eclipse IDE instance, create an html file, then view using 'Open with' > 'Web Browser', does it work properly?

Also have a look at some Wiki: Crashes_on_Linux and Windows Subsystem for Linux which
have some suggestions for configuring the web browser.
Re: Constantly asking to download index.html [message #1852990 is a reply to message #1852959] Tue, 14 June 2022 08:25 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
I got an Archlinux Docker image to work with Podman on Windows Subsystem for Linux 2 using the Cygwin/X Server on the Windows host. The reports appear correctly. Perhaps multiple webkitgtk in your environment is causing problems.

FROM registry.hub.docker.com/library/archlinux:latest
RUN pacman -Sy && pacman -S --noconfirm jre-openjdk wget unzip webkit2gtk firefox
COPY MemoryAnalyzer-1.12.0.20210602-linux.gtk.x86_64.zip /tmp/
RUN unzip /tmp/MemoryAnalyzer-1.12.0.20210602-linux.gtk.x86_64.zip -d /opt
ENV DISPLAY host.docker.internal:0.0
ENV WEBKIT_DISABLE_COMPOSITING_MODE=1
CMD ["/opt/mat/MemoryAnalyzer"]


podman build . -t matarch
podman run -e DISPLAY matarch
Re: Constantly asking to download index.html [message #1867629 is a reply to message #1852610] Tue, 02 July 2024 09:32 Go to previous message
Monaliza Monaliza is currently offline Monaliza MonalizaFriend
Messages: 2
Registered: October 2023
Junior Member

akeryw_name akeryw_lastname wrote on Fri, 27 May 2022 07:30
Whatever report I try to open I'm asked 3 times to download index.html file.

I can't open any report inside eclipse and these index files don't contain style, so it's just a column of text.

Why is Eclipse MAT asking to download these files instead previewing them in new tab?


Your reports may not be shown appropriately by the Eclipse Memory Analyzer Tool. It asks you to download an "index.html" file with an incorrect layout and style instead of previewing the reports.

[There are several possible causes for this behavior:
The report files may be corrupted or not in the right format.

Your Eclipse installation or the Eclipse MAT plugin may be having configuration problems.

The report files may be referenced outside resources (such as CSS files) that the Eclipse MAT cannot access.

Here are some things you can attempt to troubleshoot this issue:

Check that the report files are intact. To check if they display correctly, try opening them in a web browser or with another program.

Make sure the Eclipse MAT plugin is configured appropriately by checking it.

Instead of opening the reports through Eclipse MAT, try opening them directly in a web browser. This will assist you in identifying whether the problem is with the report files themselves or the Eclipse MAT specifically.

Try incorporating the external resources with the report files or changing the report files to utilize inline styles if the reports are referring them.

Should the problem continue, you might need to ask the Eclipse MAT support group or the creators of the program you're using to create the reports for more help.

With any luck, this clarifies the issue and offers some suggestions for resolving it. Please contact me with any more queries.
Previous Topic:[ANNOUNCEMENT] The MAT code repository has changed
Next Topic:How to calculate the deep object size in MAT?
Goto Forum:
  


Current Time: Mon Jan 20 20:15:58 GMT 2025

Powered by FUDForum. Page generated in 0.04137 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top