# \*\*\* Error occurred while instantiating TableView class \*\*\*

**URL:** <https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457>\
**Category:** HDFView / Java HDF Object Package\
**Created:** [November 10, 2022, 7:21am UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457 "2022-11-10T07:21:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![torsten.robitzki](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@torsten.robitzki](https://forum.hdfgroup.org/u/torsten.robitzki)\
**Post date:** [November 10, 2022, 7:21am UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/1 "2022-11-10T07:21:24Z")

</div>

I’ve created a rather large hdf5 file, using the h5py python package. It contains one data set with a compound data type with ~120 fields. I try to use HDFView 3.1.4 to view the data. I can open the file, but when I double click on the data set, I get the error message " \*\*\* Error occurred while instantiating TableView class \*\*\*".

Is this a bug in HDFView? How could I get more details about what went wrong?

best regards

Torsten

---

<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 10, 2022, 1:54pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/2 "2022-11-10T13:54:50Z")

</div>

If the dataset is really large and/or has to do a lot of translation od data, hdfview will run into memory problems.

Recently fixed/WIP has fixed some issues to do with VLEN types in container types.

Another option (depending on your platform) is to enable the logging, see the logging document in docs folder (or file included within binary) of source.

---

<div class="post-metadata">

**Author:** ![torsten.robitzki](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@torsten.robitzki](https://forum.hdfgroup.org/u/torsten.robitzki)\
**Post date:** [November 10, 2022, 2:34pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/3 "2022-11-10T14:34:25Z")

</div>

Well, it’s 2 GB large. One data set containing 2097152 compound objects with ~256 members. For the purpose of HDF5, I would think that this is still small, right?

`h5dump` and `h5debug` are not complaining about the file. Looking with `h5dump` into the file, I find the expected data.

Is there an other HDF5 viewer available, that can be recommended?

I will try to enable the logging (most likely next week).

Thank you very much for looking into this!

---

<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 10, 2022, 3:25pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/4 "2022-11-10T15:25:48Z")

</div>

hdfview (contrary to h5dump) keeps everything in memory, so large files/object counts will cause issues depending on the machine. Lack of resources to convert the object handling processing to a “paging” technique has been the problem. hdffview does more then just show the data, and years ago, it wasn’t a problem.

---

<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 10, 2022, 3:55pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/5 "2022-11-10T15:55:19Z")

</div>

Hi, @torsten.robitzki!

Thanks for reporting the issue.  
Would you please share your file?  
I can try a few other viewers.

---

<div class="post-metadata">

**Author:** ![torsten.robitzki](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@torsten.robitzki](https://forum.hdfgroup.org/u/torsten.robitzki)\
**Post date:** [November 11, 2022, 10:33am UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/6 "2022-11-11T10:33:26Z")

</div>

Hi,  
I did a simple test and changed my tool to generate a file that is just a 16th of the original. That file can then be opened and the data can be viewed.

@hyoklee I’ve uploaded the file to [http://robitzki.de/test.h5](http://robitzki.de/test.h5)

Thank you both for looking into this.

Torsten

---

<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, 3:04pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/7 "2022-11-11T15:04:55Z")

</div>

@torsten.robitzki, thank you so much for uploading the large file! I ❤ to test big file. Our network is slow 400KB/sec so I’m still downloading it. Downloading will take another hour.

I’ll post test result as soon as downloading finishes. Please stay tuned!

---

<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, 4:42pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/8 "2022-11-11T16:42:55Z")

</div>

@torsten.robitzki, [ViTables](https://vitables.org) worked fine. Please try it!

 ![2_test_h5](https://hdf-discourse-1.s3.amazonaws.com/original/2X/5/58abe5699374147a5e0cefd5661240c9a2c75719.png)

Yes, HDFView threw the error that you reported.

---

<div class="post-metadata">

**Author:** ![christian.oyarzun](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@christian.oyarzun](https://forum.hdfgroup.org/u/christian.oyarzun)\
**Post date:** [November 11, 2022, 6:16pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/9 "2022-11-11T18:16:43Z")

</div>

@torsten.robitzki if you increase size of memory allocation pool it will load in HDFView, albeit very slowly.

Change the -Xmx in HDFView.cfg. E.g.

```
[JavaOptions]
java-options=-Xmx5120M
```

---

<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, 6:56pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/10 "2022-11-11T18:56:45Z")

</div>

Thanks @christian.oyarzun for the tip!  
Yes, it loaded after 2 minutes.  
Plotting a line from table … I don’t know when it will end.  
Patience is a virtue. 😀

---

<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 11, 2022, 7:51pm UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/11 "2022-11-11T19:51:04Z")

</div>

Debugging this is indicating there is may be something else failing then just memory.

---

<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 12, 2022, 2:31am UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/12 "2022-11-12T02:31:54Z")

</div>

Let’s go @byrn! I hope you can fix it in the next release of HDFView.

---

<div class="post-metadata">

**Author:** ![torsten.robitzki](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/t/2bfe46/32.png) [@torsten.robitzki](https://forum.hdfgroup.org/u/torsten.robitzki)\
**Post date:** [November 14, 2022, 8:11am UTC](https://forum.hdfgroup.org/t/error-occurred-while-instantiating-tableview-class/10457/13 "2022-11-14T08:11:33Z")

</div>

Hi Christian,  
I can confirm, that this works. Wonderful, as now I can go ahead and try to add some diagrams etc. to the file.

Thanks a lot,

Torsten
