# lineplot: SWT is not responding

**URL:** <https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446>\
**Category:** HDFView / Java HDF Object Package\
**Created:** [November 8, 2022, 7:39pm UTC](https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446 "2022-11-08T19:39:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![albert.neu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@albert.neu](https://forum.hdfgroup.org/u/albert.neu)\
**Post date:** [November 8, 2022, 7:39pm UTC](https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446/1 "2022-11-08T19:39:55Z")

</div>

Im running Ubuntu 22.04.1 LTS.

Often when I select data and hit “Show Lineplot” I have to wait very long and get the following:

SWT is not responding

![Screenshot%20from%202022-11-08%2018-20-59](https://hdf-discourse-1.s3.amazonaws.com/original/2X/2/27dfccd6a790019411c5ff5cec3fa32b54fb9d0a.png)

before the “Line Plot Options” appear.

And sometimes I wait and wait and wait; and nothing happens.  
What’s going on here?

It is like this when selecting the deb package hdfview ([Ubuntu – Details of package hdfview in jammy](https://packages.ubuntu.com/jammy/hdfview) ), so I built a shiny new hdfview (version 3.2.0) from source with openjdk-18-jdk; but it has the same behaviour.

---

<div class="post-metadata">

**Author:** ![byrn](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@byrn](https://forum.hdfgroup.org/u/byrn)\
**Post date:** [November 8, 2022, 7:53pm UTC](https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446/2 "2022-11-08T19:53:12Z")

</div>

Could it be the amount of data?

---

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [November 8, 2022, 8:20pm UTC](https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446/3 "2022-11-08T20:20:34Z")

</div>

Hi, @albert.neu!

Can you give us a link to the data file?

If not, you can try the following 3 easy-to-use tools and  
report us if they show the same behavior.

1. [Panoply](https://www.giss.nasa.gov/tools/panoply/)
2. [ViTables](https://vitables.org)
3. [HDFCompass](https://support.hdfgroup.org/projects/compass/download.html)

The 3rd option should be tried last since it’s old.

Finally, try the older version and see if it works for you:

[https://www.hdfeos.org/software/hdfeos\_plugin.php](https://www.hdfeos.org/software/hdfeos_plugin.php)

---

<div class="post-metadata">

**Author:** ![albert.neu](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@albert.neu](https://forum.hdfgroup.org/u/albert.neu)\
**Post date:** [November 11, 2022, 11:37am UTC](https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446/4 "2022-11-11T11:37:22Z")

</div>

Hi,

unfortunately I cannot yet upload to this forum.  
The file where lineplot is taking ages in HDFView (under Ubuntu Linux) can be downloaded here:

[https://fastupload.io/en/CY589sx7VS3DaDk/file](https://fastupload.io/en/CY589sx7VS3DaDk/file)  
(to download hit the blue rectangle - file has 145.25 KB - download link only valid for one month)

The downloaded file is:

**x.h5.xz**  
sha256sum: 7fc4363ac31449f77a7559aea242a06d17b37e5c228ed4c9750ad5d47a7d80ee

Decompress on linux with command:

```
xz -dk x.h5.xz

```

results in **x.h5**

Then open up in HDFView and go to mydata and try showing all the 28157 values in a lineplot.  
(Please try it on Ubuntu: apt install hdfview  
I’m using Ubuntu 22.04.1 Jammy LTS)

The cpu on one core goes permanantly to 100% … basically for ever. haha!

Can you reproduce that?

PS: If I use panoply, I can immediately get a lineplot displayed. No troubles with panoply!

---

<div class="post-metadata">

**Author:** ![hyoklee](https://forum.hdfgroup.org/user_avatar/forum.hdfgroup.org/hyoklee/32/1528_2.png) [@hyoklee](https://forum.hdfgroup.org/u/hyoklee)\
**Post date:** [November 11, 2022, 2:41pm UTC](https://forum.hdfgroup.org/t/lineplot-swt-is-not-responding/10446/5 "2022-11-11T14:41:22Z")

</div>

I’m glad to hear that **Panoply** worked!

Thank you for providing sha256sum as well. 👏

I tested the file using my Mac and _3.1.4_.  
It worked fine although HDFView’s color scheme is impossible to read any text. 😥

 ![56%20AM](https://hdf-discourse-1.s3.amazonaws.com/original/2X/e/ecc34ecc61944d2150357b518541c5060e835af3.jpg)

Thus, I think the problem is in HDFView 3.2.0 + Ubuntu + jdk.  
Please submit an issue [GitHub - HDFGroup/hdfview](https://github.com/HDFGroup/hdfview).

@byrn, is there an easy way to (unit-)test it automatically using GitHub Action?  
It would be ideal if a few lines of HDF-Java test code can generate a PNG from line plot.
