HDFView and dynamic filters

Hello everyone!

I've just implemented custom HDF5 dynamic filter (LZ4 compression), and it works nicely when I register it "statically" in my code.

I have put my plugin lz4.dll into

%ALLUSERSPROFILE%\hdf5\lib\plugin\

But when trying to open compressed HDF5 file in HDFView 2.10.1, it says:

Can't open directory or file.

My loyal servant procmon.exe reports that HDFView tries to access dir

C:\Program Files (x86)\HDF_Group\HDFView\2.10.1\bin\%ALLUSERSPROFILE%\hdf5\lib\plugin\

which is erroneous.

Is it a known bug in HDFView?
How can I fix the problem?

Best wishes,
Andrey Paramonov

···

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Andrey,

Thank you for reporting the problem. For your reference, I entered bug HDFFV-1880. We plan to address it in the next release 2.11. I will send email when the fix is available in the snapshot.

Elena

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Aug 22, 2014, at 10:20 AM, Андрей Парамонов <paramon@acdlabs.ru<mailto:paramon@acdlabs.ru>> wrote:

Hello everyone!

I've just implemented custom HDF5 dynamic filter (LZ4 compression), and it works nicely when I register it "statically" in my code.

I have put my plugin lz4.dll into

%ALLUSERSPROFILE%\hdf5\lib\plugin\

But when trying to open compressed HDF5 file in HDFView 2.10.1, it says:

Can't open directory or file.

My loyal servant procmon.exe reports that HDFView tries to access dir

C:\Program Files (x86)\HDF_Group\HDFView\2.10.1\bin\%ALLUSERSPROFILE%\hdf5\lib\plugin\

which is erroneous.

Is it a known bug in HDFView?
How can I fix the problem?

Best wishes,
Andrey Paramonov

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org<mailto:Hdf-forum@lists.hdfgroup.org>
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Andrey,

I am working on this issue, however could you try setting the HDF5_PLUGIN_DIR
environment variable to the path to your dynamic filter. Keep things simple
like SET HDF5_PLUGIN_DIR=C:\\ProgramData. Then try using hdfview.

Allen

···

On Friday, August 22, 2014 07:20:23 PM Андрей Парамонов wrote:

Hello everyone!

I've just implemented custom HDF5 dynamic filter (LZ4 compression), and
it works nicely when I register it "statically" in my code.

I have put my plugin lz4.dll into

%ALLUSERSPROFILE%\hdf5\lib\plugin\

But when trying to open compressed HDF5 file in HDFView 2.10.1, it says:

Can't open directory or file.

My loyal servant procmon.exe reports that HDFView tries to access dir

C:\Program Files
(x86)\HDF_Group\HDFView\2.10.1\bin\%ALLUSERSPROFILE%\hdf5\lib\plugin\

which is erroneous.

Is it a known bug in HDFView?
How can I fix the problem?

Best wishes,
Andrey Paramonov

Correction: the VAR is HDF5_PLUGIN_PATH.

Allen

···

On Monday, August 25, 2014 03:47:28 PM Allen Byrne wrote:

Andrey,

I am working on this issue, however could you try setting the
HDF5_PLUGIN_DIR environment variable to the path to your dynamic filter.
Keep things simple like SET HDF5_PLUGIN_DIR=C:\\ProgramData. Then try using
hdfview.

Allen

On Friday, August 22, 2014 07:20:23 PM Андрей Парамонов wrote:
> Hello everyone!
>
> I've just implemented custom HDF5 dynamic filter (LZ4 compression), and
> it works nicely when I register it "statically" in my code.
>
> I have put my plugin lz4.dll into
>
> %ALLUSERSPROFILE%\hdf5\lib\plugin\
>
> But when trying to open compressed HDF5 file in HDFView 2.10.1, it says:
>
> Can't open directory or file.
>
> My loyal servant procmon.exe reports that HDFView tries to access dir
>
> C:\Program Files
> (x86)\HDF_Group\HDFView\2.10.1\bin\%ALLUSERSPROFILE%\hdf5\lib\plugin\
>
> which is erroneous.
>
> Is it a known bug in HDFView?
> How can I fix the problem?
>
> Best wishes,
> Andrey Paramonov

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

24.08.2014 4:09, Elena Pourmal пишет:

Andrey,

Thank you for reporting the problem. For your reference, I entered bug
HDFFV-1880. We plan to address it in the next release 2.11. I will send
email when the fix is available in the snapshot.

Hello Elena!

I've just checked version 2.11, and unfortunately the bug is still there. My previous workaround is still applicable, however.

Hopefully, the bug would be addressed soon.

Cheers,
Andrey Paramonov

···

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

26.08.2014 0:51, Allen Byrne пишет:

Correction: the VAR is HDF5_PLUGIN_PATH.

Allen

Andrey,

I am working on this issue, however could you try setting the
HDF5_PLUGIN_DIR environment variable to the path to your dynamic filter.
Keep things simple like SET HDF5_PLUGIN_DIR=C:\\ProgramData. Then try using
hdfview.

I think the bug is that HDF5_PLUGIN_PATH specifies relative, not absolute path now. I could workaround the problem by adding
set HDF5_PLUGIN_PATH=plugins
into my hdfview.bat and dropping plugin dll into C:\Program Files (x86)\HDF_Group\HDFView\2.10.1\bin\plugins\.

Btw, I have noticed that INSTALLDIR is not specified correctly in hdfview.bat, for HDFView x86 installed on Windows x86-64. It starts with C:\Program Files\ but should start with C:\Program Files (x86)\. So, I had to tweak hdfview.bat to get it running.

Best wishes,
Andrey Paramonov

···

On Monday, August 25, 2014 03:47:28 PM Allen Byrne wrote:

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

I have reopened JAVA-1880. Evidently there were two bugs - one in HDF5 and one
in HDFView? Everything should work if you set the ENV VAR because we do test
with that technique.

Allen

···

On Tuesday, December 16, 2014 02:52:57 PM Андрей Парамонов wrote:

24.08.2014 4:09, Elena Pourmal пишет:
> Andrey,
>
> Thank you for reporting the problem. For your reference, I entered bug
> HDFFV-1880. We plan to address it in the next release 2.11. I will send
> email when the fix is available in the snapshot.

Hello Elena!

I've just checked version 2.11, and unfortunately the bug is still
there. My previous workaround is still applicable, however.

Hopefully, the bug would be addressed soon.

Cheers,
Andrey Paramonov

After further investigation, the issue remains an HDF5 bug with the default
value on WINDOWS. It is not correctly expanding %ALLUSERSPROFILE%

The workaround is to set the env var: HDF5_PLUGIN_PATH

The bug issue has been moved to HDFFV-9048.

Allen

···

On Tuesday, December 16, 2014 12:46:15 PM Allen Byrne wrote:

I have reopened JAVA-1880. Evidently there were two bugs - one in HDF5 and
one in HDFView? Everything should work if you set the ENV VAR because we do
test with that technique.

Allen

On Tuesday, December 16, 2014 02:52:57 PM Андрей Парамонов wrote:
> 24.08.2014 4:09, Elena Pourmal пишет:
> > Andrey,
> >
> > Thank you for reporting the problem. For your reference, I entered bug
> > HDFFV-1880. We plan to address it in the next release 2.11. I will send
> > email when the fix is available in the snapshot.
>
> Hello Elena!
>
> I've just checked version 2.11, and unfortunately the bug is still
> there. My previous workaround is still applicable, however.
>
> Hopefully, the bug would be addressed soon.
>
> Cheers,
> Andrey Paramonov

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Andrey,

The path should be absolute. Win I tried the ENV VAR everything worked. I
believe the problem is that the slashes in the default path were incorrect and
the relative path was just the normal windows handling when it cannot locate a
file.

I have fixed the slashes in the next release of hdf5 - the
config/cmake/ConfigureChecks.cmake file. I will add this use case to the
regression testing suite.

Allen

···

On Tuesday, August 26, 2014 09:54:07 AM Андрей Парамонов wrote:

26.08.2014 0:51, Allen Byrne пишет:
> Correction: the VAR is HDF5_PLUGIN_PATH.
>
> Allen
>
> On Monday, August 25, 2014 03:47:28 PM Allen Byrne wrote:
>> Andrey,
>>
>> I am working on this issue, however could you try setting the
>> HDF5_PLUGIN_DIR environment variable to the path to your dynamic filter.
>> Keep things simple like SET HDF5_PLUGIN_DIR=C:\\ProgramData. Then try
>> using
>> hdfview.

I think the bug is that HDF5_PLUGIN_PATH specifies relative, not
absolute path now. I could workaround the problem by adding
set HDF5_PLUGIN_PATH=plugins
into my hdfview.bat and dropping plugin dll into C:\Program Files
(x86)\HDF_Group\HDFView\2.10.1\bin\plugins\.

Btw, I have noticed that INSTALLDIR is not specified correctly in
hdfview.bat, for HDFView x86 installed on Windows x86-64. It starts with
C:\Program Files\ but should start with C:\Program Files (x86)\. So, I
had to tweak hdfview.bat to get it running.

Best wishes,
Andrey Paramonov